[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ft] Thick contours
From: |
Leonard Rosenthol |
Subject: |
Re: [ft] Thick contours |
Date: |
Wed, 30 Mar 2005 10:04:54 -0500 |
At 07:35 AM 3/30/2005, Laurent Auneau wrote:
As the
attached screenshot shows, Id like to render outlined fonts. On the
left, this is the Photoshop version, on the right this is mine.
I dont know how Photoshop does, but my method is quite simple:
- I render 4 times in black, with a 1 pixel offset in X and Y -> it
gives (x+1, y+1), then (x-1, y+1), then (x-1, y-1), and finally (x+1,
y-1)
- Then I render in white on top of that on location (x, y)
Seems like
a LOT of work.
What I do
for outlined text, is to get the vectors of the glyph and then plot
them. This same method is used by a number of FT clients, including
Xpdf, ImageMagick and GraphicsMagick.
Leonard
---------------------------------------------------------------------------
PDF Sages,
Inc.
215-938-7080 (voice)
215-938-0880 (fax)