diff options
| author | Claudine Peyrat <88194877+claudinepeyrat06@users.noreply.github.com> | 2025-07-06 14:00:28 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-07-06 14:00:28 +0200 |
| commit | 3fbdf3b746c2b9345d44599599b8f0ddd891577e (patch) | |
| tree | a6f259dd36e75dbf1b56854b772e2ef9c8a99438 /lib/lettering/font.py | |
| parent | a2a7d7d149491478426ba1911ad5767bddf8e4eb (diff) | |
Claudine/fix normalization and house cleaning (#3843)
* remove normalization in glyph filter
remove glyph normalization gui/lettering/main_panel, as it breaks the glyph filtering
remove some spelling mistake in the comments, correct some comment
if a glyph from the svg font file is a non chasing mark (like combining accent, or cedilla) the inkscape label of the corresponding glyph group created by lettering_font_sample was empty or unreadable, make it visible . Same in the line label.
and although it is not related
correct one glyph in malika font
* correct warning in lettering_font_sample
do the warnings correctly when there is somethng wrong with the glyph list in the font.json gile
* Update lettering_font_sample.py
fix a typo
Diffstat (limited to 'lib/lettering/font.py')
| -rw-r--r-- | lib/lettering/font.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/lettering/font.py b/lib/lettering/font.py index 5ae6743a..1d9f8b40 100644 --- a/lib/lettering/font.py +++ b/lib/lettering/font.py @@ -452,7 +452,10 @@ class Font(object): # because this is not unique it will be overwritten by inkscape when inserted into the document node.set("id", "glyph") node.set("inkstitch:letter-group", "glyph") - + # force inkscape to show a label when the glyph is only a non-spacing mark + if len(node.label) == 1 and unicodedata.category(node.label) == 'Mn': + # force inkscape to show a label when the glyph is only a non-spacing mark + node.label = ' ' + node.label return node def _update_commands(self, node, glyph, id_extension=""): |
