1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-15 06:42:56 +08:00

add comment for base font size heading

This commit is contained in:
Gagah Pangeran Rosfatiputra 2021-05-06 15:00:12 +07:00
parent 0d3ca8dde1
commit b6560a616a
No known key found for this signature in database
GPG Key ID: 25F6F17FD29031E2

View File

@ -24,6 +24,9 @@ namespace osu.Game.Graphics.Containers.Markdown
protected override float GetFontSizeByLevel(int level)
{
// Reference for this font size
// https://github.com/ppy/osu-web/blob/376cac43a051b9c85ce95e2c446099be187b3e45/resources/assets/less/bem/osu-md.less#L9
// https://github.com/ppy/osu-web/blob/376cac43a051b9c85ce95e2c446099be187b3e45/resources/assets/less/variables.less#L161
const float base_font_size = 14;
switch (level)