summaryrefslogtreecommitdiff
path: root/res
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-10-06 12:16:43 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-10-06 12:16:43 +0300
commit61a3dc017067be43472dadb7909094aa04d1fe9d (patch)
tree18b87895489844b4e516f79cd1588038f1d49494 /res
parentf6a54d5375aab9c41af3f7c8a5e8fcbd1e0c9287 (diff)
Revised runtime font management
The built-in fonts are loaded via FontPack, and the font table is now constructed dynamically based on available fonts. A full set of variants (style, size) are prepared for each font, but some of the data gets allocated lazily when needed. GmRun needed a larger allocation for fonts, so now all the fields are combined into a single bit field. TODO: Glyph scaling, vertical offsets, and symbol lookup are still not fully working.
Diffstat (limited to 'res')
-rw-r--r--res/fonts/fontpack.ini3
1 files changed, 3 insertions, 0 deletions
diff --git a/res/fonts/fontpack.ini b/res/fonts/fontpack.ini
index 53bd7402..153b7f86 100644
--- a/res/fonts/fontpack.ini
+++ b/res/fonts/fontpack.ini
@@ -16,6 +16,7 @@ regular = "IosevkaTerm-Extended.ttf"
16 16
17[smolemoji] 17[smolemoji]
18name = "Smol Emoji" 18name = "Smol Emoji"
19override = true # These Emoji are always preferred.
19auxiliary = true 20auxiliary = true
20priority = 100 21priority = 100
21regular = "SmolEmoji-Regular.ttf" 22regular = "SmolEmoji-Regular.ttf"
@@ -32,6 +33,7 @@ name = "Noto Sans Symbols 2"
32auxiliary = true 33auxiliary = true
33priority = 20 34priority = 20
34scaling = 1.45 35scaling = 1.45
36voffset = 1.2
35regular = "NotoSansSymbols2-Regular.ttf" 37regular = "NotoSansSymbols2-Regular.ttf"
36 38
37[notosymbols] 39[notosymbols]
@@ -39,4 +41,5 @@ name = "Noto Sans Symbols"
39auxiliary = true 41auxiliary = true
40priority = 10 42priority = 10
41scaling = 2.0 43scaling = 2.0
44voffset = 0.5
42regular = "NotoSansSymbols-Regular.ttf" 45regular = "NotoSansSymbols-Regular.ttf"