freetype-devel
[Top][All Lists]
Advanced

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

[ft-devel] low precision flag not update in demo


From: Allan Yang, Jian Hua - SH
Subject: [ft-devel] low precision flag not update in demo
Date: Fri, 21 Dec 2007 22:32:57 +0800

This is the fuction FTDemo_Update_Current_Flags() in ftcommon.c:

  void

  FTDemo_Update_Current_Flags( FTDemo_Handle*  handle )

  {

    FT_UInt32   flags, target;

 

    flags = FT_LOAD_DEFAULT;  /* really 0 */

 

    flags |= FT_LOAD_IGNORE_GLOBAL_ADVANCE_WIDTH;

 

    if ( handle->autohint )

      flags |= FT_LOAD_FORCE_AUTOHINT;

 

    if ( !handle->use_sbits )

      flags |= FT_LOAD_NO_BITMAP;

 

    if ( handle->hinted )

    {

      target = 0;

 

      if ( handle->antialias )

      {

        switch ( handle->lcd_mode )

        {

          case LCD_MODE_LIGHT:

            target = FT_LOAD_TARGET_LIGHT;

            break;

 

          case LCD_MODE_RGB:

          case LCD_MODE_BGR:

            target = FT_LOAD_TARGET_LCD;

            break;

 

          case LCD_MODE_VRGB:

          case LCD_MODE_VBGR:

            target = FT_LOAD_TARGET_LCD_V;

            break;

 

          default:

            target = FT_LOAD_TARGET_NORMAL;

        }

      }

      else

        target = FT_LOAD_TARGET_MONO;

 

      flags |= target;

    }

    else

      flags |= FT_LOAD_NO_HINTING;

 

    handle->image_type.flags = flags;

    handle->string_reload    = 1;

  }

 

It not update the handle->low_prec! How so?

 

Thanks.

 

 

Allan


reply via email to

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