Fix osu! hitcircle font textures being incorrectly sized

This commit is contained in:
Dean Herbert
2019-09-11 13:39:21 +09:00
parent c27eed0195
commit 6760e239a1
2 changed files with 4 additions and 9 deletions

View File

@ -4,7 +4,6 @@
using System.Threading.Tasks;
using osu.Framework.Graphics.Sprites;
using osu.Framework.Text;
using osu.Game.Graphics;
using osu.Game.Graphics.Sprites;
namespace osu.Game.Skinning
@ -18,7 +17,7 @@ namespace osu.Game.Skinning
Shadow = false;
UseFullGlyphHeight = false;
Font = new FontUsage(font, OsuFont.DEFAULT_FONT_SIZE);
Font = new FontUsage(font, 1);
glyphStore = new LegacyGlyphStore(skin);
}
@ -37,10 +36,6 @@ namespace osu.Game.Skinning
{
var texture = skin.GetTexture($"{fontName}-{character}");
if (texture != null)
// Approximate value that brings character sizing roughly in-line with stable
texture.ScaleAdjust *= 18;
if (texture == null)
return null;