diff options
author | B14CK313 <jajoblack@gmx.de> | 2021-01-22 01:31:41 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-22 01:31:41 +0100 |
commit | cf03bbe166118d7e1976b29d3b83266881d53bf2 (patch) | |
tree | ddc8617eb4c92858c66b44cc0ed867c50b1516f7 /plugins/scale.lua | |
parent | 7789a25a435e3f3e1110997ace1feb51642d6f94 (diff) | |
download | lite-xl-plugins-cf03bbe166118d7e1976b29d3b83266881d53bf2.tar.gz lite-xl-plugins-cf03bbe166118d7e1976b29d3b83266881d53bf2.zip |
Fixed font scale not working
The scale plugin still used the pre 1.13 path to font files, instead of the DATADIR variable
Diffstat (limited to 'plugins/scale.lua')
-rw-r--r-- | plugins/scale.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/scale.lua b/plugins/scale.lua index 5dfa699..9d9ea73 100644 --- a/plugins/scale.lua +++ b/plugins/scale.lua @@ -13,10 +13,10 @@ config.scale_use_mousewheel = true local font_cache = setmetatable({}, { __mode = "k" }) -- the following should be kept in sync with core.style's default font settings -font_cache[style.font] = { EXEDIR .. "/data/fonts/font.ttf", 14 * SCALE } -font_cache[style.big_font] = { EXEDIR .. "/data/fonts/font.ttf", 34 * SCALE } -font_cache[style.icon_font] = { EXEDIR .. "/data/fonts/icons.ttf", 14 * SCALE } -font_cache[style.code_font] = { EXEDIR .. "/data/fonts/monospace.ttf", 13.5 * SCALE } +font_cache[style.font] = { DATADIR .. "/fonts/font.ttf", 14 * SCALE } +font_cache[style.big_font] = { DATADIR .. "/fonts/font.ttf", 34 * SCALE } +font_cache[style.icon_font] = { DATADIR .. "/fonts/icons.ttf", 14 * SCALE } +font_cache[style.code_font] = { DATADIR .. "/fonts/monospace.ttf", 13.5 * SCALE } local load_font = renderer.font.load |