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.

font NotoColorEmoji.ttf getGlyphSet failed: Font contains no outlines

See original GitHub issue

I try to drew emoji image using fonttools. The font I am using is NotoColorEmoji.ttf by Google. The font can be loaded, but when I try to get getGlyphSet, it failed:

from fontTools.ttLib import TTFont
font = TTFont('NotoColorEmoji.ttf')
gs = font.getGlyphSet()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/liudanking/code/dl/pyenv/lib/python2.7/site-packages/fontTools/ttLib/__init__.py", line 695, in getGlyphSet
    raise TTLibError("Font contains no outlines")
fontTools.ttLib.TTLibError: Font contains no outlines

Is there anything I missed?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
liudankingcommented, May 4, 2017

ttx -z extfile NotoColorEmoji.ttf.ttf works like a charm.

0reactions
anthrotypecommented, May 4, 2017

glad to hear that 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Finding common font problems automagically - FontForge
This command works either in the font view, the outline view or the metrics view. In the font view it will examine all...
Read more >
fonttools · PyPI
fontTools is a library for manipulating fonts, written in Python. The project includes the TTX tool, that can convert TrueType and OpenType fonts...
Read more >
ttLib: Read/write OpenType and TrueType fonts ttFont - fontTools
ttFont : Read/write OpenType and TrueType fonts ... Represents a TrueType font. The object manages file input and output, and offers a convenient...
Read more >
Noto Color Emoji and Noto Emoji fixed fonts cause a X error in ...
I think it is because "Noto Color Emoji" contains color bitmap glyph. The color bitmap is new feature of TrueType font, tcl/tk or...
Read more >
Python fontforge Emoji encoding and colored glyphs
Just try loading a font like NotoColorEmoji.ttf into FontForge's app and you'll see an error. There is a github issue for it:.
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