Comments (5)
Hello,
what do you mean by "requesting a glyph" ? What method are you using ?
font.charToGlyphIndex('I') (I as in uppercase i) returns 918. This font has a lot of different "I"s, and glyph 44 which is an I with serifs, feels strange in a sans-serif font.
from opentype.js.
hi,
thanks for getting back on this. I was ment to say that calling font.charToGlyph('I') on the given font returns the first glyph (the no-glyph rectangle) with a glyph index of zero.
from opentype.js.
Do you get the same error with other characters, or with other fonts ?
Are you sure you are calling font.charToGlyph('I')
from inside the opentype.load()
callback ?
from opentype.js.
Hi,
Hmm this is really really weird. Yes, the call is done after the font is properly loaded. It works perfectly for all kind of glyphs except the uppercase I. Trying another font with the exact same code works as expected, so the code seems to be okay. I can really not explain myself what should be the case for this :(
Btw., we're using your great library in our free Design Tool Gravit (http://www.quasado.com/gravit) for custom text rendering allowing us to apply any kind of vector effects to text shapes :)
from opentype.js.
Ok, I am closing this. It seems that with the local version I do have it happens (I am using the latest one installed via bower). Doing the same with the online version works quite right.
from opentype.js.
Related Issues (20)
- Bad performance of roundDecimal() in path.js
- Error parsing some cut font files using 'opentype. parse(...)' HOT 21
- How to Solve This Problem... 😭 Error: Unsupported OpenType signature <!DO HOT 3
- Regression: CFF-1 and CFF-2 tests in Unicode test suite passed at some point HOT 1
- Did we get rid of the non-umd & non-esm build? HOT 1
- Support searching or filtering by glyph name HOT 4
- Compilation error from opentype HOT 1
- hinting broken on the demo page HOT 6
- An unexpected situation occurred when using path. toSVG(), where NaN caused text rendering errors HOT 2
- how can I get font metadata by font file (.ttf,.otf,.woff2,.woff) by simple method? HOT 2
- Why did we depricate the load function? HOT 5
- Bold/Italic Emulation implementation needed. HOT 3
- Invalid font result with opentype.js HOT 1
- font lose glyph name HOT 1
- Writing slow (30+ seconds) for certain fonts (CJK, Noto Chinese) HOT 2
- TypeError: Cannot read properties of undefined (reading 'featureIndexes')
- fvar.instances returns empty name entry if nameID is 17 (preferredSubfamily) HOT 13
- 'liga' should not support only latin words
- missing emoji substitutions HOT 9
- Character rendering issues occur when stroking text. HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from opentype.js.