diff --git a/osu.Game/Screens/Ranking/Statistics/HitEventTimingDistributionGraph.cs b/osu.Game/Screens/Ranking/Statistics/HitEventTimingDistributionGraph.cs
index e8d2eefd81..fb9a78fb54 100644
--- a/osu.Game/Screens/Ranking/Statistics/HitEventTimingDistributionGraph.cs
+++ b/osu.Game/Screens/Ranking/Statistics/HitEventTimingDistributionGraph.cs
@@ -154,7 +154,7 @@ namespace osu.Game.Screens.Ranking.Statistics
axisFlow = new Container
{
RelativeSizeAxes = Axes.X,
- Height = axis_font_size,
+ Height = StatisticItem.FONT_SIZE,
}
},
},
@@ -174,7 +174,7 @@ namespace osu.Game.Screens.Ranking.Statistics
Anchor = Anchor.Centre,
Origin = Anchor.Centre,
Text = "0",
- Font = OsuFont.GetFont(size: axis_font_size, weight: FontWeight.SemiBold)
+ Font = OsuFont.GetFont(size: StatisticItem.FONT_SIZE, weight: FontWeight.SemiBold)
});
for (int i = 1; i <= axis_points; i++)
@@ -191,7 +191,7 @@ namespace osu.Game.Screens.Ranking.Statistics
X = -position / 2,
Alpha = alpha,
Text = axisValue.ToString("-0"),
- Font = OsuFont.GetFont(size: axis_font_size, weight: FontWeight.SemiBold)
+ Font = OsuFont.GetFont(size: StatisticItem.FONT_SIZE, weight: FontWeight.SemiBold)
});
axisFlow.Add(new OsuSpriteText
@@ -202,7 +202,7 @@ namespace osu.Game.Screens.Ranking.Statistics
X = position / 2,
Alpha = alpha,
Text = axisValue.ToString("+0"),
- Font = OsuFont.GetFont(size: axis_font_size, weight: FontWeight.SemiBold)
+ Font = OsuFont.GetFont(size: StatisticItem.FONT_SIZE, weight: FontWeight.SemiBold)
});
}
}
diff --git a/osu.Game/Screens/Ranking/Statistics/PerformanceBreakdownChart.cs b/osu.Game/Screens/Ranking/Statistics/PerformanceBreakdownChart.cs
index 6979f0ad94..ee0ce6183d 100644
--- a/osu.Game/Screens/Ranking/Statistics/PerformanceBreakdownChart.cs
+++ b/osu.Game/Screens/Ranking/Statistics/PerformanceBreakdownChart.cs
@@ -97,7 +97,7 @@ namespace osu.Game.Screens.Ranking.Statistics
{
Origin = Anchor.CentreLeft,
Anchor = Anchor.CentreLeft,
- Font = OsuFont.GetFont(weight: FontWeight.Regular, size: 14),
+ Font = OsuFont.GetFont(weight: FontWeight.Regular, size: StatisticItem.FONT_SIZE),
Text = "Achieved PP",
Colour = Color4Extensions.FromHex("#66FFCC")
},
@@ -105,7 +105,7 @@ namespace osu.Game.Screens.Ranking.Statistics
{
Origin = Anchor.CentreRight,
Anchor = Anchor.CentreRight,
- Font = OsuFont.GetFont(weight: FontWeight.SemiBold, size: 14),
+ Font = OsuFont.GetFont(weight: FontWeight.SemiBold, size: StatisticItem.FONT_SIZE),
Colour = Color4Extensions.FromHex("#66FFCC")
}
},
@@ -115,7 +115,7 @@ namespace osu.Game.Screens.Ranking.Statistics
{
Origin = Anchor.CentreLeft,
Anchor = Anchor.CentreLeft,
- Font = OsuFont.GetFont(weight: FontWeight.Regular, size: 14),
+ Font = OsuFont.GetFont(weight: FontWeight.Regular, size: StatisticItem.FONT_SIZE),
Text = "Maximum",
Colour = OsuColour.Gray(0.7f)
},
@@ -123,7 +123,7 @@ namespace osu.Game.Screens.Ranking.Statistics
{
Origin = Anchor.CentreLeft,
Anchor = Anchor.CentreLeft,
- Font = OsuFont.GetFont(weight: FontWeight.Regular, size: 14),
+ Font = OsuFont.GetFont(weight: FontWeight.Regular, size: StatisticItem.FONT_SIZE),
Colour = OsuColour.Gray(0.7f)
}
}
@@ -208,7 +208,7 @@ namespace osu.Game.Screens.Ranking.Statistics
{
Origin = Anchor.CentreLeft,
Anchor = Anchor.CentreLeft,
- Font = OsuFont.GetFont(weight: FontWeight.Regular, size: 14),
+ Font = OsuFont.GetFont(weight: FontWeight.Regular, size: StatisticItem.FONT_SIZE),
Text = attribute.DisplayName,
Colour = Colour4.White
},
@@ -233,7 +233,7 @@ namespace osu.Game.Screens.Ranking.Statistics
{
Origin = Anchor.CentreRight,
Anchor = Anchor.CentreRight,
- Font = OsuFont.GetFont(weight: FontWeight.SemiBold, size: 14),
+ Font = OsuFont.GetFont(weight: FontWeight.SemiBold, size: StatisticItem.FONT_SIZE),
Text = percentage.ToLocalisableString("0%"),
Colour = Colour4.White
}
diff --git a/osu.Game/Screens/Ranking/Statistics/SimpleStatisticItem.cs b/osu.Game/Screens/Ranking/Statistics/SimpleStatisticItem.cs
index 99f4e1e342..23ccc3d0b7 100644
--- a/osu.Game/Screens/Ranking/Statistics/SimpleStatisticItem.cs
+++ b/osu.Game/Screens/Ranking/Statistics/SimpleStatisticItem.cs
@@ -44,13 +44,13 @@ namespace osu.Game.Screens.Ranking.Statistics
Text = Name,
Anchor = Anchor.CentreLeft,
Origin = Anchor.CentreLeft,
- Font = OsuFont.GetFont(size: 14)
+ Font = OsuFont.GetFont(size: StatisticItem.FONT_SIZE)
},
value = new OsuSpriteText
{
Anchor = Anchor.CentreRight,
Origin = Anchor.CentreRight,
- Font = OsuFont.GetFont(size: 14, weight: FontWeight.Bold)
+ Font = OsuFont.GetFont(size: StatisticItem.FONT_SIZE, weight: FontWeight.Bold)
}
});
}
diff --git a/osu.Game/Screens/Ranking/Statistics/StatisticContainer.cs b/osu.Game/Screens/Ranking/Statistics/StatisticContainer.cs
index f3308e9931..c3cc443adb 100644
--- a/osu.Game/Screens/Ranking/Statistics/StatisticContainer.cs
+++ b/osu.Game/Screens/Ranking/Statistics/StatisticContainer.cs
@@ -70,7 +70,7 @@ namespace osu.Game.Screens.Ranking.Statistics
Anchor = Anchor.CentreLeft,
Origin = Anchor.CentreLeft,
Text = item.Name,
- Font = OsuFont.GetFont(size: 14, weight: FontWeight.SemiBold),
+ Font = OsuFont.GetFont(size: StatisticItem.FONT_SIZE, weight: FontWeight.SemiBold),
}
}
};
diff --git a/osu.Game/Screens/Ranking/Statistics/StatisticItem.cs b/osu.Game/Screens/Ranking/Statistics/StatisticItem.cs
index fd7a0ddb4f..cf95886905 100644
--- a/osu.Game/Screens/Ranking/Statistics/StatisticItem.cs
+++ b/osu.Game/Screens/Ranking/Statistics/StatisticItem.cs
@@ -12,6 +12,11 @@ namespace osu.Game.Screens.Ranking.Statistics
///
public class StatisticItem
{
+ ///
+ /// The recommended font size to use in statistic items to make sure they match others.
+ ///
+ public const float FONT_SIZE = 13;
+
///
/// The name of this item.
///
diff --git a/osu.Game/Screens/Ranking/Statistics/User/RankingChangeRow.cs b/osu.Game/Screens/Ranking/Statistics/User/RankingChangeRow.cs
index 534e1e58cd..a58e028baa 100644
--- a/osu.Game/Screens/Ranking/Statistics/User/RankingChangeRow.cs
+++ b/osu.Game/Screens/Ranking/Statistics/User/RankingChangeRow.cs
@@ -47,7 +47,7 @@ namespace osu.Game.Screens.Ranking.Statistics.User
new OsuSpriteText
{
Text = Label,
- Font = OsuFont.Default.With(size: 14)
+ Font = OsuFont.Default.With(size: StatisticItem.FONT_SIZE)
},
new FillFlowContainer
{
@@ -90,7 +90,7 @@ namespace osu.Game.Screens.Ranking.Statistics.User
{
Anchor = Anchor.CentreRight,
Origin = Anchor.CentreRight,
- Font = OsuFont.Default.With(size: 14, weight: FontWeight.Bold)
+ Font = OsuFont.Default.With(size: StatisticItem.FONT_SIZE, weight: FontWeight.Bold)
},
}
},