summaryrefslogtreecommitdiff
path: root/lib/lettering/font.py
diff options
context:
space:
mode:
authorClaudine Peyrat <88194877+claudinepeyrat06@users.noreply.github.com>2025-02-14 20:23:08 +0100
committerGitHub <noreply@github.com>2025-02-14 20:23:08 +0100
commita0433db1f36f553bccfc89f93aa72d826e790440 (patch)
treedafdbd6c803c700ac84e70953ac1814ca6279eb5 /lib/lettering/font.py
parent2e4830ea3a5e426003aeda55bdb374b6e58c7421 (diff)
fix broken forced case (#3509)
Diffstat (limited to 'lib/lettering/font.py')
-rw-r--r--lib/lettering/font.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/lettering/font.py b/lib/lettering/font.py
index a554183e..cb399890 100644
--- a/lib/lettering/font.py
+++ b/lib/lettering/font.py
@@ -363,16 +363,16 @@ class Font(object):
skip = []
previous_is_binding = True
+ # forced letter case
+ if self.letter_case == "upper":
+ word = word.upper()
+ elif self.letter_case == "lower":
+ word = word.lower()
+
for i, character in enumerate(word):
if i in skip:
continue
- # forced letter case
- if self.letter_case == "upper":
- character = character.upper()
- elif self.letter_case == "lower":
- character = character.lower()
-
glyph, glyph_len, binding = glyph_set.get_next_glyph(word, i, previous_is_binding)
previous_is_binding = binding