mirror of
https://github.com/osukey/osukey.git
synced 2025-05-30 01:47:30 +09:00
Merge branch 'add-torus-font' into tournament-seeding-screen
This commit is contained in:
commit
c8ee529fa3
@ -51,7 +51,7 @@
|
|||||||
<Reference Include="Java.Interop" />
|
<Reference Include="Java.Interop" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="ppy.osu.Game.Resources" Version="2020.303.0" />
|
<PackageReference Include="ppy.osu.Game.Resources" Version="2020.304.0" />
|
||||||
<PackageReference Include="ppy.osu.Framework.Android" Version="2020.302.0" />
|
<PackageReference Include="ppy.osu.Framework.Android" Version="2020.302.0" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
</Project>
|
</Project>
|
||||||
|
@ -17,7 +17,7 @@ namespace osu.Game.Graphics
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public static FontUsage Default => GetFont();
|
public static FontUsage Default => GetFont();
|
||||||
|
|
||||||
public static FontUsage Numeric => GetFont(Typeface.Venera, weight: FontWeight.Regular);
|
public static FontUsage Numeric => GetFont(Typeface.Venera, weight: FontWeight.Bold);
|
||||||
|
|
||||||
public static FontUsage Torus => GetFont(Typeface.Torus, weight: FontWeight.Regular);
|
public static FontUsage Torus => GetFont(Typeface.Torus, weight: FontWeight.Regular);
|
||||||
|
|
||||||
@ -103,11 +103,34 @@ namespace osu.Game.Graphics
|
|||||||
|
|
||||||
public enum FontWeight
|
public enum FontWeight
|
||||||
{
|
{
|
||||||
Light,
|
/// <summary>
|
||||||
Regular,
|
/// equivalent to weight 300
|
||||||
Medium,
|
/// </summary>
|
||||||
SemiBold,
|
Light = 300,
|
||||||
Bold,
|
|
||||||
Black
|
/// <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),
|
Spacing = new Vector2(-3, 0),
|
||||||
Padding = new MarginPadding { Top = 5 },
|
Padding = new MarginPadding { Top = 5 },
|
||||||
Colour = getRankNameColour(),
|
Colour = getRankNameColour(),
|
||||||
Font = OsuFont.GetFont(Typeface.Venera, 25),
|
Font = OsuFont.Numeric.With(size: 25),
|
||||||
Text = getRankName(),
|
Text = getRankName(),
|
||||||
ShadowColour = Color4.Black.Opacity(0.3f),
|
ShadowColour = Color4.Black.Opacity(0.3f),
|
||||||
ShadowOffset = new Vector2(0, 0.08f),
|
ShadowOffset = new Vector2(0, 0.08f),
|
||||||
|
@ -162,9 +162,9 @@ namespace osu.Game
|
|||||||
AddFont(Resources, @"Fonts/Torus-Regular");
|
AddFont(Resources, @"Fonts/Torus-Regular");
|
||||||
AddFont(Resources, @"Fonts/Torus-Light");
|
AddFont(Resources, @"Fonts/Torus-Light");
|
||||||
|
|
||||||
AddFont(Resources, @"Fonts/Venera");
|
|
||||||
AddFont(Resources, @"Fonts/Venera-Light");
|
AddFont(Resources, @"Fonts/Venera-Light");
|
||||||
AddFont(Resources, @"Fonts/Venera-Medium");
|
AddFont(Resources, @"Fonts/Venera-Bold");
|
||||||
|
AddFont(Resources, @"Fonts/Venera-Black");
|
||||||
|
|
||||||
runMigrations();
|
runMigrations();
|
||||||
|
|
||||||
|
@ -22,7 +22,7 @@
|
|||||||
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="2.2.6" />
|
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="2.2.6" />
|
||||||
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite.Core" Version="2.2.6" />
|
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite.Core" Version="2.2.6" />
|
||||||
<PackageReference Include="Newtonsoft.Json" Version="12.0.3" />
|
<PackageReference Include="Newtonsoft.Json" Version="12.0.3" />
|
||||||
<PackageReference Include="ppy.osu.Game.Resources" Version="2020.303.0" />
|
<PackageReference Include="ppy.osu.Game.Resources" Version="2020.304.0" />
|
||||||
<PackageReference Include="ppy.osu.Framework" Version="2020.302.0" />
|
<PackageReference Include="ppy.osu.Framework" Version="2020.302.0" />
|
||||||
<PackageReference Include="Sentry" Version="2.1.0" />
|
<PackageReference Include="Sentry" Version="2.1.0" />
|
||||||
<PackageReference Include="SharpCompress" Version="0.24.0" />
|
<PackageReference Include="SharpCompress" Version="0.24.0" />
|
||||||
|
@ -70,7 +70,7 @@
|
|||||||
<Reference Include="System.Net.Http" />
|
<Reference Include="System.Net.Http" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup Label="Package References">
|
<ItemGroup Label="Package References">
|
||||||
<PackageReference Include="ppy.osu.Game.Resources" Version="2020.303.0" />
|
<PackageReference Include="ppy.osu.Game.Resources" Version="2020.304.0" />
|
||||||
<PackageReference Include="ppy.osu.Framework.iOS" Version="2020.302.0" />
|
<PackageReference Include="ppy.osu.Framework.iOS" Version="2020.302.0" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<!-- Xamarin.iOS does not automatically handle transitive dependencies from NuGet packages. -->
|
<!-- Xamarin.iOS does not automatically handle transitive dependencies from NuGet packages. -->
|
||||||
|
Loading…
x
Reference in New Issue
Block a user