Wintermute Engine > Done

EXPAND_WIDTH = - X don't work

(1/2) > >>

Lebostein:
Hi,

my font should look like old Lucas Arts fonts. My chars has 2 pixel black outlines. For a beautiful look I need 2 pixel negative overlap:



The problem is, that a negative EXPAND_WIDTH don't work. When I output a group of words like "Hello, my name is Guybrush.", then after every space WM makes a linebreak or shows illegal characters and so on. With single words negative EXPAND_WIDTH works. Other problem is, that chars are not completely printed:



1. Is this a bug or not provided?
2. How can I control the space width?

Thanks, (sorry for my english)

Mnemonic:

--- Quote from: Lebostein on March 07, 2008, 11:01:11 AM ---Other problem is, that chars are not completely printed
--- End quote ---
That's what the negative expand_width does. It lowers character widths by two pixels. You'd need something like character offset, which however isn't supported at the moment. It should be rather easy to implement though.

Lebostein:

--- Quote from: Mnemonic on March 07, 2008, 04:39:10 PM ---That's what the negative expand_width does. It lowers character widths by two pixels.

--- End quote ---
OK, I understand. And why I see curious characters and linebreaks, when I set EXPAND_WIDTH negative? Try it. Open the wme_demo in projects and edit the font outline_disabled.font. What you see in preview:




--- Quote from: Mnemonic on March 07, 2008, 04:39:10 PM ---It should be rather easy to implement though.

--- End quote ---
That would be great!

OFFSET_H horizontal character offset (positiv or negativ)
OFFSET_V vertical line offset (positiv or negativ)
SPACE_WIDTH set the space width manualy

 ;)

Lebostein:
Can anybody confirm this problem with negative EXPAND_WIDTH?

What are the odds that you implemement a char offset?
(Next update, next big version number, in some years, never?)

Thank you!

Mnemonic:
Next update, probably. However I changed my mind, I'll just add an option to paint the entire character cell, independently on the defined width. This will allow you to achieve the effect you want.
Have you looked into TrueType fonts support too, though? They're much more flexible in some cases.

Navigation

[0] Message Index

[#] Next page

Go to full version