mirror of https://github.com/ppy/osu
Add alternate Torus font
This commit is contained in:
parent
df50695021
commit
86240cc8ec
|
@ -21,6 +21,8 @@ public static class OsuFont
|
|||
|
||||
public static FontUsage Torus => GetFont(Typeface.Torus, weight: FontWeight.Regular);
|
||||
|
||||
public static FontUsage TorusAlternate => GetFont(Typeface.TorusAlternate, weight: FontWeight.Regular);
|
||||
|
||||
public static FontUsage Inter => GetFont(Typeface.Inter, weight: FontWeight.Regular);
|
||||
|
||||
/// <summary>
|
||||
|
@ -57,6 +59,9 @@ public static string GetFamilyString(Typeface typeface)
|
|||
case Typeface.Torus:
|
||||
return "Torus";
|
||||
|
||||
case Typeface.TorusAlternate:
|
||||
return "Torus-Alternate";
|
||||
|
||||
case Typeface.Inter:
|
||||
return "Inter";
|
||||
}
|
||||
|
@ -113,6 +118,7 @@ public enum Typeface
|
|||
{
|
||||
Venera,
|
||||
Torus,
|
||||
TorusAlternate,
|
||||
Inter,
|
||||
}
|
||||
|
||||
|
|
|
@ -347,6 +347,11 @@ protected virtual void InitialiseFonts()
|
|||
AddFont(Resources, @"Fonts/Torus/Torus-SemiBold");
|
||||
AddFont(Resources, @"Fonts/Torus/Torus-Bold");
|
||||
|
||||
AddFont(Resources, @"Fonts/Torus-Alternate/Torus-Alternate-Regular");
|
||||
AddFont(Resources, @"Fonts/Torus-Alternate/Torus-Alternate-Light");
|
||||
AddFont(Resources, @"Fonts/Torus-Alternate/Torus-Alternate-SemiBold");
|
||||
AddFont(Resources, @"Fonts/Torus-Alternate/Torus-Alternate-Bold");
|
||||
|
||||
AddFont(Resources, @"Fonts/Inter/Inter-Regular");
|
||||
AddFont(Resources, @"Fonts/Inter/Inter-RegularItalic");
|
||||
AddFont(Resources, @"Fonts/Inter/Inter-Light");
|
||||
|
|
Loading…
Reference in New Issue