ai怎么查字体有没有都转曲 - has_glyph(glyph, '
fontToolshas_glyph()
fontTools 拼多多帮助力入口
pip install fonttools
from fontTools.ttLib import TTFont
from fontTools.ttLib.tables.charsets import charsets
font = TTFont('path/to/your/font.ttf')
for glyph in font:
if charsets.has_glyph(glyph, 'curve'):
print(f"字体 {font} 包含曲线字形")
else:
print(f"字体 {font} 不包含曲线字形")
'path/to/your/font.ttf',ai怎么查字体有没有都转曲