File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 1- module_version = " 1.7.4 "
1+ module_version = " 1.7.5 "
22
33haveDepCtrl, DependencyControl = pcall require , " l0.DependencyControl"
44
Original file line number Diff line number Diff line change @@ -784,8 +784,8 @@ class FreeType extends Init
784784 -- Score a font based on bold and italic requirements
785785 scoreFont : ( font, bold, italic) ->
786786 style = FreeType . norm font. style
787- font_bold = style \ find ( " bold " ) or style\ find ( " black " ) or style \ find ( " heavy " ) or style \ find ( " semibold " ) or style \ find ( " demi " )
788- font_italic = style \ find ( " italic " ) or style\ find ( " oblique " )
787+ font_bold = FreeType . isBold style
788+ font_italic = FreeType . isItalic style
789789 score = 0
790790 if bold == font_bold and italic == font_italic
791791 return 0
You can’t perform that action at this time.
0 commit comments