Skip to content

Commit 1222eba

Browse files
committed
fix ambiguities
1 parent 4442560 commit 1222eba

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

modules/ILL/ILL.moon

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module_version = "1.7.4"
1+
module_version = "1.7.5"
22

33
haveDepCtrl, DependencyControl = pcall require, "l0.DependencyControl"
44

modules/ILL/ILL/Font/Unx.moon

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)