Doom Font generator problem

Archive of the old editing forum
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
Locked
ScoopJohn
Posts: 11
Joined: Tue Feb 23, 2016 1:07 pm

Doom Font generator problem

Post by ScoopJohn »

Hi guys, i'm using Spidey's ZDoom Font Generator/DoomCrap and i made a font in paint.net.
Image
However, when i go to "create lump from image" and do the settings fine, the file doesn't come out, how come?
ScoopJohn
Posts: 11
Joined: Tue Feb 23, 2016 1:07 pm

Re: Doom Font generator problem

Post by ScoopJohn »

bump
User avatar
wildweasel
Posts: 21706
Joined: Tue Jul 15, 2003 7:33 pm
Preferred Pronouns: He/Him
Operating System Version (Optional): A lot of them
Graphics Processor: Not Listed
Contact:

Re: Doom Font generator problem

Post by wildweasel »

ScoopJohn wrote:bump
Please don't do this. This thread has existed for only one day. If I might quote the rules:
General guidelines wrote:Patience is a virtue! If nobody's replied to your project thread within half an hour, don't just make another post and complain about how slow we are. Generally you'll want to wait a week (or until your thread drops off the first page) to bump it, if it's something important. Not everybody lives on the forums, and ZDoom isn't nearly as fast-paced as other message boards - it could take upwards of a couple days before anybody notices your thread, so count on waiting a while.
User avatar
Kappes Buur
 
 
Posts: 4166
Joined: Thu Jul 17, 2003 12:19 am
Graphics Processor: nVidia (Legacy GZDoom)
Location: British Columbia, Canada
Contact:

Re: Doom Font generator problem

Post by Kappes Buur »

I copied your font image, made sure it was in PCX format and ran it through Spidey's ZDoom Font Generator (version doomfontgen-0.2.7)
as Tools > Create font lump from image and got this with GZDoom set to 800 x 600
Spoiler:
Too small.
Then I resized your font image to 250% in XnView and ran it through the Font Generator again
Spoiler:
to create the lump and got this
Spoiler:
Your font on top, the lower font for comparison.
Attachments
scoop2.wad
(72.57 KiB) Downloaded 81 times
ScoopJohn
Posts: 11
Joined: Tue Feb 23, 2016 1:07 pm

Re: Doom Font generator problem

Post by ScoopJohn »

I didn't notice there was cloggy looking details on my font. >_<
User avatar
YukiHerz
Global Moderator
Posts: 1503
Joined: Mon Dec 02, 2013 6:01 pm
Graphics Processor: Intel (Modern GZDoom)
Location: Where corruption is redefined daily.

Re: Doom Font generator problem

Post by YukiHerz »

That probably came from the 250% upscaling Kappes Buur did, if you look at the first screenshot with the original size you wont see the artifacts, follow his steps but resize only to a solid 200% or 300% to keep a correct pixel ratio and the artifacts shouldn't happen.
ScoopJohn
Posts: 11
Joined: Tue Feb 23, 2016 1:07 pm

Re: Doom Font generator problem

Post by ScoopJohn »

HazeBandicoot wrote:That probably came from the 250% upscaling Kappes Buur did, if you look at the first screenshot with the original size you wont see the artifacts, follow his steps but resize only to a solid 200% or 300% to keep a correct pixel ratio and the artifacts shouldn't happen.
I retried, this time i exported it to PCX in paint.net via a PCX plugin, i still get the error >_<
User avatar
Kappes Buur
 
 
Posts: 4166
Joined: Thu Jul 17, 2003 12:19 am
Graphics Processor: nVidia (Legacy GZDoom)
Location: British Columbia, Canada
Contact:

Re: Doom Font generator problem

Post by Kappes Buur »

When you enlarge the view of your original image in, for example XnView, then you will see artifacts surrounding each letter.
Spoiler:
Of course then, by increasing the image size by whatever percentage, these artifacts will be more pronounced.
User avatar
MaxED
Posts: 2246
Joined: Tue Feb 28, 2012 12:55 pm

Re: Doom Font generator problem

Post by MaxED »

That's only because you've resized it incorrectly (you'll want to use clean scaling (200%, 300% etc.) and don't use any kind of interpolation)...
resized.png
resized.png (1.36 KiB) Viewed 2232 times
User avatar
Kappes Buur
 
 
Posts: 4166
Joined: Thu Jul 17, 2003 12:19 am
Graphics Processor: nVidia (Legacy GZDoom)
Location: British Columbia, Canada
Contact:

Re: Doom Font generator problem

Post by Kappes Buur »

@MaxED
  • What program did you use which let's you do such a nice job at clean scaling?
Anyways, I tried my luck with Gimp 2.8 and made the font image really big.
Gimp did a nice job in scaling the image size without noticable artifacts.
Spoiler:
I should have used it right from the start
Spoiler:
User avatar
MaxED
Posts: 2246
Joined: Tue Feb 28, 2012 12:55 pm

Re: Doom Font generator problem

Post by MaxED »

I guess any relatively modern image viewer will do, but I've used IrfanView...
ScoopJohn
Posts: 11
Joined: Tue Feb 23, 2016 1:07 pm

Re: Doom Font generator problem

Post by ScoopJohn »

Well i just don't know how i can really do a lump from a image, i used the PCX format for the input file and it doesn't work.
I also tried to run the font generator in admin mode but it can't let me start.
User avatar
Jimmy
 
 
Posts: 4725
Joined: Mon Apr 10, 2006 1:49 pm
Preferred Pronouns: He/Him
Contact:

Re: Doom Font generator problem

Post by Jimmy »

You need [wiki]ImageTool[/wiki]. (Download is on that page.)

CONFONTs need to be 256-color grayscale, or they won't translate properly in-game. I downloaded your font (saved it as "scoopfont"), saved it as a PCX and set it to grayscale with Paint Shop Pro, and ran it through ImageTool using this command line. It worked.

Code: Select all

imagetool.exe confont scoopfont.pcx scoopfont.lmp
Image

I put the outputted scoopfont.lmp into a WAD with SLADE3 and renamed it to "CONFONT". It showed in-game.

Image

Download WAD

There are unfortunately a few artifacts present (though not nearly as many as Kappes Burr's method of resizing created, which looking at made the pixelphile in me cringe into a singularity). These artifacts should be easy to clean up, though, if you have a decent color-replacement tool (Paint Shop Pro does), though I can clean this up in a jiffy. EDIT: Just noticed this is caused by the characters being one pixel too far to the right, the shadows of left-hand characters are showing up. A super-easy fix, though.

I also recommend that you use the standard graphics present at the top of the original CONFONT (in zdoom.pk3), so the horizontal bars, option cursor and sliders still display (the latter two are basically vital for options menus to work properly). I can also fix that for you if you want.

EDIT: I fixed it up for you!

Image

The above image is grayscale, except full black (index 0 - or 0,0,0 in RGB) is cyan, just for visibility purposes. I edited the color palette with PSP.

It works well in-game.

Image

Download fixed WAD

My fixes include:
  • Adding standard CONFONT graphics to the top of the image so console and options menu all work as intended.
  • Shifting all characters one pixel to the left, and drawing new shadows for the very right-hand characters. Shadows show properly now.
  • Altering the lower-case M and W so they don't just appear as solid squares.
  • Altering the upper- and lower-case Gs to differentiate them from 6s.
Hope this helps you, ScoopJohn!
User avatar
Kappes Buur
 
 
Posts: 4166
Joined: Thu Jul 17, 2003 12:19 am
Graphics Processor: nVidia (Legacy GZDoom)
Location: British Columbia, Canada
Contact:

Re: Doom Font generator problem

Post by Kappes Buur »

ScoopJohn wrote:Well i just don't know how i can really do a lump from a image, i used the PCX format for the input file and it doesn't work.
I also tried to run the font generator in admin mode but it can't let me start.
At what point does the process fall apart for you?
Do you get some sort of error message?
User avatar
AFADoomer
Posts: 1341
Joined: Tue Jul 15, 2003 4:18 pm
Contact:

Re: Doom Font generator problem

Post by AFADoomer »

If you're running Windows 8 or 10, it's probably permissions. I run the font generator from an elevated command prompt with no problems, but get the same issue as described when running in user context.

I haven't bothered figuring out what permissions are wrong because I don't use the tool that often.
Locked

Return to “Editing (Archive)”