diff options
| author | Kaalleen <36401965+kaalleen@users.noreply.github.com> | 2022-10-23 09:17:17 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-10-23 09:17:17 +0200 |
| commit | 27d2fcecaaec7ab3b153981a77f53a9eda8a8add (patch) | |
| tree | 11c6ae70035a8445b513fc1eee7dae6ddefcc356 /lib/lettering | |
| parent | 11cde9062ee13b64f665b0ef9313c286da05fdfe (diff) | |
Lettering: add font size filter (#1854)
* auto-update scale on font selection with an active filter
Diffstat (limited to 'lib/lettering')
| -rw-r--r-- | lib/lettering/font.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/lettering/font.py b/lib/lettering/font.py index a9c67c40..328d2ba4 100644 --- a/lib/lettering/font.py +++ b/lib/lettering/font.py @@ -117,6 +117,7 @@ class Font(object): auto_satin = font_metadata('auto_satin', True) min_scale = font_metadata('min_scale', 1.0) max_scale = font_metadata('max_scale', 1.0) + size = font_metadata('size', 0) # use values from SVG Font, example: # <font horiz-adv-x="45" ... <glyph .... horiz-adv-x="49" glyph-name="A" /> ... <hkern ... k="3"g1="A" g2="B" /> .... /> |
