Composite glyphs must be initialized first.
See original GitHub issueIn order to get composite glyphs to work, I found out that I have to ‘initialize’ the affected normal glyphs first: Before I can use any composite glyph I found this workaround, than everything is fine:
// Workaround to initialize composite glyphs.
for (var i = 0; i < this .font .numGlyphs; ++ i)
this .font .glyphs .get (i) .getPath (0, 0, 1);
I this due to the fact, that the glyphs are cached maybe?
Issue Analytics
- State:
- Created 8 years ago
- Comments:12 (4 by maintainers)
Top Results From Across the Web
Composite glyphs must be initialized first. · Issue #157 - GitHub
The composite glyphs need to be "kicked" into action through getPath(). The reason is that some fonts have an enormous amount of glyphs...
Read more >Anchors and Pins - FontLab Help Center
To create a virtual composite: First, open the base glyph, e.g. “o”: Insert the base anchors in this glyph. To add anchor points, ......
Read more >TrueType fundamentals (OpenType 1.9) - Typography
This section describes the process that allows glyphs from a TrueType font file to be displayed on raster devices. First, the outline stored ......
Read more >Composite Glyphs - Introduction - High-Logic
You can create a composite glyph when you are editing an empty glyph in a Glyph Edit window. To add a composite glyph...
Read more >FreeType Tutorial / II
Individual glyph metrics can be accessed by first loading the glyph in a face's glyph ... To use it, you first need to...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thank you! this solved my problem with composite glyphs!
Thanks!