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
1 changed files with 26 additions and 0 deletions

View File

@ -12,5 +12,31 @@ public OsuMarkdownHeading(HeadingBlock headingBlock)
: 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;
}
}
}
}