From 3fbdf3b746c2b9345d44599599b8f0ddd891577e Mon Sep 17 00:00:00 2001 From: Claudine Peyrat <88194877+claudinepeyrat06@users.noreply.github.com> Date: Sun, 6 Jul 2025 14:00:28 +0200 Subject: 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 --- lib/lettering/font_variant.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'lib/lettering/font_variant.py') 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 -- cgit v1.2.3