diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-10-06 12:16:43 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-10-06 12:16:43 +0300 |
commit | 61a3dc017067be43472dadb7909094aa04d1fe9d (patch) | |
tree | 18b87895489844b4e516f79cd1588038f1d49494 /res/fonts | |
parent | f6a54d5375aab9c41af3f7c8a5e8fcbd1e0c9287 (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/fonts')
-rw-r--r-- | res/fonts/fontpack.ini | 3 |
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] |
18 | name = "Smol Emoji" | 18 | name = "Smol Emoji" |
19 | override = true # These Emoji are always preferred. | ||
19 | auxiliary = true | 20 | auxiliary = true |
20 | priority = 100 | 21 | priority = 100 |
21 | regular = "SmolEmoji-Regular.ttf" | 22 | regular = "SmolEmoji-Regular.ttf" |
@@ -32,6 +33,7 @@ name = "Noto Sans Symbols 2" | |||
32 | auxiliary = true | 33 | auxiliary = true |
33 | priority = 20 | 34 | priority = 20 |
34 | scaling = 1.45 | 35 | scaling = 1.45 |
36 | voffset = 1.2 | ||
35 | regular = "NotoSansSymbols2-Regular.ttf" | 37 | regular = "NotoSansSymbols2-Regular.ttf" |
36 | 38 | ||
37 | [notosymbols] | 39 | [notosymbols] |
@@ -39,4 +41,5 @@ name = "Noto Sans Symbols" | |||
39 | auxiliary = true | 41 | auxiliary = true |
40 | priority = 10 | 42 | priority = 10 |
41 | scaling = 2.0 | 43 | scaling = 2.0 |
44 | voffset = 0.5 | ||
42 | regular = "NotoSansSymbols-Regular.ttf" | 45 | regular = "NotoSansSymbols-Regular.ttf" |