font NotoColorEmoji.ttf getGlyphSet failed: Font contains no outlines
See original GitHub issueI 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:
- Created 6 years ago
- Comments:5 (3 by maintainers)
Top 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 >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
ttx -z extfile NotoColorEmoji.ttf.ttf
works like a charm.glad to hear that 😃