freetype-devel
[Top][All Lists]
Advanced

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

A protuberant Chinese pixel


From: Wenlin Institute
Subject: A protuberant Chinese pixel
Date: Sat, 30 Sep 2000 13:16:15 -0700

Dear FreeType developers,

FreeType is tremendous! Thanks to all those who created it.

There is one small point where it looks like the rasterizer could do
better. A picture and brief description are at this URL:

    http://www.wenlin.com/freetype.gif

I don't know the internals of the rasterizer well enough to tell where the
problem is in the source code, but it seems to involve rounding one way or
the other from a coordinate exactly half-way between pixel boundaries
(64*n+32 where n is an integer).

By the way, the Chinese character outlines in which the protuberant pixel
is manifested don't come from a TrueType font file (though they could
have). They are built up one stroke at a time (in standard Chinese
stroke-order). Each stroke is defined only in terms of its stroke type and
its endpoints (plus, for some stroke types, one or more turning points).
The outline of each stroke is constructed on-the-fly by a routine that
knows, for example, how to add the ornaments at the ends of a Chinese
horizontal stroke, and fills in a TT_Outline structure that is passed to
TT_Get_Outline_Bitmap(). Over 12,000 characters are already defined in this
way.

Thanks again for FreeType, and thanks in advance to anyone who can fix the
protuberant pixel (which is really a minor problem).

Tom Bishop


Wenlin Institute, Inc.         Software for Learning Chinese
E-mail: address@hidden         Web: http://www.wenlin.com
Telephone: 1-877-4-WENLIN (1-877-493-6546)




reply via email to

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