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:
co-authored by
Guldoman
parent
f07b62f852
commit
9b1bfeacac
+3
-1
@@ -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 ----------------------------------------
|
||||
|
||||
|
||||
Reference in New Issue
Block a user