diff options
author | Francesco <francesco.bbt@gmail.com> | 2021-03-14 16:16:51 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-14 16:16:51 +0100 |
commit | f239216c2f0dbc087d4c7701732399258ed2011a (patch) | |
tree | 65a534e07658affc3aa5387d032ca9448e276f5f | |
parent | 727d202559f5c00b5b53a0b4728eca04c7fa5024 (diff) | |
parent | cf03bbe166118d7e1976b29d3b83266881d53bf2 (diff) | |
download | lite-xl-plugins-f239216c2f0dbc087d4c7701732399258ed2011a.tar.gz lite-xl-plugins-f239216c2f0dbc087d4c7701732399258ed2011a.zip |
Merge pull request #1 from B14CK313/patch-1
Fixed font scale not working
-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 |