Scale custom syntax fonts for scale plugin

Close #539.
This commit is contained in:
Francesco Abbate 2021-09-19 18:51:44 +02:00
parent 849614a3cb
commit 8d3680ab45
1 changed files with 4 additions and 0 deletions

View File

@ -56,6 +56,10 @@ local function set_scale(scale)
renderer.font.set_size(style.code_font, s * style.code_font:get_size())
end
for _, font in pairs(style.syntax_fonts) do
renderer.font.set_size(font, s * font:get_size())
end
-- restore scroll positions
for view, n in pairs(scrolls) do
view.scroll.y = n * (view:get_scrollable_size() - view.size.y)