Exemplo n.º 1
0
static void init_freetype_lv1 (PLStream *pls)
{
FT_Data *FT;

plD_FreeType_init(pls);

FT=(FT_Data *)pls->FT;
FT->pixel= (plD_pixel_fp)plD_pixel_gd;
FT->read_pixel= (plD_read_pixel_fp)plD_read_pixel_gd;
FT->set_pixel= (plD_set_pixel_fp)plD_set_pixel_gd;
}
Exemplo n.º 2
0
/*----------------------------------------------------------------------*\
 *  void init_freetype_lv1 (PLStream *pls)
 *
 *  "level 1" initialisation of the freetype library.
 *  "Level 1" initialisation calls plD_FreeType_init(pls) which allocates
 *  memory to the pls->FT structure, then sets up the pixel callback
 *  function.
\*----------------------------------------------------------------------*/
static void init_freetype_lv1( PLStream *pls )
{
  // Log_Verbose( "init_freetype_lv1" );

  wxPLDevBase *dev=(wxPLDevBase*)pls->dev;

	plD_FreeType_init( pls );

	FT_Data *FT=(FT_Data *)pls->FT;
	FT->pixel = (plD_pixel_fp)plD_pixel_wxwidgets;

  /*
   *  See if we have a 24 bit device (or better), in which case
   *  we can use the better antialising.
   */
  // the bitmap we are using in the antialized case has always
  // 32 bit depth
  FT->BLENDED_ANTIALIASING=1;
  FT->read_pixel= (plD_read_pixel_fp)plD_read_pixel_wxwidgets;
  FT->set_pixel= (plD_set_pixel_fp)plD_set_pixel_wxwidgets;
}