[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Freetype] Halo(?) font/effect

From: Peter Montgomery
Subject: Re: [Freetype] Halo(?) font/effect
Date: Tue, 13 Apr 2004 23:50:45 -0700


> The effect (Called a 'halo font' by the end user - Not sure if that is the
> term or not) results in a ring (typically white) of a pixel or two being
> all the way around each character, almost as if the character was drawn on
> of a larger version of itself.
> So, I'm wondering if FreeType has any support for this feature, or if
> has suggestions about how to achieve this?  The best approach I've found
so far
> is to extract the curves of each character, draw them as (white) lines
with a
> thick lineweight, then proceed to draw the (black) character on top as per

You could also come at this from an image processing perspective.  Once you
have a bitmap of your string, perform a dilation of the image and then merge
that with the bitmap from Freetype.  I did a google search on the following

image dilation code

Here's a couple of hits that looked interesting:

This one has some source code:

This one shows some images of dilation, erosion, etc:

This is an open source image processing library that looked interesting and
contained various morphological functions such as dilation:


reply via email to

[Prev in Thread] Current Thread [Next in Thread]