summaryrefslogtreecommitdiff
path: root/lib/lettering/font_info.py
diff options
context:
space:
mode:
authorClaudine Peyrat <88194877+claudinepeyrat06@users.noreply.github.com>2025-07-27 10:15:58 +0200
committerGitHub <noreply@github.com>2025-07-27 10:15:58 +0200
commit9ac1dbfa98a640f731183543c45c8ed8fd222139 (patch)
treee1661bcd6aec05f9ccdb746067304c1efab0a1dd /lib/lettering/font_info.py
parent1ddceafe91f1e2d8c2a9969bb86dfb7c163887cd (diff)
Update lettering_svg_font_to_layers.py (#3883)
* Update lettering_svg_font_to_layers.py when we get a glyph from the Private Unicode Area, the entry point has no meaning, but hopefully we can get some good information from the glyph_name * Update font_info.py kerning information must be associated to the right nanme glyph layer in case of PUA letters * remove commented code
Diffstat (limited to 'lib/lettering/font_info.py')
-rw-r--r--lib/lettering/font_info.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/lettering/font_info.py b/lib/lettering/font_info.py
index 8bf35900..4c783531 100644
--- a/lib/lettering/font_info.py
+++ b/lib/lettering/font_info.py
@@ -40,9 +40,12 @@ class FontFileInfo(object):
hax = float(hax)
glyph_name = glyph.get('glyph-name', None)
+
if glyph_name is not None:
glyph_name = glyph_name.split('.')
if len(glyph_name) == 2:
+ if ord(unicode_char[0]) >= 57344 :
+ unicode_char = glyph_name[0]
typographic_feature = glyph_name[1]
unicode_char += f'.{typographic_feature}'
else: