mirror of
https://github.com/ppy/osu.git
synced 2025-02-05 21:33:04 +08:00
Fix torus alternate not mapping "medium" weight to "regular"
This commit is contained in:
parent
7971355660
commit
3aec0fe9b6
@ -80,7 +80,7 @@ namespace osu.Game.Graphics
|
|||||||
/// <returns>The string representation of <paramref name="weight"/> in the specified <paramref name="family"/>.</returns>
|
/// <returns>The string representation of <paramref name="weight"/> in the specified <paramref name="family"/>.</returns>
|
||||||
public static string GetWeightString(string family, FontWeight weight)
|
public static string GetWeightString(string family, FontWeight weight)
|
||||||
{
|
{
|
||||||
if (family == @"Torus" && weight == FontWeight.Medium)
|
if ((family == @"Torus" || family == @"Torus-Alternate") && weight == FontWeight.Medium)
|
||||||
// torus doesn't have a medium; fallback to regular.
|
// torus doesn't have a medium; fallback to regular.
|
||||||
weight = FontWeight.Regular;
|
weight = FontWeight.Regular;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user