freetype-devel
[Top][All Lists]
Advanced

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

Re: [Devel] Experimental grayscale native TrueType hinting support


From: Werner LEMBERG
Subject: Re: [Devel] Experimental grayscale native TrueType hinting support
Date: Sat, 07 Aug 2004 17:04:25 +0200 (CEST)

More than a year ago David wrote the following:

>  Here's a small patch against the current FreeType 2 sources that
>  "activates" gray-scale specific hinting within the TrueType
>  bytecode interpreter.  The changes can be summarized as:
> 

>  - the GETINFO bytecode now returns a scaler value (35)
>    corresponding to the Microsoft Scaler v. 1.7, according to the
>    information found in the OpenType spec
> 
>  - it also sets the "grayscale" bit, except when FT_LOAD_TARGET_MONO
>    is used when loading the glyph (note: NOT when FT_LOAD_MONOCHROME
>    only is used)
> 
>  - various changes to the glyph loader so that the information flows
>    from FT_Load_Glyph to the TrueType interpreter adequately.
> 
>  I've been using it with the fonts that come with my Windows 2000
>  setup and some fonts seem to change (e.g. Andale Mono), while
>  others do not (Times New Roman Italic, still exhibiting the
>  disappearing diagonal in "z" in AA mode).  It seems that some fonts
>  become slightly distorted, even in Monochrome mode (like Tahoma
>  Bold or Trebuchet) with this patch, I suspect it has something to
>  do with the scaler value begin changed.
> 
>  Note that it seems, but it's very subjective because I didn't
>  really compare it thoroughly, to improve the LCD-optimized
>  rendering in ftview or certain fonts.
> 
>  I'm submitting this patch so that you can experiment with it as
>  well as test it with the Windows XP version of these fonts..

I've now committed this patch.  Since it is possible that rendering
might be worse than previously please report any problems you find!


    Werner



reply via email to

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