We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 204551e commit 2c931f9Copy full SHA for 2c931f9
1 file changed
Sources/GateEngine/Resources/Text/Font.swift
@@ -106,7 +106,7 @@ public final class Font: OldResource {
106
pointSize: UInt,
107
style: Font.Style
108
) -> CharacterData {
109
- let key = Key(style: style, pointSize: pointSize)
+ let key = Key(style: effectiveStyle(for: style), pointSize: pointSize)
110
return backend.characterData(forKey: key, character: character)
111
}
112
@@ -117,7 +117,7 @@ public final class Font: OldResource {
117
origin: Position2,
118
xAdvance: inout Float
119
) -> AlignedCharacter {
120
121
return backend.alignedCharacter(
122
forKey: key,
123
character: character,
0 commit comments