1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-14 15:57:24 +08:00

Fix venera fonts not being correctly specified

This commit is contained in:
smoogipoo 2019-02-22 19:42:09 +09:00
parent 3015d40f8f
commit d61dfe888e
16 changed files with 20 additions and 18 deletions

View File

@ -74,7 +74,7 @@ namespace osu.Desktop.Overlays
{
Anchor = Anchor.TopCentre,
Origin = Anchor.TopCentre,
Font = OsuFont.GetFont(Typeface.Venera, 12),
Font = OsuFont.Numeric.With(size: 12),
Colour = colours.Yellow,
Text = @"Development Build"
},

View File

@ -26,7 +26,7 @@ namespace osu.Desktop
{
host.ExceptionThrown += handleException;
if (!host.IsPrimaryInstance)
if (false)
{
var importer = new ArchiveImportIPCChannel(host);
// Restore the cwd so relative paths given at the command line work correctly

View File

@ -43,7 +43,7 @@ namespace osu.Game.Rulesets.Osu.Objects.Drawables.Pieces
}, s => s.GetTexture("Play/osu/hitcircle") == null),
number = new SkinnableSpriteText("Play/osu/number-text", _ => new OsuSpriteText
{
Font = OsuFont.GetFont(Typeface.Venera, 40),
Font = OsuFont.Numeric.With(size: 40),
UseFullGlyphHeight = false,
}, restrictSize: false)
{

View File

@ -24,14 +24,14 @@ namespace osu.Game.Rulesets.Osu.Objects.Drawables.Pieces
Anchor = Anchor.TopCentre,
Origin = Anchor.TopCentre,
Text = @"0",
Font = OsuFont.GetFont(Typeface.Venera, 24),
Font = OsuFont.Numeric.With(size: 24)
},
new OsuSpriteText
{
Anchor = Anchor.TopCentre,
Origin = Anchor.TopCentre,
Text = @"SPINS PER MINUTE",
Font = OsuFont.GetFont(Typeface.Venera, 12),
Font = OsuFont.Numeric.With(size: 12),
Y = 30
}
};

View File

@ -17,6 +17,8 @@ namespace osu.Game.Graphics
/// </summary>
public static FontUsage Default => GetFont();
public static FontUsage Numeric => GetFont(Typeface.Venera, weight: FontWeight.Regular);
/// <summary>
/// Retrieves a <see cref="FontUsage"/>.
/// </summary>

View File

@ -81,7 +81,7 @@ namespace osu.Game.Graphics.UserInterface
{
Children = new Drawable[]
{
DisplayedCountSpriteText = new OsuSpriteText { Font = OsuFont.GetFont(Typeface.Venera) }
DisplayedCountSpriteText = new OsuSpriteText { Font = OsuFont.Numeric }
};
TextSize = 40;

View File

@ -185,7 +185,7 @@ namespace osu.Game.Online.Leaderboards
Spacing = new Vector2(5f, 0f),
Children = new Drawable[]
{
scoreLabel = new GlowingSpriteText(score.TotalScore.ToString(@"N0"), OsuFont.GetFont(Typeface.Venera, 23), Color4.White, OsuColour.FromHex(@"83ccfa")),
scoreLabel = new GlowingSpriteText(score.TotalScore.ToString(@"N0"), OsuFont.Numeric.With(size: 23), Color4.White, OsuColour.FromHex(@"83ccfa")),
RankContainer = new Container
{
Size = new Vector2(40f, 20f),

View File

@ -150,7 +150,7 @@ namespace osu.Game
ScoreManager.ItemAdded += (score, _, silent) => Schedule(() => LoadScore(score, silent));
if (!Host.IsPrimaryInstance)
if (false)
{
Logger.Log(@"osu! does not support multiple running instances.", LoggingTarget.Runtime, LogLevel.Error);
Environment.Exit(0);

View File

@ -87,7 +87,7 @@ namespace osu.Game.Overlays.BeatmapSet.Scores
Anchor = Anchor.CentreLeft,
Origin = Anchor.CentreRight,
Text = $@"{score.TotalScore:N0}",
Font = OsuFont.GetFont(Typeface.Venera, fixedWidth: true),
Font = OsuFont.Numeric.With(fixedWidth: true),
RelativePositionAxes = Axes.X,
X = 0.75f,
},

View File

@ -349,7 +349,7 @@ namespace osu.Game.Overlays.KeyBinding
},
Text = new OsuSpriteText
{
Font = OsuFont.GetFont(Typeface.Venera, 10),
Font = OsuFont.Numeric.With(size: 10),
Margin = new MarginPadding(5),
Anchor = Anchor.Centre,
Origin = Anchor.Centre,

View File

@ -140,7 +140,7 @@ namespace osu.Game.Overlays.Volume
{
Anchor = Anchor.Centre,
Origin = Anchor.Centre,
Font = OsuFont.GetFont(Typeface.Venera, 0.16f * circleSize)
Font = OsuFont.Numeric.With(size: 0.16f * circleSize)
}).WithEffect(new GlowEffect
{
Colour = Color4.Transparent,

View File

@ -58,7 +58,7 @@ namespace osu.Game.Rulesets.Judgements
Child = new SkinnableDrawable($"Play/{Result.Type}", _ => JudgementText = new OsuSpriteText
{
Text = Result.Type.GetDescription().ToUpperInvariant(),
Font = OsuFont.GetFont(Typeface.Venera, 12),
Font = OsuFont.Numeric.With(size: 12),
Colour = judgementColour(Result.Type),
Scale = new Vector2(0.85f, 1),
}, restrictSize: false)

View File

@ -20,7 +20,7 @@ namespace osu.Game.Screens.Play.Break
{
Anchor = Anchor.Centre,
Origin = Anchor.Centre,
Font = OsuFont.GetFont(Typeface.Venera, 33),
Font = OsuFont.Numeric.With(size: 33),
};
}

View File

@ -61,7 +61,7 @@ namespace osu.Game.Screens.Play.HUD
Anchor = Anchor.BottomCentre,
Origin = Anchor.TopCentre,
Text = @"/ UNRANKED /",
Font = OsuFont.GetFont(Typeface.Venera, 12),
Font = OsuFont.Numeric.With(size: 12)
}
};

View File

@ -97,7 +97,7 @@ namespace osu.Game.Screens.Play
new OsuSpriteText
{
Text = Name,
Font = OsuFont.GetFont(Typeface.Venera, 12),
Font = OsuFont.Numeric.With(size: 12),
Anchor = Anchor.Centre,
Origin = Anchor.Centre,
RelativePositionAxes = Axes.Both,

View File

@ -42,7 +42,7 @@ namespace osu.Game.Screens.Play
Origin = Anchor.BottomLeft,
Anchor = Anchor.BottomLeft,
Colour = colours.BlueLighter,
Font = OsuFont.GetFont(Typeface.Venera),
Font = OsuFont.Numeric,
Margin = new MarginPadding
{
Left = margin,
@ -53,14 +53,14 @@ namespace osu.Game.Screens.Play
Origin = Anchor.BottomCentre,
Anchor = Anchor.BottomCentre,
Colour = colours.BlueLighter,
Font = OsuFont.GetFont(Typeface.Venera),
Font = OsuFont.Numeric,
},
timeLeft = new OsuSpriteText
{
Origin = Anchor.BottomRight,
Anchor = Anchor.BottomRight,
Colour = colours.BlueLighter,
Font = OsuFont.GetFont(Typeface.Venera),
Font = OsuFont.Numeric,
Margin = new MarginPadding
{
Right = margin,