aboutsummaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorAdam <adamdharrison@gmail.com>2021-06-24 12:47:16 -0400
committerGitHub <noreply@github.com>2021-06-24 12:47:16 -0400
commit83a604dfb76649e06e983799daa00a8d8a57cc59 (patch)
tree1e8ee21176340d2c7cd537f40d083ddd1f09e10e /data
parent88704c6ecbdf5b5b4c1e3e727457ecfc5594c8c8 (diff)
parent1cf0f2009caeac07f5d7345107d810b214e8896e (diff)
downloadlite-xl-83a604dfb76649e06e983799daa00a8d8a57cc59.tar.gz
lite-xl-83a604dfb76649e06e983799daa00a8d8a57cc59.zip
Merge pull request #296 from lite-xl/font-copy-api
Add a C API copy method for font_desc objects
Diffstat (limited to 'data')
-rw-r--r--data/core/style.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/data/core/style.lua b/data/core/style.lua
index 60df7c73..7cf16eb1 100644
--- a/data/core/style.lua
+++ b/data/core/style.lua
@@ -22,9 +22,9 @@ style.tab_width = common.round(170 * SCALE)
-- On High DPI monitor or non RGB monitor you may consider using antialiasing grayscale instead.
-- The antialiasing grayscale with full hinting is interesting for crisp font rendering.
style.font = renderer.font.load(DATADIR .. "/fonts/FiraSans-Regular.ttf", 13 * SCALE)
-style.big_font = renderer.font.load(DATADIR .. "/fonts/FiraSans-Regular.ttf", 40 * SCALE)
+style.big_font = style.font:copy(40 * SCALE)
style.icon_font = renderer.font.load(DATADIR .. "/fonts/icons.ttf", 14 * SCALE, {antialiasing="grayscale", hinting="full"})
-style.icon_big_font = renderer.font.load(DATADIR .. "/fonts/icons.ttf", 20 * SCALE, {antialiasing="grayscale", hinting="full"})
+style.icon_big_font = style.icon_font:copy(20 * SCALE)
style.code_font = renderer.font.load(DATADIR .. "/fonts/JetBrainsMono-Regular.ttf", 13 * SCALE)
style.background = { common.color "#2e2e32" }