Text message spacing

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
User avatar
Ichor
Posts: 1784
Joined: Wed Jul 23, 2003 9:22 pm

Text message spacing

Post by Ichor »

Is there a way to increase the amount of space used for when you use 'space'? Right now, each space seems to be 5 pixels wide, but the fixed width font I'm using is 9 pixels, which can cause some issues with aligning text in multi-line messages. Is there a way to increase that to 9 pixels for each space (or maybe decrease it to 3)?

For example, I want the message to print out exactly like the script text (also fixed width). Instead, it looks like this:

Image
User avatar
AFADoomer
Posts: 1344
Joined: Tue Jul 15, 2003 4:18 pm
Contact:

Re: Text message spacing

Post by AFADoomer »

Assuming you're defining your own font in [wiki]FONTDEFS[/wiki], you want "SPACEWIDTH 9" in the font definition.
User avatar
Ichor
Posts: 1784
Joined: Wed Jul 23, 2003 9:22 pm

Re: Text message spacing

Post by Ichor »

Oh nice. Now I don't have to use dollar signs replaced with blank squares for each space anymore.

Also, what if you just want to use the same font (FONTA, FONTAY), but just want to change one or two things with it. Do I have to define a brand new font for it?
User avatar
AFADoomer
Posts: 1344
Joined: Tue Jul 15, 2003 4:18 pm
Contact:

Re: Text message spacing

Post by AFADoomer »

The definition will have to be for a new font, yes... You may be able to re-use the same font character images (and not have to include duplicate letters), though, depending on what you're changing.
User avatar
Ichor
Posts: 1784
Joined: Wed Jul 23, 2003 9:22 pm

Re: Text message spacing

Post by Ichor »

Alright, except now fontdefs is being a tremendous headache. Even just trying to define this font is going nowhere right now.
Locked

Return to “Editing (Archive)”