summaryrefslogtreecommitdiff
path: root/res
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2022-02-08 21:24:34 +0200
committerJaakko Keränen <jaakko.keranen@iki.fi>2022-02-08 21:24:34 +0200
commit12a6fc81e8d11dc21db5938132818972df08e885 (patch)
tree530489e714a92aab4ff6375ba99c354cbb5e7e84 /res
parentbd83aca1b20e5583568faff0251e9d5a0c62df5b (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.ini2
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.
37name = "Iosevka" 37name = "Iosevka"
38monospace = true 38monospace = true
39priority = -10 39priority = 1
40glyphscale = 0.800 40glyphscale = 0.800
41regular = "fonts/IosevkaTerm-Extended.ttf" 41regular = "fonts/IosevkaTerm-Extended.ttf"
42 42