I just found about variable ttf files, which themself aren't too new (introduced september 2016) and I've tried getting them into my hud.
example of what a variable ttf file is:
One ttf file with different fonts stored inside, see buttons top right
https://i.imgur.com/XxmcGpx.png
What I tried is adding them to the clientscheme the following way:
"12"
{
"font" "resource/fonts/KairosSans_Variable.ttf"
"name" "Kairos Sans Medium"
}
and
KairosSansMedium48
{
"1"
{
"name" "Kairos Sans Medium"
"tall" "48"
"additive" "0"
"antialias" "1"
"outline" "0"
}
}
Which obviously didn't work and only showed me the fallback font.
Is there any way of, either splitting the variable ttf into the indivual font files or use the variable ttf file but only use the font type I specified in the scheme file?