diff options
Diffstat (limited to 'lib/lettering')
| -rw-r--r-- | lib/lettering/font.py | 5 | ||||
| -rw-r--r-- | lib/lettering/font_variant.py | 7 |
2 files changed, 8 insertions, 4 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=""): diff --git a/lib/lettering/font_variant.py b/lib/lettering/font_variant.py index 80d9d3e6..0e4836e8 100644 --- a/lib/lettering/font_variant.py +++ b/lib/lettering/font_variant.py @@ -198,7 +198,7 @@ class FontVariant(object): shape = 'fina' else: shape = 'isol' - # in the middle of the actual word, the shape of a glyph is medi if previous glyph is bendinng, init otherwise + # in the middle of the actual word, the shape of a glyph is medi if previous glyph is binding, init otherwise elif previous_is_binding: shape = 'medi' else: @@ -207,9 +207,10 @@ class FontVariant(object): return shape def get_next_glyph(self, word, i, previous_is_binding): - # search for the glyph of word that starts at i,taking into acount the previous glyph binding status + # word[:i] has been processed, this function returns the glyph starting at word[i] + # taking into acount the previous glyph binding status - # find all the glyphs in tthe font that start with first letter of the glyph + # find all the glyphs in the font that start with first letter of the glyph glyph_selection = self.glyphs_start_with(word[i]) # find the longest glyph that match |
