Please login or register.

Login with username, password and session length
Advanced search  

News:

Forum rules - please read before posting, it can save you a lot of time.

Author Topic: Font colours and letter spacing  (Read 2448 times)

0 Members and 1 Guest are viewing this topic.

TheDerman

  • Regular poster
  • ***
  • Karma: 0
  • Offline Offline
  • Posts: 225
    • View Profile
Font colours and letter spacing
« on: January 15, 2006, 10:50:16 PM »

Hello,

I'm using bitmap font builder to make some fonts into TGA files - then I import the TGA into WME and create the .font file - everything fine so far...

The first problem is that some fonts don't display with even spacing between letters - longer letters like M and W are closer to the next letter than A for example, which resuilts in big spaces in the middle of words.

The second problem is that if I save a TGA with an alpha channel in Font Builder the only colours that come through in WME are black and white. If I use any other colour in font builder, WME just displays it as gray.

Any ideas?

Thanks.
Logged

metamorphium

  • Global Moderator
  • Addicted to WME forum
  • *
  • Karma: 12
  • Offline Offline
  • Gender: Male
  • Posts: 1511
  • Vampires!
    • View Profile
    • CBE  software s.r.o.
Re: Font colours and letter spacing
« Reply #1 on: January 15, 2006, 11:22:56 PM »

Regarding the second issue, there is nothing more easy than opening the result image for example in GIMP and
then choose replace color to whatever color you like by using simple replace color function. ;)

The problem would be in font builder because I use colored fonts normally.

Logged
J.U.L.I.A. Enhanced Edition, Vampires!, J.U.L.I.A., J.U.L.I.A. Untold, Ghost in the Sheet

Columbo

  • Supporter
  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 33
  • Just one more thing...
    • View Profile
Re: Font colours and letter spacing
« Reply #2 on: January 16, 2006, 12:23:46 AM »

Regarding the width, the only thing that directly effects the width is in the .font file. The line :

AUTO_WIDTH = TRUE

Should solve this problem. If it does not, there may be an issue with the way the TGA file is saved.

Personally however I always use .BMP files with a magenta background, and don't run into either the width or the colourisation problems you seem to be experiencing.

Regarding the bulk colour change, I would agree with metamorphium's idea of opening in GIMP (or Paint Shop Pro, or Photoshop or whatever it is you use) and doing a colour-to-colour change. There's no quicker way of doing it to my knowledge.

Good luck!
Logged

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5671
    • View Profile
    • Dead:Code Site
Re: Font colours and letter spacing
« Reply #3 on: January 16, 2006, 08:59:48 AM »

Also make sure some of the letters don't "overflow" to the neighbouring cell. When antialiasing is enabled, Bitmap Font Builder sometimes has this problem (a few pixels of the antialiased edge extend to the other cell, which causes WME incorrectly reading the width of a character).
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

TheDerman

  • Regular poster
  • ***
  • Karma: 0
  • Offline Offline
  • Posts: 225
    • View Profile
Re: Font colours and letter spacing
« Reply #4 on: January 16, 2006, 10:19:01 AM »

I don't know about replacing any colours - opening the file in Photosop reveals a blank image - bitmap font builder is not even saving any colours at all it seems. Maybe I'll try and make my own images.

And none of the letter are overflowing as they're not big enough - plenty of room.

Are there any plans in the future to make handling fonts easier in WME? I mean like in Photosop I select my font, enable anti-aliasing, and it gives a nice font with smooth edges, regardless of the font size. The addition of ttf fonts in WME is nice but don't I need font smoothing enabled in Windows to make them smooth? What about people without Windows XP? What about smaller fonts that don't get smoothed? Is there no way to have WME anti-alias the ttf fonts itself, and then embed them somehow so I don't have to include the actual font file outside my data file? All that would make life a lot easier.  ;D
Logged

odnorf

  • w00t?
  • Global Moderator
  • Addicted to WME forum
  • *
  • Karma: 7
  • Offline Offline
  • Gender: Male
  • Posts: 1454
  • Lamp dog!
    • View Profile
Re: Font colours and letter spacing
« Reply #5 on: January 16, 2006, 11:05:14 AM »

I don't know about replacing any colours - opening the file in Photosop reveals a blank image - bitmap font builder is not even saving any colours at all it seems. Maybe I'll try and make my own images.

And none of the letter are overflowing as they're not big enough - plenty of room.

It's not about ovelapping each other. The problem is that sometimes antialiased letters are occupying some of the free space in the grid that belongs to some other letter. If you can upload it I can check what is wrong with it.
« Last Edit: January 16, 2006, 11:14:13 AM by odnorf »
Logged
fl*p

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5671
    • View Profile
    • Dead:Code Site
Re: Font colours and letter spacing
« Reply #6 on: January 17, 2006, 04:27:08 PM »

I believe the font smoothing is supported since Win98.
The things you mention would require dropping using Windows functions for text rendering and using some 3rd party library (i.e. FreeType, I don't know of any other). That would mean completely rewriting WME's font functions and that's not something I'm going to do anytime soon. Sorry.
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

TheDerman

  • Regular poster
  • ***
  • Karma: 0
  • Offline Offline
  • Posts: 225
    • View Profile
Re: Font colours and letter spacing
« Reply #7 on: January 17, 2006, 06:58:21 PM »

That's cool - I'm not complaining - just enquiring. I'm more than happy with WME as is.  8)
Logged
 

Page created in 0.178 seconds with 23 queries.