Upvote Upvoted 1 Downvote Downvoted
Replacing font in HUD
posted in Q/A Help
1
#1
0 Frags +

I'm trying to replace the font in Ell's Hud with the one that Garm3n's quake hud uses, HANDGOTN, but whenever I replace it in the clientscheme, it doesn't load, it's just some weird different font.

This is what the clientscheme says originally:

"7"
    {
      "font" "resource/SourceCodePro-Semibold.ttf"
      "name" "Source Code Pro Semibold"
    }
    "8"
    {
      "font" "resource/EllsCrosshair.ttf"
      "name" "Ell's Crosshair"
    }
    "9"
    {
      "font" "resource/EllsRectangles.ttf"
      "name" "Ell's Rectangles"      
    }

and this is what I changed

"7"
    {
      "font" "resource/HANDGOTN.ttf"
      "name" "Source Code Pro Semibold"
    }
    "8"
    {
      "font" "resource/EllsCrosshair.ttf"
      "name" "Ell's Crosshair"
    }
    "9"
    {
      "font" "resource/EllsRectangles.ttf"
      "name" "Ell's Rectangles"      
    }

Any help?

I'm trying to replace the font in [url=https://code.google.com/p/ellshud/]Ell's Hud[/url] with the one that Garm3n's quake hud uses, HANDGOTN, but whenever I replace it in the clientscheme, it doesn't load, it's just some weird different font.

This is what the clientscheme says originally:

[code]
"7"
{
"font" "resource/SourceCodePro-Semibold.ttf"
"name" "Source Code Pro Semibold"
}
"8"
{
"font" "resource/EllsCrosshair.ttf"
"name" "Ell's Crosshair"
}
"9"
{
"font" "resource/EllsRectangles.ttf"
"name" "Ell's Rectangles"
}
[/code]

and this is what I changed

[code]
"7"
{
"font" "resource/HANDGOTN.ttf"
"name" "Source Code Pro Semibold"
}
"8"
{
"font" "resource/EllsCrosshair.ttf"
"name" "Ell's Crosshair"
}
"9"
{
"font" "resource/EllsRectangles.ttf"
"name" "Ell's Rectangles"
}
[/code]

Any help?
2
#2
0 Frags +

Make sure you've installed the new font. That's all I can think of at the moment.

Make sure you've installed the new font. That's all I can think of at the moment.
3
#3
0 Frags +

I did install it to make sure, didn't work.

This is what it looks like right now, for reference

http://i.imgur.com/Tstcthc.jpg

I did install it to make sure, didn't work.

This is what it looks like right now, for reference

[img]http://i.imgur.com/Tstcthc.jpg[/img]
4
#4
0 Frags +

You need to change the value of the name field from "Source Code Pro Semibold" to the name of the of the replacement font font.

Edit: Install the font on your system and choose the name that is displayed in a menu of a program that uses it. I've noticed that Windows font showing utility won't allways show the correct one.

You need to change the value of the name field from "Source Code Pro Semibold" to the name of the of the replacement font font.

Edit: Install the font on your system and choose the name that is displayed in a menu of a program that uses it. I've noticed that Windows font showing utility won't allways show the correct one.
5
#5
0 Frags +

I've never installed a font this way, I would try the more common method of installing it as an entirely new font. In other words define an entirely new font in a different location. This will help you determine where the problem with installing is. I'm too lazy to write out comprehensive instructions so more info can be found here: https://dl.dropboxusercontent.com/u/19762650/importingxhairstf2.jpg (this is about crosshairs so disregard most of the hudlayout.res stuff and focus on installing the font). once it's installed, just replace all instances of your old font name with your new one in hudplayerhealth.res and try it out. if it works your health should be the new font and your ammo won't be. then you can put that new font in for your ammo and stuff as well.

I've never installed a font this way, I would try the more common method of installing it as an entirely new font. In other words define an entirely new font in a different location. This will help you determine where the problem with installing is. I'm too lazy to write out comprehensive instructions so more info can be found here: https://dl.dropboxusercontent.com/u/19762650/importingxhairstf2.jpg (this is about crosshairs so disregard most of the hudlayout.res stuff and focus on installing the font). once it's installed, just replace all instances of your old font name with your new one in hudplayerhealth.res and try it out. if it works your health should be the new font and your ammo won't be. then you can put that new font in for your ammo and stuff as well.
6
#6
0 Frags +

#4 tried it, didn't work

Trying #5

edit #5 didn't work either

#4 tried it, didn't work

Trying #5

edit #5 didn't work either
7
#7
0 Frags +
SBARROHOTTOPIC#4 tried it, didn't work

Trying #5

Apart from editing the code you posted you also have to replace all the other occurences of "Source Code Pro Semibold" in ClientScheme.res. Could this be the problem?

Edit: This:

"lType1"
{
"1"
{
"name" "Source Code Pro Semibold"
"tall" "12"
"antialias" "1"
"additive" "0"
"outline" "0"
}
}
"lType1-O"
{
"1"
{
"name" "Source Code Pro Semibold"
"tall" "12"
"antialias" "0"
"additive" "0"
"outline" "1"
}
}
"lType2"
{
"1"
{
"name" "Source Code Pro Semibold"
"tall" "24"
"antialias" "1"
"additive" "0"
"outline" "0"
}
}
"lType2-O"
{
"1"
{
"name" "Source Code Pro Semibold"
"tall" "24"
"antialias" "0"
"additive" "0"
"outline" "1"
}
}
"lType3"
{
"1"
{
"name" "Source Code Pro Semibold"
"tall" "48"
"antialias" "1"
"additive" "0"
"outline" "0"
}
}
"lType3-O"
{
"1"
{
"name" "Source Code Pro Semibold"
"tall" "48"
"antialias" "0"
"additive" "0"
"outline" "1"
}
}

...

"Default"
{
"1"
{
"name" "Source Code Pro Semibold"
"tall" "12"
"antialias" "0"
"additive" "0"
"outline" "1"
}
}

Default is found a few hundred lines after the rest.

[quote=SBARROHOTTOPIC]#4 tried it, didn't work

Trying #5[/quote]
Apart from editing the code you posted you also have to replace all the other occurences of "Source Code Pro Semibold" in ClientScheme.res. Could this be the problem?

Edit: This:

"lType1"
{
"1"
{
"name" "Source Code Pro Semibold"
"tall" "12"
"antialias" "1"
"additive" "0"
"outline" "0"
}
}
"lType1-O"
{
"1"
{
"name" "Source Code Pro Semibold"
"tall" "12"
"antialias" "0"
"additive" "0"
"outline" "1"
}
}
"lType2"
{
"1"
{
"name" "Source Code Pro Semibold"
"tall" "24"
"antialias" "1"
"additive" "0"
"outline" "0"
}
}
"lType2-O"
{
"1"
{
"name" "Source Code Pro Semibold"
"tall" "24"
"antialias" "0"
"additive" "0"
"outline" "1"
}
}
"lType3"
{
"1"
{
"name" "Source Code Pro Semibold"
"tall" "48"
"antialias" "1"
"additive" "0"
"outline" "0"
}
}
"lType3-O"
{
"1"
{
"name" "Source Code Pro Semibold"
"tall" "48"
"antialias" "0"
"additive" "0"
"outline" "1"
}
}

...

"Default"
{
"1"
{
"name" "Source Code Pro Semibold"
"tall" "12"
"antialias" "0"
"additive" "0"
"outline" "1"
}
}

Default is found a few hundred lines after the rest.
8
#8
0 Frags +

I did replace everything, yes.

I did replace everything, yes.
9
#9
1 Frags +

Ah, I got it, I made a silly mistake. I replaced every 'Source Code Semibold' with 'HANDGOTN' instead of the font's actual name, 'HandelGothic BT'

Thanks for the help, everyone.

Ah, I got it, I made a silly mistake. I replaced every 'Source Code Semibold' with 'HANDGOTN' instead of the font's actual name, 'HandelGothic BT'

Thanks for the help, everyone.
10
#10
0 Frags +
SBARROHOTTOPICI did replace everything, yes.

Where have you put the replacement font? Have you packed your files in vpk format? What is the name of the new font?

[quote=SBARROHOTTOPIC]I did replace everything, yes.[/quote]
Where have you put the replacement font? Have you packed your files in vpk format? What is the name of the new font?
11
#11
0 Frags +

Try this file and put HANDGOTN.TTF in custom/ellshud/resource.

Try [url=http://pastebin.com/raw.php?i=6aEdhegi]this file[/url] and put HANDGOTN.TTF in custom/ellshud/resource.
12
#12
0 Frags +

Ell, I fixed it, haha. That's what I was saying in #9, sorry if I wasn't clear.

Ell, I fixed it, haha. That's what I was saying in #9, sorry if I wasn't clear.
13
#13
0 Frags +
SBARROHOTTOPICEll, I fixed it, haha. That's what I was saying in #9, sorry if I wasn't clear.

Sweet. This is what it looks like btw:

http://img41.imageshack.us/img41/5854/ellshudhandelgothicbt.png

The spacing of HandelGothic BT is a bit different so you might want to move the clip and reserve ammo one unit to left and right respectively. All the other texts should fall into place by themselves.

[quote=SBARROHOTTOPIC]Ell, I fixed it, haha. That's what I was saying in #9, sorry if I wasn't clear.[/quote] Sweet. This is what it looks like btw:
[img]http://img41.imageshack.us/img41/5854/ellshudhandelgothicbt.png[/img]
The spacing of HandelGothic BT is a bit different so you might want to move the clip and reserve ammo one unit to left and right respectively. All the other texts should fall into place by themselves.
Please sign in through STEAM to post a comment.