Hi,
I enabled the autohinter in our rip, and the bitmap output turns out to
be very good. Sorry about the previous post. Thanks for your reply.
Dakai.
David Turner wrote:
Hello,
Sorry to say this, but it seems you don't understand what the code in
ftraster.c does, or how it relates to the rest
of the font engine. Sadly, I won't be able to give you details here,
since it'd be a bit long.
Have you tried running your program with the current FreeType CVS (which
is about to be
released as 2.2.1 in a few days) ?. It contains a much better
auto-hinter for CJK fonts, and this may improve
your rendering.
Hope this helps,
- David Turner
- The FreeType Project (www.freetype.org)
Dakai Liu a écrit :
Sorry If you have seen it on developer's mail list.
Hello all,
I am working on a rip project that uses FreeType 2.1.10 as font
engine. While I render an Asian font at 6 point size at 600x600 dpi,
the box size is 50x50. The font is a type1 font. FreeType produces
un-even horizontal strokes. During debug, I found that a macro in
ftraster.c:371
#define SCALED(x) ( ( (x) << ras.scale_shift ) - (ras.precision_half) )
is trying to fit the points into the centre of a pixel. but some
certain Y value is already at the centre of a pixel. So SCALED moved
the Y value to the edge of the pixel. I guess this may contribute to
the un-evenness of a horizontal stroke. So I modified it to:
#define SCALED(x) ( (x) << ras.scale_shift )
So the whole grid fitting changed, but the output looks much better.
also the serif at the top appeared. By examining the font file, at 6
point size at 600dpi, we should have 1 pixel sized serif.
I am pretty much puzzled and need some enlightment. I enclosed the
font file.
Thanks.
------------------------------------------------------------------------
_______________________________________________
Freetype mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/freetype
***********************************************************************************
Information contained in this email message is confidential and may be
privileged, and is intended only for use of the individual or entity
named above. If the reader of this message is not the intended
recipient, or the employee or agent responsible to deliver it to the
intended recipient, you are hereby notified that any dissemination,
distribution or copying of this communication is strictly prohibited. If
you have received this communication in error, please immediately notify
the [EMAIL PROTECTED] and destroy the original message.
***********************************************************************************
--
Dakai Liu
Software Engineer
R&D
Toshiba-TAP
#####################################################################################
Note:
This message is for the named person's use only. It may contain confidential, proprietary
or legally privileged information. No confidentiality or privilege is waived or lost by any
mis-transmission. If you receive this message in error, please immediately delete it and all
copies of it from your system, destroy any hard copies of it and notify the sender.
You must not, directly or indirectly, use, disclose, distribute, print, or copy any part of
this message if you are not the intended recipient. Toshiba Australia reserves the right to
monitor all e-mail communications through its networks.
Thank You.
#####################################################################################
_______________________________________________
Freetype mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/freetype