[dev] freetype hinting

2006-09-24 Thread Bernd Schubert
Hi,

I'm presently investigating why openoffice fonts look more blurry with
freetype-2.2.1 than with freetype-2.1.10, see this thread
http://lists.nongnu.org/archive/html/freetype/2006-09/msg00050.html

I think finally I found the reason whats the problem:

in vcl/source/glyphs/gcach_ftyp.cxx:857

#if (FTVERSION = 2005) || defined(TT_CONFIG_OPTION_BYTECODE_INTERPRETER)
if( nDefaultPrioAutoHint = 0 )
#endif
mnLoadFlags |= FT_LOAD_NO_HINTING;

#ifdef FT_LOAD_TARGET_LIGHT
// enable light hinting if available
if( !(mnLoadFlags  FT_LOAD_NO_HINTING)  (nFTVERSION = 2103))
mnLoadFlags |= FT_LOAD_TARGET_LIGHT;
#endif

So when the bytecode interpreter and light-hinting is available, it will
set FT_LOAD_TARGET_LIGHT.
Now, referring to David Turner (see
http://lists.nongnu.org/archive/html/freetype/2006-09/msg00045.html), the
bytecode interpreter won't be used if light-hinting is enabled.

May I ask why gcach_ftyp.cxx is trying to handle all this stuff itself and
not just asking fontconfig? I mean, I see there is
vcl/source/gdi/fontcfg.cxx, so somehow fontconfig is used. But why aren't
its defaults used for hinting as well?

Thanks,
Bernd

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [dev] freetype hinting

2006-09-24 Thread Caolan McNamara
On Sun, 2006-09-24 at 16:46 +0200, Bernd Schubert wrote:
 Hi,
 
 I'm presently investigating why openoffice fonts look more blurry with
 freetype-2.2.1 than with freetype-2.1.10, see this thread
 http://lists.nongnu.org/archive/html/freetype/2006-09/msg00050.html
 
 I think finally I found the reason whats the problem:
 
 in vcl/source/glyphs/gcach_ftyp.cxx:857
...
 
 May I ask why gcach_ftyp.cxx is trying to handle all this stuff itself and
 not just asking fontconfig? I mean, I see there is
 vcl/source/gdi/fontcfg.cxx, so somehow fontconfig is used. But why aren't
 its defaults used for hinting as well?

Maybe you'd be interested in the use fontconfig hinting patch at issue
64508 which affects some of this.

Though as well as the fontconfig defaults, there are also now cairo
defaults which affect gtk2 apps, for that patch to additionally honour
those settings see issue 59127

C.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[dev] Re: freetype hinting

2006-09-24 Thread Bernd Schubert
Hello Caolan,

Caolan McNamara wrote:

 May I ask why gcach_ftyp.cxx is trying to handle all this stuff itself
 and not just asking fontconfig? I mean, I see there is
 vcl/source/gdi/fontcfg.cxx, so somehow fontconfig is used. But why aren't
 its defaults used for hinting as well?
 
 Maybe you'd be interested in the use fontconfig hinting patch at issue
 64508 which affects some of this.
 
 Though as well as the fontconfig defaults, there are also now cairo
 defaults which affect gtk2 apps, for that patch to additionally honour
 those settings see issue 59127

thanks for your answer. Good to see there's already work in this area, pity
that the patch didn't make it into openoffice-2.0.4.

Thanks again,
Bernd


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]