Please login or register.

Login with username, password and session length
Advanced search  

News:

Latest WME version: WME 1.9.1 (January 1st, 2010) - download

Author Topic: EXPAND_WIDTH = - X don't work  (Read 14102 times)

0 Members and 1 Guest are viewing this topic.

Lebostein

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 16
    • View Profile
EXPAND_WIDTH = - X don't work
« 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:



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)
« Last Edit: March 07, 2008, 01:01:06 PM by Lebostein »
Logged

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: EXPAND_WIDTH = - X don't work
« Reply #1 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.
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

Lebostein

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 16
    • View Profile
Re: EXPAND_WIDTH = - X don't work
« Reply #2 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:



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

 ;)
« Last Edit: March 07, 2008, 05:14:38 PM by Lebostein »
Logged

Lebostein

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 16
    • View Profile
Re: EXPAND_WIDTH = - X don't work
« Reply #3 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!
« Last Edit: March 14, 2008, 02:09:23 PM by Lebostein »
Logged

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: EXPAND_WIDTH = - X don't work
« Reply #4 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.
« Last Edit: March 16, 2008, 10:04:45 AM by Mnemonic »
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

Lebostein

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 16
    • View Profile
Re: EXPAND_WIDTH = - X don't work
« Reply #5 on: March 19, 2008, 11:04:52 AM »

Thanks! Very fast implementation! It works excellent!

Thank you.  ::thumbup
Logged
 

Page created in 0.029 seconds with 20 queries.