mirror of
https://github.com/ppy/osu
synced 2025-01-11 16:49:39 +00:00
Merge pull request #10556 from peppy/fix-legacy-score-display-fixed-width
Allow legacy text to display fixed width correctly
This commit is contained in:
commit
d1075cabbd
@ -12,12 +12,16 @@ namespace osu.Game.Skinning
|
||||
{
|
||||
private readonly LegacyGlyphStore glyphStore;
|
||||
|
||||
protected override char FixedWidthReferenceCharacter => '5';
|
||||
|
||||
protected override char[] FixedWidthExcludeCharacters => new[] { ',', '.', '%', 'x' };
|
||||
|
||||
public LegacySpriteText(ISkin skin, string font = "score")
|
||||
{
|
||||
Shadow = false;
|
||||
UseFullGlyphHeight = false;
|
||||
|
||||
Font = new FontUsage(font, 1);
|
||||
Font = new FontUsage(font, 1, fixedWidth: true);
|
||||
glyphStore = new LegacyGlyphStore(skin);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user