Around 16 o'clock on Nov 21, yao zhang wrote:

>     FT_Load_Glyph(FT_Face face, FT_UInt  glyph_index, FT_Int load_flags)
> with load_flags set to 0 (at least in XFree86 4.1.x).  I remember Keith was
> saying if you set the load_flags to FT_LOAD_NO_BITMAP for now, you will be
> able to render at those sizes with the problematic font, but you won't be
> able to see the embedded bitmap glyphs of it.  He propably will have the
> right fix in the next release.  I guess the right fix is that if
> anti-aliasing is on, then NO_BITMAP; otherwise, use embedded bitmap glyphs.
> Correct me if I am wrong.

Yes, adding FT_LOAD_NO_BITMAP makes fonts that include bitmaps work, and 
that change is in current XFree86 CVS and will be in XFree86 4.2.  The 
more significant change of using embedded bitmaps will be in XFree86 right 
after 4.2 ships.  This change is tied to a radical restructuring of Xft 
which is inappropriate at this point in the XFree86 release cycle.

That change also permits XFree86 to use PCF fonts from the client side so
that we can use existing bitmap fonts from the client side.  While this
may seem silly, it has the advantage of working efficiently with ISO 10646 
encoded bitmap fonts which is significantly better for applications than 
the hodge-podge of random legacy encodings necessary when using 
server-side fonts.

> Since I don't want to use embedded bitmap font and don't want the hinting,
> I did something even more radical, that is in FT2, add
>     load_flags |= FT_LOAD_NO_HINTING | FT_LOAD_NO_BITMAP
> at the very beginning of the function FT_Load_Glyph().  It is only my
> preference and is not recommended.  But I only need to recompile FT2, no
> recompilation of XFree86.  I always need to recompile FT2 anyway because
> I should turn on byte code interperter.

I can add configuration options for Xft that would turn on 
FT_LOAD_NO_HINTING if you think this would be helpful; I wouldn't be 
surprised if some fonts had broken hints.

[EMAIL PROTECTED]        XFree86 Core Team      SuSE, Inc.


_______________________________________________
Fonts mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/fonts

Reply via email to