mirror of
https://github.com/ppy/osu.git
synced 2025-03-18 04:49:34 +08:00
Consider legacy glyph texture heights as the baselines for simplicity
Mixing `LegacySpriteText` with legitment fonts should never be the case, so it's fine to consuder the height as the baseline, since there's really no other way around it.
This commit is contained in:
parent
cab294ffa6
commit
8217b90b1c
@ -56,7 +56,7 @@ namespace osu.Game.Skinning
|
||||
if (texture == null)
|
||||
return null;
|
||||
|
||||
return new TexturedCharacterGlyph(new CharacterGlyph(character, 0, 0, texture.Width, null), texture, 1f / texture.ScaleAdjust);
|
||||
return new TexturedCharacterGlyph(new CharacterGlyph(character, 0, 0, texture.Width, texture.Height, null), texture, 1f / texture.ScaleAdjust);
|
||||
}
|
||||
|
||||
private static string getLookupName(char character)
|
||||
|
Loading…
x
Reference in New Issue
Block a user