freetype-devel
[Top][All Lists]
Advanced

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

[ft-devel] Inconsistent Function Type


From: Yuji Kuwabara
Subject: [ft-devel] Inconsistent Function Type
Date: Thu, 1 Sep 2005 16:56:18 +0900

Hello,

I tried to build FT2 using CodeWarrior on MacOSX.

In a header file  include/freetype/ftrender.h ,

typedef void
  (*FT_Glyph_TransformFunc)( FT_Glyph    glyph,
                             FT_Matrix*  matrix,
                             FT_Vector*  delta )

But in a source file  src/base/ftglyph.c ,

FT_CALLBACK_DEF( void )
  ft_outline_glyph_transform( FT_Glyph          outline_glyph,
                              const FT_Matrix*  matrix,
                              const FT_Vector*  delta )

This function is assigned into FT_Glyph_TransformFunc.

 FT_CALLBACK_TABLE_DEF
  const FT_Glyph_Class  ft_outline_glyph_class =
  {
    sizeof ( FT_OutlineGlyphRec ),
    FT_GLYPH_FORMAT_OUTLINE,

    ft_outline_glyph_init,
    ft_outline_glyph_done,
    ft_outline_glyph_copy,
    ft_outline_glyph_transform,
    ft_outline_glyph_bbox,
    ft_outline_glyph_prepare
  };


Without "relaxed pointer checking" option, this generates error.


Regards.

 Yuji Kuwabara






reply via email to

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