1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
# 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: str, name: str) -> None:
self.id = cat_id
self.name = 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('ripple', _('Ripple Stitch')),
FontCategory('running_stitch', _('Running Stitch')),
FontCategory('sans_serif', _("Sans Serif")),
FontCategory('serif', _("Serif")),
FontCategory('tartan', _("Tartan")),
FontCategory('tiny', _("Tiny")),
FontCategory('arabic', _("Script: arabic")),
FontCategory('cyrillic', _("Script: cyrillic")),
FontCategory('greek', _("Script: greek")),
FontCategory('hebrew', _("Script: hebrew")),
FontCategory('japanese', _("Script: japanese")),
FontCategory('latin', _("Script: latin"))
]
|