diff options
| author | Kaalleen <36401965+kaalleen@users.noreply.github.com> | 2023-07-12 18:28:07 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-07-12 18:28:07 +0200 |
| commit | e65788cea72531f922fe4bccda4ec0c06047df10 (patch) | |
| tree | c0dab71fe4e2c44ea3de1900e05de46001290558 /lib/lettering/font.py | |
| parent | 3d3baddf6a85cab368fd5c09a6ca5ae6d912f5c4 (diff) | |
Lettering: add glyph filter (#2400)
Co-authored-by: claudinepeyrat06
Diffstat (limited to 'lib/lettering/font.py')
| -rw-r--r-- | lib/lettering/font.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/lettering/font.py b/lib/lettering/font.py index 77f17e7f..fb17f760 100644 --- a/lib/lettering/font.py +++ b/lib/lettering/font.py @@ -111,6 +111,7 @@ class Font(object): name = localized_font_metadata('name', '') description = localized_font_metadata('description', '') + keywords = font_metadata('keywords', '') letter_case = font_metadata('letter_case', '') default_glyph = font_metadata('default_glyph', "�") leading = font_metadata('leading', 100) @@ -119,6 +120,7 @@ class Font(object): min_scale = font_metadata('min_scale', 1.0) max_scale = font_metadata('max_scale', 1.0) size = font_metadata('size', 0) + available_glyphs = font_metadata('glyphs', []) # 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" /> .... /> |
