summaryrefslogtreecommitdiff
path: root/lib/lettering/font_variant.py
diff options
context:
space:
mode:
authorClaudine Peyrat <88194877+claudinepeyrat06@users.noreply.github.com>2025-07-06 14:00:28 +0200
committerGitHub <noreply@github.com>2025-07-06 14:00:28 +0200
commit3fbdf3b746c2b9345d44599599b8f0ddd891577e (patch)
treea6f259dd36e75dbf1b56854b772e2ef9c8a99438 /lib/lettering/font_variant.py
parenta2a7d7d149491478426ba1911ad5767bddf8e4eb (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_variant.py')
-rw-r--r--lib/lettering/font_variant.py7
1 files changed, 4 insertions, 3 deletions
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