outlined fonts

Started by Monsieur OUXX, Tue 22/10/2013 15:48:41

Previous topic - Next topic

Monsieur OUXX

There's something I don't understand about outlined fonts:

I have that sprites table here


It has a black outline. But in AGS, the fonts are stored in only two colors: black and white. Black is for the transparent background, and white is where the actual font color will be applied.
But then, how do I create my font to have both the black outline and the color inside?
 

Snarky

Doesn't AGS allow you to designate one font as the outline for another font? I think that's how you've got to do it: split it into two separate fonts, one for the white and one for the black.

Khris

If you want an outline in AGS, you can use the automatic outline setting (which will draw a black outline around your colored font pixels) or specify an outline font, which uses white pixels there the outline goes and black ones for transparency.

Using this method, AGS draws the outlined letter in black using the outline font, then the colored letter on top using the actual font.

Bottom line: you always need two fonts to display an outline font (unless you use automatic outlines). The cool thing is that you can make parts of the outline letter bolder to give the font more volume (which would allow you to exactly replicate the sprite font you posted with native fonts).

Edit: Radiant's font edit also allows you to create an outline font automatically, which you can then edit.

Monsieur OUXX

Quote from: Khris on Tue 22/10/2013 16:41:25
you always need two fonts to display an outline font

Alright, I never knew that. I knew only about automated outlines. Thanks guys.
 

Crimson Wizard

I want to mention just in case that anti-aliased TTF fonts seem to work pretty badly with outlines.

SMF spam blocked by CleanTalk