xc/lib/font/FreeType/ in "XORG-RELEASE-1"-branch differs from Xfree86 trunk...

Chisato Yamauchi release-wranglers@freedesktop.org
Sun Mar 14 11:07:07 PST 2004


From: Roland Mainz <roland.mainz@nrubsig.org>
Subject: xc/lib/font/FreeType/ in "XORG-RELEASE-1"-branch differs from Xfree86 trunk...
Date: Sat, 13 Mar 2004 23:55:09 +0100

> While checking whether the Xorg release branch FreeType font code is in
> sync with the Xfree86 trunk I found the following difference:
> -- snip --
> --- xfree86_trunk/xc/lib/font/FreeType/ftfuncs.c        2004-02-24
> 02:13:04.000000000 +0100
> +++ xorg_release1/xc/lib/font/FreeType/ftfuncs.c        2004-03-04
> 18:47:03.000000000 +0100
> [snip]
>  /*
>   *  If you want to use FT_Outline_Get_CBox instead of 
>   *  FT_Outline_Get_BBox, define here.
> @@ -906,9 +907,9 @@
>             /* If sbit is available, we don't use very lazy method. */
>             /* See TT_Load_Glyph */
>             if( FT_IS_SFNT( face->face ) ) {
> -               TT_Size tt_size = (TT_Size)instance->size;
> -               if( !( !(instance->load_flags & FT_LOAD_NO_BITMAP) 
> -                      && tt_size->strike_index != 0xFFFFU ) )
> correct=1;
> +               if((instance->load_flags & FT_LOAD_NO_BITMAP)
> +                  || (face->face->face_flags &
> FT_FACE_FLAG_FIXED_SIZES) == 0)
> +                   correct=1;
>             }
>         }
>      }
> -- snip --
> 
> Does anyone know who introduced this difference - and why ?

  According to my understanding:

 - My code checks the existence of the embedded bitmap.
 - Your code checks that the font is non-scalabe(pcf or bdf). 

  If my understanding is wrong, please tell me.

  The `very lazy' method can be used only when the font data 
is outline(of TrueType or OpenType).  If font data can be prepared
by embedded bitmap, the `very lazy' method isn't applied.
Since the loading speed of embedded bitmap is fast enough.  
  Therefore, my code checks the existence of the embedded bitmap.

  Although I looked for the public method by which we check
the existence of embedded bitmap, I was not able to find it.

------------------------------------------------------------
    Chisato Yamauchi




More information about the release-wranglers mailing list