diff options
| author | Kaalleen <36401965+kaalleen@users.noreply.github.com> | 2024-05-07 23:36:35 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-05-07 23:36:35 +0200 |
| commit | 6019f0cce07be10ce86156d52dcc94327e9ceea5 (patch) | |
| tree | 4066b2ccc34ea53c8183d78da694567a85c3d682 /lib/gui/lettering_font_sample.py | |
| parent | 9bd3f3658ed5038aef79b135890045d0c9d0bf59 (diff) | |
Sample correct font variant (#2883)
Diffstat (limited to 'lib/gui/lettering_font_sample.py')
| -rw-r--r-- | lib/gui/lettering_font_sample.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/gui/lettering_font_sample.py b/lib/gui/lettering_font_sample.py index 2e630fa3..af9de5ec 100644 --- a/lib/gui/lettering_font_sample.py +++ b/lib/gui/lettering_font_sample.py @@ -141,8 +141,10 @@ class FontSampleFrame(wx.Frame): # parameters line_width = self.max_line_width.GetValue() + direction = self.direction.GetValue() + font._load_variants() - font_variant = font.variants[self.direction.GetValue()] + font_variant = font.variants[direction] # setup lines of text text = '' @@ -184,7 +186,7 @@ class FontSampleFrame(wx.Frame): width += width_to_add # render text and close - font.render_text(text, self.layer) + font.render_text(text, self.layer, variant=direction, back_and_forth=False) self.GetTopLevelParent().Close() def cancel(self, event): |
