summaryrefslogtreecommitdiff
path: root/lib/gui
diff options
context:
space:
mode:
authorKaalleen <36401965+kaalleen@users.noreply.github.com>2024-12-26 16:11:37 +0100
committerGitHub <noreply@github.com>2024-12-26 16:11:37 +0100
commite20161a4ec9a69cb0f1bdfdd16bcd27a8601fde7 (patch)
tree08dd9d499b42d6f9b937431ed6b77887ea03c9bc /lib/gui
parent5ce92a46217f907ccc8b6594022958edefe1272e (diff)
use text scale layer also for 100% scaled fonts (#3365)
Diffstat (limited to 'lib/gui')
-rw-r--r--lib/gui/lettering/main_panel.py20
1 files changed, 8 insertions, 12 deletions
diff --git a/lib/gui/lettering/main_panel.py b/lib/gui/lettering/main_panel.py
index f8f1636b..30583070 100644
--- a/lib/gui/lettering/main_panel.py
+++ b/lib/gui/lettering/main_panel.py
@@ -285,16 +285,13 @@ class LetteringPanel(wx.Panel):
del self.group[:]
- if self.settings.scale == 100:
- destination_group = self.group
- else:
- destination_group = inkex.Group(attrib={
- # L10N The user has chosen to scale the text by some percentage
- # (50%, 200%, etc). If you need to use the percentage symbol,
- # make sure to double it (%%).
- INKSCAPE_LABEL: _("Text scale") + f' {self.settings.scale}%'
- })
- self.group.append(destination_group)
+ destination_group = inkex.Group(attrib={
+ # L10N The user has chosen to scale the text by some percentage
+ # (50%, 200%, etc). If you need to use the percentage symbol,
+ # make sure to double it (%%).
+ INKSCAPE_LABEL: _("Text scale") + f' {self.settings.scale}%'
+ })
+ self.group.append(destination_group)
font = self.fonts.get(self.options_panel.font_chooser.GetValue(), self.default_font)
try:
@@ -310,10 +307,9 @@ class LetteringPanel(wx.Panel):
else:
pass
- # destination_group isn't always the text scaling group (but also the parent group)
# the text scaling group label is dependend on the user language, so it would break in international file exchange if we used it
# scaling (correction transform) on the parent group is already applied, so let's use that for recognition
- if self.settings.scale != 100 and not destination_group.get('transform', None):
+ if destination_group.get('transform', None) is None:
destination_group.attrib['transform'] = 'scale(%s)' % (self.settings.scale / 100.0)
def render_stitch_plan(self):