1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-15 10:22:56 +08:00
Gagah Pangeran Rosfatiputra 2021-05-03 09:35:59 +07:00
parent b497785416
commit 3e7df3bf02
No known key found for this signature in database
GPG Key ID: 25F6F17FD29031E2

View File

@ -12,5 +12,31 @@ namespace osu.Game.Graphics.Containers.Markdown
: base(headingBlock)
{
}
protected override float GetFontSizeByLevel(int level)
{
const float base_font_size = 14;
switch (level)
{
case 1:
return 30 / base_font_size;
case 2:
return 26 / base_font_size;
case 3:
return 20 / base_font_size;
case 4:
return 18 / base_font_size;
case 5:
return 16 / base_font_size;
default:
return 1;
}
}
}
}