diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2022-02-08 21:24:34 +0200 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2022-02-08 21:24:34 +0200 |
commit | 12a6fc81e8d11dc21db5938132818972df08e885 (patch) | |
tree | 530489e714a92aab4ff6375ba99c354cbb5e7e84 /res | |
parent | bd83aca1b20e5583568faff0251e9d5a0c62df5b (diff) |
Fonts: Improved fallback glyph search
The fontpack documentation says that when a glyph isn't found, all available fonts are checked in priority order. However, the implementation didn't actually do this.
Now there is a separate priority mapping for loaded fonts so they can be quickly scanned for any missing glyphs in the right order.
"iosevka-body" was prioritized higher because it provides a number of UI icons.
Diffstat (limited to 'res')
-rw-r--r-- | res/fontpack.ini | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/res/fontpack.ini b/res/fontpack.ini index 920a4ad2..08c127f6 100644 --- a/res/fontpack.ini +++ b/res/fontpack.ini | |||
@@ -36,7 +36,7 @@ regular = "fonts/IosevkaTerm-Extended.ttf" | |||
36 | # Matches the baseline and ascent of the default font. | 36 | # Matches the baseline and ascent of the default font. |
37 | name = "Iosevka" | 37 | name = "Iosevka" |
38 | monospace = true | 38 | monospace = true |
39 | priority = -10 | 39 | priority = 1 |
40 | glyphscale = 0.800 | 40 | glyphscale = 0.800 |
41 | regular = "fonts/IosevkaTerm-Extended.ttf" | 41 | regular = "fonts/IosevkaTerm-Extended.ttf" |
42 | 42 | ||