Fix documentation and behavior for 1.13 release

This commit is contained in:
Francesco Abbate
2020-12-06 11:23:33 +01:00
parent afda299fe4
commit 1c4b8cf315
5 changed files with 84 additions and 22 deletions
+4 -4
View File
@@ -13,14 +13,14 @@ style.tab_width = common.round(170 * SCALE)
-- {antialiasing= "grayscale", hinting = "full"}
--
-- The possible values for each option are:
-- - for antialiang: grayscale, subpixel
-- - for antialiasing: grayscale, subpixel
-- - for hinting: none, slight, full
--
-- The defaults values are antialiang subpixel and hinting slight for optimal visualization
-- The defaults values are antialiasing subpixel and hinting slight for optimal visualization
-- on ordinary LCD monitor with RGB patterns.
--
-- On High DPI monitor or non RGB monitor you may consider using antialiang grayscale instead.
-- The antialising grayscale with full hinting is interesting for crisp font rendering.
-- 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/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"})