question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Composite glyphs must be initialized first.

See original GitHub issue

In 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:closed
  • Created 8 years ago
  • Comments:12 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
possancommented, Sep 9, 2015

Thank you! this solved my problem with composite glyphs!

0reactions
kennethmac2000commented, Jul 12, 2016

Thanks!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found