Line spacing for SCI/WNF fonts?

Started by Windenwart, Tue 20/03/2007 10:43:29

Previous topic - Next topic

Windenwart

Hi,

I have created a bitmap font with the "Radiant FontEdit" by Pieter Simoons. The global height of this font is 10 pixels. AGS seems to ignore this height after the import. The line spacing of two lines is unchanged. I can set the global height to 10, 20, 30 or 5, the line spacing in AGS is constant.

How I can set the line spacing in AGS?

Ashen

AFAIK, you can't. There's the 'Pixel gap between options' setting for Dialogs, but it doesn't apply to normal text or speech.

What do you mean by the 'global height' of the font? If the actual characters are 5, 10, or 30 pixels high, it won't effect the line spacing; however if you have a number of pixels empty at the bottom of the characters, it should appear as extra spacing in AGS. If you haven't tried that - it's a little sloppy, maybe, but it should work.
I know what you're thinking ... Don't think that.

Windenwart

Here is a screenshot of the same font in "Radiant FontEdit" and "SCI Studio 3":

http://home.arcor.de/tomysoft/temp/sci_fonts.jpg

In booth cases I can set the "global" height of the font. When I set all chars height to '10' and the global height to '10' then the line spacing should be '0'. When I set all chars height to '10' and the global height to '15' then the line spacing should be '5'....

Ashen

#3
I can't say for SCI studio, but in FontEdit, changing that value doesn't actually affect the characters. Possibly, it's a setting that AGS just doesn't use (only the character height is counted). The long way (which I meant, and will work), is to add those extra pixels to each character.
I know what you're thinking ... Don't think that.

Windenwart

#4
The problem is the "automatic outline" function in AGS. When I use this font without outline, then the line spacing is correct. When I use "automatic outline", then the line spacing is +2 pixels:

http://home.arcor.de/tomysoft/temp/ags_fonts.gif

Why AGS has no options to set the line spaching and the char spacing? This are very fundamental functions to work with fonts! Where can I find the AGS "wishlist"?

Ashen

What about if you use a manual outline font? I think, with auto-outline, the font IS two pixels taller so the spacing adjusts to compensate. Manual outlines aren't automatically adjusted, for width (you have to add extra spacing to the 'inside' font, to keep it looking right), so maybe the line spacing isn't changed either?
Honestly, though, fonts aren't something I have a great deal of experience with, so I could be very wrong.

Quote
Where can I find the AGS "wishlist"?
There's the Tracker, which lists current bugs and suggestions, or you can make a suggestion in the Technical Forum (search the tracker and forum first to make sure no-one's beaten you to it).
I know what you're thinking ... Don't think that.

Windenwart

#6
Why "automatic outline" modifys the line spacing but not the char spacing? In my eyes it's very inconsistent. The "automatic outline" should NOT modify the line spacing and NOT modify the char spacing.

When I use a manual outline font, then I have a problem with the outline overlapping of two chars. Its impossible with manual outline fonts. When I could set "char spacing = -1" then I would use manual outline fonts....

The simplest way to solve all these problems is a (very easy to implement) option to set the line and the char spacing of a font.

SMF spam blocked by CleanTalk