Page 1 of 1

Font sugestions for gzdoom

Posted: Mon Jul 17, 2006 21:37
by Cyrez
while working on my project i realized that these 3 sugestions would be very usfull. however i'm no programer so if this is asking to much feel free to tell me where to go 8)

1 the ability to read and use true type fonts in gzdoom
2 A) the ability to specify a series of graphics as a font set maybe in a new lump 2 B) add a scale command like is used in hitex lump.
3 hexodecimal translations would be great (EG #0066FF)

just my opinions :wink:

Posted: Mon Jul 17, 2006 22:50
by Graf Zahl
1) no
2) see FONTDEFS
3) not with the current font system.

Re: Font sugestions for gzdoom

Posted: Sun Aug 13, 2006 4:53
by Sir_Alien
Cyrez wrote:B) add a scale command like is used in hitex lump.
Graf Zahl wrote:2) see FONTDEFS
There's a scale command in FONTDEFS?

[EDIT]Sorry, please excuse the bump; I wanted to double check this before posting an erroneous Feature Request! ;)

Posted: Sun Aug 13, 2006 8:35
by Graf Zahl
No. You additionally need hires replacements for that. The font drawing code is not capable of recognizing scaled patches by itself. But be aware that font scaling only makes sense on high resolutions and you shouldn't make projects that depend on that.

Posted: Sun Aug 13, 2006 13:49
by Sir_Alien
I'd actually already tried something like that without success. I seem to remember getting something like this to work before although I'm not sure.

I assume that the method I'm using in the attached wad is what you're suggesting. The test map will print a HudMessage upon opening using "ZDFDFONT", defined in FONTDEFS, but the original graphics are not replaced by the hi-res ones as HIRESTEX specifies.

Am I doing something wrong? I can't see it, maybe someone else can see what I'm missing... (Using 1.0.18 ).

Posted: Tue Aug 22, 2006 23:02
by Sir_Alien
*BUMP*

Any ideas?

Posted: Tue Aug 22, 2006 23:09
by Graf Zahl
Hopefully the problem will sort itself out when I am done with adding hires replacement support to ZDoom. All the code that is causing problems here no longer exists in my development build.

Posted: Wed Aug 23, 2006 1:01
by Sir_Alien
Ahh okay, thanks.

So I do at least have the right idea?

Posted: Wed Aug 23, 2006 8:34
by Graf Zahl
I have been working on rewriting parts of the texture manager for the last week. You may have noticed that I committed several updates regarding this to the ZDoom repository. That were the parts that are compatible with software rendering. There were 3 reasons I did this:

1. Randy's addition of JPEG textures made parts of my old code highly problematic.
2. DevIL liked to crash for no reason on occasion and I had to do some insane checks to prevent it.
3. Hires replacements couldn't be inherited. But fonts need that.

And of course: I don't need to distribute DevIL anymore in future versions.