Add alternate Torus font

This commit is contained in:
Bartłomiej Dach 2021-10-03 23:36:39 +02:00
parent df50695021
commit 86240cc8ec
No known key found for this signature in database
GPG Key ID: BCECCD4FA41F6497
2 changed files with 11 additions and 0 deletions

View File

@ -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,
}

View File

@ -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");