mirror of
https://github.com/osukey/osukey.git
synced 2025-05-08 23:27:38 +09:00
Remove exo specification completely
This commit is contained in:
parent
ae112cf14f
commit
288470c313
@ -30,7 +30,7 @@ namespace osu.Game.Graphics
|
|||||||
/// <param name="italics">Whether the font is italic.</param>
|
/// <param name="italics">Whether the font is italic.</param>
|
||||||
/// <param name="fixedWidth">Whether all characters should be spaced the same distance apart.</param>
|
/// <param name="fixedWidth">Whether all characters should be spaced the same distance apart.</param>
|
||||||
/// <returns>The <see cref="FontUsage"/>.</returns>
|
/// <returns>The <see cref="FontUsage"/>.</returns>
|
||||||
public static FontUsage GetFont(Typeface typeface = Typeface.Exo, float size = DEFAULT_FONT_SIZE, FontWeight weight = FontWeight.Medium, bool italics = false, bool fixedWidth = false)
|
public static FontUsage GetFont(Typeface typeface = Typeface.Torus, float size = DEFAULT_FONT_SIZE, FontWeight weight = FontWeight.Medium, bool italics = false, bool fixedWidth = false)
|
||||||
=> new FontUsage(GetFamilyString(typeface), size, GetWeightString(typeface, weight), italics, fixedWidth);
|
=> new FontUsage(GetFamilyString(typeface), size, GetWeightString(typeface, weight), italics, fixedWidth);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -42,9 +42,6 @@ namespace osu.Game.Graphics
|
|||||||
{
|
{
|
||||||
switch (typeface)
|
switch (typeface)
|
||||||
{
|
{
|
||||||
case Typeface.Exo:
|
|
||||||
return "Exo2.0";
|
|
||||||
|
|
||||||
case Typeface.Venera:
|
case Typeface.Venera:
|
||||||
return "Venera";
|
return "Venera";
|
||||||
|
|
||||||
@ -96,7 +93,6 @@ namespace osu.Game.Graphics
|
|||||||
|
|
||||||
public enum Typeface
|
public enum Typeface
|
||||||
{
|
{
|
||||||
Exo,
|
|
||||||
Venera,
|
Venera,
|
||||||
Torus
|
Torus
|
||||||
}
|
}
|
||||||
|
@ -173,7 +173,7 @@ namespace osu.Game.Graphics.UserInterface
|
|||||||
new HoverClickSounds()
|
new HoverClickSounds()
|
||||||
};
|
};
|
||||||
|
|
||||||
Active.BindValueChanged(active => Text.Font = Text.Font.With(Typeface.Exo, weight: active.NewValue ? FontWeight.Bold : FontWeight.Medium), true);
|
Active.BindValueChanged(active => Text.Font = Text.Font.With(Typeface.Torus, weight: active.NewValue ? FontWeight.Bold : FontWeight.Medium), true);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override void OnActivated() => fadeActive();
|
protected override void OnActivated() => fadeActive();
|
||||||
|
@ -78,7 +78,7 @@ namespace osu.Game.Graphics.UserInterface
|
|||||||
new HoverClickSounds()
|
new HoverClickSounds()
|
||||||
};
|
};
|
||||||
|
|
||||||
Active.BindValueChanged(active => Text.Font = Text.Font.With(Typeface.Exo, weight: active.NewValue ? FontWeight.Bold : FontWeight.Medium), true);
|
Active.BindValueChanged(active => Text.Font = Text.Font.With(Typeface.Torus, weight: active.NewValue ? FontWeight.Bold : FontWeight.Medium), true);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected virtual string CreateText() => (Value as Enum)?.GetDescription() ?? Value.ToString();
|
protected virtual string CreateText() => (Value as Enum)?.GetDescription() ?? Value.ToString();
|
||||||
|
@ -132,7 +132,7 @@ namespace osu.Game.Overlays.AccountCreation
|
|||||||
usernameDescription.AddText("This will be your public presence. No profanity, no impersonation. Avoid exposing your own personal details, too!");
|
usernameDescription.AddText("This will be your public presence. No profanity, no impersonation. Avoid exposing your own personal details, too!");
|
||||||
|
|
||||||
emailAddressDescription.AddText("Will be used for notifications, account verification and in the case you forget your password. No spam, ever.");
|
emailAddressDescription.AddText("Will be used for notifications, account verification and in the case you forget your password. No spam, ever.");
|
||||||
emailAddressDescription.AddText(" Make sure to get it right!", cp => cp.Font = cp.Font.With(Typeface.Exo, weight: FontWeight.Bold));
|
emailAddressDescription.AddText(" Make sure to get it right!", cp => cp.Font = cp.Font.With(Typeface.Torus, weight: FontWeight.Bold));
|
||||||
|
|
||||||
passwordDescription.AddText("At least ");
|
passwordDescription.AddText("At least ");
|
||||||
characterCheckText = passwordDescription.AddText("8 characters long");
|
characterCheckText = passwordDescription.AddText("8 characters long");
|
||||||
|
@ -75,7 +75,7 @@ namespace osu.Game.Overlays.News
|
|||||||
Left = 25,
|
Left = 25,
|
||||||
Bottom = 50,
|
Bottom = 50,
|
||||||
},
|
},
|
||||||
Font = OsuFont.GetFont(Typeface.Exo, 24, FontWeight.Bold),
|
Font = OsuFont.GetFont(Typeface.Torus, 24, FontWeight.Bold),
|
||||||
Text = info.Title,
|
Text = info.Title,
|
||||||
},
|
},
|
||||||
new OsuSpriteText
|
new OsuSpriteText
|
||||||
@ -87,7 +87,7 @@ namespace osu.Game.Overlays.News
|
|||||||
Left = 25,
|
Left = 25,
|
||||||
Bottom = 30,
|
Bottom = 30,
|
||||||
},
|
},
|
||||||
Font = OsuFont.GetFont(Typeface.Exo, 16, FontWeight.Bold),
|
Font = OsuFont.GetFont(Typeface.Torus, 16, FontWeight.Bold),
|
||||||
Text = "by " + info.Author
|
Text = "by " + info.Author
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@ -148,7 +148,7 @@ namespace osu.Game.Overlays.News
|
|||||||
{
|
{
|
||||||
Anchor = Anchor.Centre,
|
Anchor = Anchor.Centre,
|
||||||
Origin = Anchor.Centre,
|
Origin = Anchor.Centre,
|
||||||
Font = OsuFont.GetFont(Typeface.Exo, 12, FontWeight.Black, false, false),
|
Font = OsuFont.GetFont(Typeface.Torus, 12, FontWeight.Black, false, false),
|
||||||
Text = date.ToString("d MMM yyy").ToUpper(),
|
Text = date.ToString("d MMM yyy").ToUpper(),
|
||||||
Margin = new MarginPadding
|
Margin = new MarginPadding
|
||||||
{
|
{
|
||||||
|
@ -90,14 +90,14 @@ namespace osu.Game.Screens.Menu
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
textFlow.AddText("This project is an ongoing ", t => t.Font = t.Font.With(Typeface.Exo, 30, FontWeight.Light));
|
textFlow.AddText("This project is an ongoing ", t => t.Font = t.Font.With(Typeface.Torus, 30, FontWeight.Light));
|
||||||
textFlow.AddText("work in progress", t => t.Font = t.Font.With(Typeface.Exo, 30, FontWeight.SemiBold));
|
textFlow.AddText("work in progress", t => t.Font = t.Font.With(Typeface.Torus, 30, FontWeight.SemiBold));
|
||||||
|
|
||||||
textFlow.NewParagraph();
|
textFlow.NewParagraph();
|
||||||
|
|
||||||
static void format(SpriteText t) => t.Font = OsuFont.GetFont(size: 15, weight: FontWeight.SemiBold);
|
static void format(SpriteText t) => t.Font = OsuFont.GetFont(size: 15, weight: FontWeight.SemiBold);
|
||||||
|
|
||||||
textFlow.AddParagraph(getRandomTip(), t => t.Font = t.Font.With(Typeface.Exo, 20, FontWeight.SemiBold));
|
textFlow.AddParagraph(getRandomTip(), t => t.Font = t.Font.With(Typeface.Torus, 20, FontWeight.SemiBold));
|
||||||
textFlow.NewParagraph();
|
textFlow.NewParagraph();
|
||||||
|
|
||||||
textFlow.NewParagraph();
|
textFlow.NewParagraph();
|
||||||
|
@ -77,7 +77,7 @@ namespace osu.Game.Screens.Multi.Lounge.Components
|
|||||||
if (host.NewValue != null)
|
if (host.NewValue != null)
|
||||||
{
|
{
|
||||||
hostText.AddText("hosted by ");
|
hostText.AddText("hosted by ");
|
||||||
hostText.AddUserLink(host.NewValue, s => s.Font = s.Font.With(Typeface.Exo, weight: FontWeight.Bold, italics: true));
|
hostText.AddUserLink(host.NewValue, s => s.Font = s.Font.With(Typeface.Torus, weight: FontWeight.Bold, italics: true));
|
||||||
|
|
||||||
flagContainer.Child = new UpdateableFlag(host.NewValue.Country) { RelativeSizeAxes = Axes.Both };
|
flagContainer.Child = new UpdateableFlag(host.NewValue.Country) { RelativeSizeAxes = Axes.Both };
|
||||||
}
|
}
|
||||||
|
@ -91,7 +91,7 @@ namespace osu.Game.Screens.Multi.Ranking.Pages
|
|||||||
|
|
||||||
rankText.AddText($"#{index + 1} ", s =>
|
rankText.AddText($"#{index + 1} ", s =>
|
||||||
{
|
{
|
||||||
s.Font = s.Font.With(Typeface.Exo, weight: FontWeight.Bold);
|
s.Font = s.Font.With(Typeface.Torus, weight: FontWeight.Bold);
|
||||||
s.Colour = colours.YellowDark;
|
s.Colour = colours.YellowDark;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user