File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Sources/GateEngine/Resources/Text Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -106,7 +106,7 @@ public final class Font: OldResource {
106106 pointSize: UInt ,
107107 style: Font . Style
108108 ) -> CharacterData {
109- let key = Key ( style: style, pointSize: pointSize)
109+ let key = Key ( style: effectiveStyle ( for : style) , pointSize: pointSize)
110110 return backend. characterData ( forKey: key, character: character)
111111 }
112112
@@ -117,7 +117,7 @@ public final class Font: OldResource {
117117 origin: Position2 ,
118118 xAdvance: inout Float
119119 ) -> AlignedCharacter {
120- let key = Key ( style: style, pointSize: pointSize)
120+ let key = Key ( style: effectiveStyle ( for : style) , pointSize: pointSize)
121121 return backend. alignedCharacter (
122122 forKey: key,
123123 character: character,
You can’t perform that action at this time.
0 commit comments