diff options
author | Francesco <francesco.bbt@gmail.com> | 2021-03-14 16:36:38 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-14 16:36:38 +0100 |
commit | 2685b05692e6fc40490c3118a992de1b18ee3856 (patch) | |
tree | ebd3162edc8eec704e2a1aa5a22127367b081c2d /plugins/scale.lua | |
parent | bc02e34c2797c6436747a7eb975c449ddaec7cc8 (diff) | |
parent | f239216c2f0dbc087d4c7701732399258ed2011a (diff) | |
download | lite-xl-plugins-2685b05692e6fc40490c3118a992de1b18ee3856.tar.gz lite-xl-plugins-2685b05692e6fc40490c3118a992de1b18ee3856.zip |
Merge branch 'master' into lqdev-plugin-patches
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 |