[Top][All Lists]

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

Re: [ft-devel] How to determine if patented hinting is enabled?

From: Werner LEMBERG
Subject: Re: [ft-devel] How to determine if patented hinting is enabled?
Date: Wed, 05 Oct 2005 17:16:47 +0200 (CEST)

> I'm sure that this has come up before, but I can't find an answer.
> Is there a way to determine, at runtime, whether the bytecode hinter
> has been enabled?


> I can do this with: FT_DRIVER_HAS_HINTER(FT_Get_Module("truetype"))
> but I have to include freetype/internal/ftobjs.h to do so, which
> suggests to me that this isn't something I should rely on.  Is there
> a better way?


> The reason that this would be useful, is that I'd like to respect
> the gasp table and turn off antialiasing for certain pixel size.
> However, I only want to do so when we have proper hinting enabled.
> Non-antialiased, unhinted glyphs just look too ugly.

In the CVS I've added a new face flag, FT_FACE_FLAG_HINTER, which is
set if a native hinting engine is available.  Please test, and thanks
for the suggestion.


reply via email to

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