Forcing small fonts to use uppercase?

Ask about editing graphics, sounds, models, music, etc here!
Shaders (GLSL) and SNDINFO questions also go here!

Moderator: GZDoom Developers

Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.

Forcing small fonts to use uppercase?

Postby Tango » Sat Sep 01, 2018 10:09 pm

Through a combination of dissecting some fonts Jimmy has posted and looking through font discussions/posts from some really helpful members on the boards, I've managed to get my own custom small font working. I've noticed though that for any characters not included in my small font, they appear as spaces in game. Examples include {, }, and |, which are not included in my font file. Looking at some other small fonts (such as the Gargoyle small font posted by Jimmy) though, I see that you can optionally include lowercase characters for your font, which come after all of your uppercase characters. And after all the lowercase characters appear to be the slots for the last few characters such as {, }, |, etc. So I have two questions then:

1) Is it possible in-game to force a font to only use the uppercase characters, even if the lowercase versions are present in the font?
2) Is it possible to add the extra characters at the end of a font ( {, }, and | ) without providing all of the lowercase characters?

Any help is much appreciated!
User avatar
Tango
heh!
 
Joined: 31 Jul 2006

Re: Forcing small fonts to use uppercase?

Postby Blue Shadow » Sun Sep 02, 2018 9:06 am

How about editing the font to use the uppercase characters for the lowercase ones, as well? This way no matter how a text is written, it'll always display in uppercase. It'll also allow you to add those extra characters.
User avatar
Blue Shadow
 
 
 
Joined: 14 Nov 2010
Operating System: Windows 10/8.1/8 64-bit
Graphics Processor: ATI/AMD (Modern GZDoom)

Re: Forcing small fonts to use uppercase?

Postby Tango » Sat Sep 08, 2018 2:23 pm

Ahh that's a good idea! Thanks for being helpful as always Blue Shadow :D
User avatar
Tango
heh!
 
Joined: 31 Jul 2006

Re: Forcing small fonts to use uppercase?

Postby Blue Shadow » Sat Sep 08, 2018 8:50 pm

No problem.
User avatar
Blue Shadow
 
 
 
Joined: 14 Nov 2010
Operating System: Windows 10/8.1/8 64-bit
Graphics Processor: ATI/AMD (Modern GZDoom)


Return to Assets (and other stuff)

Who is online

Users browsing this forum: No registered users and 5 guests