font creation

improve font creation operator
offer fixing common misspellings
use glyphNamesToUnicode.txt table to generate name_to_glyph_d
fix typos in code
more consistent naming font_face -> face_name
This commit is contained in:
jrkb 2024-08-12 11:22:44 +02:00
parent 6f71a8f4c4
commit 7c72dd54dc
4 changed files with 12374 additions and 23 deletions

View file

@ -606,12 +606,12 @@ def set_text_on_curve(text_properties):
glyph_id = c
glyph = Font.get_glyph(text_properties.font_name,
text_properties.font_face,
text_properties.face_name,
glyph_id)
if glyph == None:
# self.report({'ERROR'}, f"Glyph not found for {font_name} {font_face} {glyph_id}")
print(f"Glyph not found for {text_properties.font_name} {text_properties.font_face} {glyph_id}")
# self.report({'ERROR'}, f"Glyph not found for {font_name} {face_name} {glyph_id}")
print(f"Glyph not found for {text_properties.font_name} {text_properties.face_name} {glyph_id}")
continue
ob = None