Added a smoothing and strikethrough option to font loading. (#1087)

* Added a smoothing option to font loading.
* Added a font strikethrough option to font loading.
* Fixed underline applying incorrectly in cases of non-underlined fallback fonts being used.

Co-authored-by: Guldoman <giulio.lettieri@gmail.com>
This commit is contained in:
Aqil Contractor
2022-08-20 16:15:08 -04:00
committed by GitHub
co-authored by Guldoman
parent f07b62f852
commit 9b1bfeacac
6 changed files with 41 additions and 6 deletions
+3 -1
View File
@@ -497,7 +497,7 @@ local style = require "core.style"
--
-- the function to load the font accept a 3rd optional argument like:
--
-- {antialiasing="grayscale", hinting="full", bold=true, italic=true, underline=true}
-- {antialiasing="grayscale", hinting="full", bold=true, italic=true, underline=true, smoothing=true, strikethrough=true}
--
-- possible values are:
-- antialiasing: grayscale, subpixel
@@ -505,6 +505,8 @@ local style = require "core.style"
-- bold: true, false
-- italic: true, false
-- underline: true, false
-- smoothing: true, false
-- strikethrough: true, false
------------------------------ Plugins ----------------------------------------