aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorB14CK313 <jajoblack@gmx.de>2021-01-22 01:31:41 +0100
committerGitHub <noreply@github.com>2021-01-22 01:31:41 +0100
commitcf03bbe166118d7e1976b29d3b83266881d53bf2 (patch)
treeddc8617eb4c92858c66b44cc0ed867c50b1516f7 /plugins
parent7789a25a435e3f3e1110997ace1feb51642d6f94 (diff)
downloadlite-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')
-rw-r--r--plugins/scale.lua8
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