1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-14 22:02:56 +08:00

Add custom font

This commit is contained in:
Dean Herbert 2018-11-07 00:27:12 +09:00
parent 53ec01d51f
commit 555d63165b
6 changed files with 11 additions and 4 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 67 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 67 KiB

View File

@ -96,7 +96,7 @@ namespace osu.Game.Tournament.Screens.TeamIntro
Origin = Anchor.TopCentre,
Colour = col,
Text = "COMING UP NEXT",
Font = "Exo2.0-SemiBold",
Font = "Aquatico-Regular",
TextSize = 15,
},
new OsuSpriteText
@ -105,7 +105,7 @@ namespace osu.Game.Tournament.Screens.TeamIntro
Origin = Anchor.TopCentre,
Colour = col,
Text = group?.Name.Value ?? "Unknown Grouping",
Font = "Exo2.0-Light",
Font = "Aquatico-Light",
Spacing = new Vector2(10, 0),
TextSize = 50,
},
@ -113,6 +113,7 @@ namespace osu.Game.Tournament.Screens.TeamIntro
{
Anchor = Anchor.TopCentre,
Origin = Anchor.TopCentre,
Font = "Aquatico-Light",
Colour = col,
Text = (group?.StartDate.Value ?? DateTimeOffset.Now).ToString("dd MMMM HH:mm UTC"),
TextSize = 20,
@ -150,7 +151,6 @@ namespace osu.Game.Tournament.Screens.TeamIntro
Anchor = !left ? Anchor.CentreRight : Anchor.CentreLeft,
Origin = !left ? Anchor.CentreRight : Anchor.CentreLeft,
RelativePositionAxes = Axes.Both,
X = left ? 0.1f : -0.1f,
},
};
@ -160,6 +160,7 @@ namespace osu.Game.Tournament.Screens.TeamIntro
players.Add(new OsuSpriteText
{
Text = p.Username,
Font = "Aquatico-Regular",
TextSize = 24,
Colour = colour,
Anchor = left ? Anchor.CentreRight : Anchor.CentreLeft,
@ -194,7 +195,7 @@ namespace osu.Game.Tournament.Screens.TeamIntro
Text = team?.FullName.ToUpper() ?? "???",
TextSize = 40,
Colour = Color4.Black,
Font = "Exo2.0-Light",
Font = "Aquatico-Light",
Origin = Anchor.TopCentre,
Anchor = Anchor.TopCentre,
},

View File

@ -9,6 +9,7 @@ using Newtonsoft.Json;
using osu.Framework.Allocation;
using osu.Framework.Configuration;
using osu.Framework.Graphics;
using osu.Framework.IO.Stores;
using osu.Framework.Platform;
using osu.Game.Beatmaps;
using osu.Game.Graphics.UserInterface;
@ -43,6 +44,11 @@ namespace osu.Game.Tournament
[BackgroundDependencyLoader]
private void load(Storage storage, FrameworkConfigManager frameworkConfig)
{
Resources.AddStore(new DllResourceStore(@"osu.Game.Tournament.dll"));
Fonts.AddStore(new GlyphStore(Resources, @"Resources/Fonts/Aquatico-Regular"));
Fonts.AddStore(new GlyphStore(Resources, @"Resources/Fonts/Aquatico-Light"));
this.storage = storage;
windowSize = frameworkConfig.GetBindable<Size>(FrameworkSetting.WindowedSize);