googlefonts / pyfontaine

Python tool to check font files for language/character set support
https://github.com/googlefonts/pyfontaine
GNU General Public License v3.0
104 stars 20 forks source link

Update core char checking approach #114

Open davelab6 opened 4 years ago

davelab6 commented 4 years ago

This is now the best way to check if a character is in a font using fontTool:

from fontTools import ttLib
ord('य') in ttLib.TTFont("font.ttf").getBestCmap()