mirror of
https://github.com/ppy/osu
synced 2025-02-04 20:32:12 +00:00
Match family string via GetFamilyString()
This commit is contained in:
parent
9a1a199e71
commit
dfc643fd8c
@ -80,7 +80,7 @@ namespace osu.Game.Graphics
|
||||
/// <returns>The string representation of <paramref name="weight"/> in the specified <paramref name="family"/>.</returns>
|
||||
public static string GetWeightString(string family, FontWeight weight)
|
||||
{
|
||||
if ((family == @"Torus" || family == @"Torus-Alternate") && weight == FontWeight.Medium)
|
||||
if ((family == GetFamilyString(Typeface.Torus) || family == GetFamilyString(Typeface.TorusAlternate)) && weight == FontWeight.Medium)
|
||||
// torus doesn't have a medium; fallback to regular.
|
||||
weight = FontWeight.Regular;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user