mirror of
https://github.com/ppy/osu.git
synced 2024-12-15 04:13:00 +08:00
Fix osu! hitcircle font textures being incorrectly sized (#6063)
Fix osu! hitcircle font textures being incorrectly sized
This commit is contained in:
commit
7d0683099e
@ -86,9 +86,9 @@ namespace osu.Game.Rulesets.Osu.Skinning
|
||||
? null
|
||||
: new LegacySpriteText(source, font)
|
||||
{
|
||||
// Spacing value was reverse-engineered from the ratio of the rendered sprite size in the visual inspector vs the actual texture size
|
||||
Scale = new Vector2(0.96f),
|
||||
Spacing = new Vector2(-overlap * 0.89f, 0)
|
||||
// stable applies a blanket 0.8x scale to hitcircle fonts
|
||||
Scale = new Vector2(0.8f),
|
||||
Spacing = new Vector2(-overlap, 0)
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user