Adjust default code font size

The previous value looks too big in hidpi screens
This commit is contained in:
Francesco Abbate 2021-02-19 16:10:57 +01:00
parent 76b463bd11
commit 68d9794926
3 changed files with 3 additions and 3 deletions

View File

@ -270,7 +270,7 @@ local style = require "core.style"
-- customize fonts:
-- style.font = renderer.font.load(DATADIR .. "/fonts/font.ttf", 14 * SCALE)
-- style.code_font = renderer.font.load(DATADIR .. "/fonts/monospace.ttf", 13.5 * SCALE)
-- style.code_font = renderer.font.load(DATADIR .. "/fonts/monospace.ttf", 12.5 * SCALE)
--
-- font names used by lite:
-- style.font : user interface

View File

@ -25,7 +25,7 @@ style.font = renderer.font.load(DATADIR .. "/fonts/font.ttf", 14 * SCALE)
style.big_font = renderer.font.load(DATADIR .. "/fonts/font.ttf", 34 * 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.code_font = renderer.font.load(DATADIR .. "/fonts/monospace.ttf", 13.5 * SCALE)
style.code_font = renderer.font.load(DATADIR .. "/fonts/monospace.ttf", 12.5 * SCALE)
style.background = { common.color "#2e2e32" }
style.background2 = { common.color "#252529" }

View File

@ -22,7 +22,7 @@ local style = require "core.style"
-- customize fonts:
-- style.font = renderer.font.load(DATADIR .. "/fonts/font.ttf", 14 * SCALE)
-- style.code_font = renderer.font.load(DATADIR .. "/fonts/monospace.ttf", 13.5 * SCALE)
-- style.code_font = renderer.font.load(DATADIR .. "/fonts/monospace.ttf", 12.5 * SCALE)
--
-- font names used by lite:
-- style.font : user interface