diff options
| author | Kaalleen <36401965+kaalleen@users.noreply.github.com> | 2024-05-02 06:55:18 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-05-02 06:55:18 +0200 |
| commit | ad2914284e8ef5f59c410018415dbb8d574586f8 (patch) | |
| tree | b5662e185e0c30c8bfd270cf50dd07eec2b966db | |
| parent | 44442712b926ba134c4d1d674fdcb2d300684f77 (diff) | |
fix font sampling (#2878)
| -rw-r--r-- | lib/gui/lettering_font_sample.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gui/lettering_font_sample.py b/lib/gui/lettering_font_sample.py index c9cc4ddd..2e630fa3 100644 --- a/lib/gui/lettering_font_sample.py +++ b/lib/gui/lettering_font_sample.py @@ -172,7 +172,7 @@ class FontSampleFrame(wx.Frame): try: width_to_add = (font.horiz_adv_x.get(glyph, font.horiz_adv_x_default) - glyph_obj.min_x) * scale except TypeError: - width += glyph_obj.width + width_to_add = glyph_obj.width if width + width_to_add > line_width: text += '\n' |
