Wintermute Engine Forum

Wintermute Engine => Feature requests, suggestions => Done => Topic started by: Lebostein on March 07, 2008, 11:01:11 AM

Title: EXPAND_WIDTH = - X don't work
Post by: Lebostein on March 07, 2008, 11:01:11 AM
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:

(http://home.arcor.de/tomysoft/temp/wm_font1.gif)

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:

(http://home.arcor.de/tomysoft/temp/wm_font2.gif)

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

Thanks, (sorry for my english)
Title: Re: EXPAND_WIDTH = - X don't work
Post by: Mnemonic on March 07, 2008, 04:39:10 PM
Other problem is, that chars are not completely printed
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.
Title: Re: EXPAND_WIDTH = - X don't work
Post by: Lebostein on March 07, 2008, 04:58:47 PM
That's what the negative expand_width does. It lowers character widths by two pixels.
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:

(http://home.arcor.de/tomysoft/temp/wm_font3.gif)

It should be rather easy to implement though.
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

 ;)
Title: Re: EXPAND_WIDTH = - X don't work
Post by: Lebostein on March 14, 2008, 02:06:01 PM
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!
Title: Re: EXPAND_WIDTH = - X don't work
Post by: Mnemonic on March 15, 2008, 10:23:21 AM
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.
Title: Re: EXPAND_WIDTH = - X don't work
Post by: Lebostein on March 19, 2008, 11:04:52 AM
Thanks! Very fast implementation! It works excellent!

Thank you.  ::thumbup