summaryrefslogtreecommitdiff
path: root/lib/lettering/categories.py
diff options
context:
space:
mode:
authorKaalleen <36401965+kaalleen@users.noreply.github.com>2023-07-12 18:28:07 +0200
committerGitHub <noreply@github.com>2023-07-12 18:28:07 +0200
commite65788cea72531f922fe4bccda4ec0c06047df10 (patch)
treec0dab71fe4e2c44ea3de1900e05de46001290558 /lib/lettering/categories.py
parent3d3baddf6a85cab368fd5c09a6ca5ae6d912f5c4 (diff)
Lettering: add glyph filter (#2400)
Co-authored-by: claudinepeyrat06
Diffstat (limited to 'lib/lettering/categories.py')
-rw-r--r--lib/lettering/categories.py30
1 files changed, 30 insertions, 0 deletions
diff --git a/lib/lettering/categories.py b/lib/lettering/categories.py
new file mode 100644
index 00000000..40b41529
--- /dev/null
+++ b/lib/lettering/categories.py
@@ -0,0 +1,30 @@
+# Authors: see git history
+#
+# Copyright (c) 2023 Authors
+# Licensed under the GNU GPL version 3.0 or later. See the file LICENSE for details.
+
+from ..i18n import _
+
+
+class FontCategory:
+ def __init__(self, cat_id=None, name=None):
+ self.id: str = cat_id
+ self.name: str = name
+
+ def __repr__(self):
+ return "FontCategory(%s, %s)" % (self.id, self.name)
+
+
+FONT_CATEGORIES = [
+ FontCategory('applique', _("Applique")),
+ FontCategory('crossstitch', _("Crossstitch")),
+ FontCategory('display', _('Display')),
+ FontCategory('handwriting', _("Handwriting")),
+ FontCategory('italic', _("Italic")),
+ FontCategory('monogram', _("Monogram")),
+ FontCategory('multicolor', _('Multicolor')),
+ FontCategory('running_stitch', _('Running Stitch')),
+ FontCategory('sans_serif', _("Sans Serif")),
+ FontCategory('serif', _("Serif")),
+ FontCategory('tiny', _("Tiny"))
+]