Merge pull request #863 from jgmdev/scale-fix

plugin scale: replace non existing font.set_size with font.copy
This commit is contained in:
Jefferson González 2022-03-05 20:03:05 -04:00 committed by GitHub
commit d82b668a09
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 6 deletions

View File

@ -50,12 +50,8 @@ local function set_scale(scale)
style.code_font = renderer.font.copy(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
for _, font in pairs(style.syntax_fonts) do
renderer.font.set_size(font, s * font:get_size())
for name, font in pairs(style.syntax_fonts) do
style.syntax_fonts[name] = renderer.font.copy(font, s * font:get_size())
end
-- restore scroll positions