diff options
| author | Kaalleen <36401965+kaalleen@users.noreply.github.com> | 2025-02-05 18:50:31 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-02-05 18:50:31 +0100 |
| commit | af6cdc442bbcc1323ac1d13adaa49982318c9cfe (patch) | |
| tree | f71d2de5c2a89167cdb4dc9975b5f6e6d97f978e /lib/lettering/glyph.py | |
| parent | 8f1f68a1db65b150a6429f334059bcae34a9b883 (diff) | |
Lettering typographic features (#3466)
* add svg font to layers extension which saves glyph annotations into the glyph name
---------
Co-authored-by: Claudine
Diffstat (limited to 'lib/lettering/glyph.py')
| -rw-r--r-- | lib/lettering/glyph.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/lettering/glyph.py b/lib/lettering/glyph.py index a3a9df71..fd1e1985 100644 --- a/lib/lettering/glyph.py +++ b/lib/lettering/glyph.py @@ -5,6 +5,7 @@ from collections import defaultdict from copy import copy +from unicodedata import normalize from inkex import paths, transforms, units @@ -36,6 +37,9 @@ class Glyph(object): this Glyph. Nested groups are allowed. """ + self.name = group.label + if len(self.name) > 11: + self.name = normalize('NFKC', self.name[11:]) self._process_baseline(group.getroottree().getroot()) self.clips = self._process_clips(group) self.node = self._process_group(group) |
