mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 11:37:28 +08:00
Better align fonts to weights
This commit is contained in:
parent
db56fb5759
commit
4294ed4b64
@ -17,7 +17,7 @@ namespace osu.Game.Graphics
|
||||
/// </summary>
|
||||
public static FontUsage Default => GetFont();
|
||||
|
||||
public static FontUsage Numeric => GetFont(Typeface.Venera);
|
||||
public static FontUsage Numeric => GetFont(Typeface.Venera, weight: FontWeight.Bold);
|
||||
|
||||
public static FontUsage Torus => GetFont(Typeface.Torus, weight: FontWeight.Regular);
|
||||
|
||||
@ -103,11 +103,34 @@ namespace osu.Game.Graphics
|
||||
|
||||
public enum FontWeight
|
||||
{
|
||||
Light,
|
||||
Regular,
|
||||
Medium,
|
||||
SemiBold,
|
||||
Bold,
|
||||
Black
|
||||
/// <summary>
|
||||
/// equivalent to weight 300
|
||||
/// </summary>
|
||||
Light = 300,
|
||||
|
||||
/// <summary>
|
||||
/// equivalent to weight 400
|
||||
/// </summary>
|
||||
Regular = 400,
|
||||
|
||||
/// <summary>
|
||||
/// equivalent to weight 500
|
||||
/// </summary>
|
||||
Medium = 500,
|
||||
|
||||
/// <summary>
|
||||
/// equivalent to weight 600
|
||||
/// </summary>
|
||||
SemiBold = 600,
|
||||
|
||||
/// <summary>
|
||||
/// equivalent to weight 700
|
||||
/// </summary>
|
||||
Bold = 700,
|
||||
|
||||
/// <summary>
|
||||
/// equivalent to weight 900
|
||||
/// </summary>
|
||||
Black = 900
|
||||
}
|
||||
}
|
||||
|
@ -58,7 +58,7 @@ namespace osu.Game.Online.Leaderboards
|
||||
Spacing = new Vector2(-3, 0),
|
||||
Padding = new MarginPadding { Top = 5 },
|
||||
Colour = getRankNameColour(),
|
||||
Font = OsuFont.GetFont(Typeface.Venera, 25),
|
||||
Font = OsuFont.Numeric.With(size: 25),
|
||||
Text = getRankName(),
|
||||
ShadowColour = Color4.Black.Opacity(0.3f),
|
||||
ShadowOffset = new Vector2(0, 0.08f),
|
||||
|
Loading…
Reference in New Issue
Block a user