Upvote Upvoted 1 Downvote Downvoted
Variable TTF in hud making?
posted in Customization
1
#1
0 Frags +

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?

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
[img]https://i.imgur.com/XxmcGpx.png[/img]

What I tried is adding them to the clientscheme the following way:
[code]"12"
{
"font" "resource/fonts/KairosSans_Variable.ttf"
"name" "Kairos Sans Medium"
}[/code]
and
[code]KairosSansMedium48
{
"1"
{
"name" "Kairos Sans Medium"
"tall" "48"
"additive" "0"
"antialias" "1"
"outline" "0"
}
}[/code]

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?
Please sign in through STEAM to post a comment.