forked from minhngoc25a/freetype2
* include/freetype/internal/ftobjs.h,
src/base/ftapi.c, src/base/ftobjs.c: updated a few face method definitions: FT_PSName_Requester => FT_Face_GetPostscriptNameFunc FT_Glyph_Name_Requester => FT_Face_GetGlyphNameFunc FT_Name_Index_Requester => FT_Face_GetGlyphNameIndexFunc
This commit is contained in:
parent
9e1cfb80d1
commit
5693e4d09b
|
@ -27,6 +27,14 @@
|
||||||
src/winfonts/winfnt.c, src/winfonts/winfnt.h:
|
src/winfonts/winfnt.c, src/winfonts/winfnt.h:
|
||||||
updating the type definitions for font font drivers
|
updating the type definitions for font font drivers
|
||||||
|
|
||||||
|
* include/freetype/internal/ftobjs.h,
|
||||||
|
src/base/ftapi.c, src/base/ftobjs.c: updated a few face method
|
||||||
|
definitions:
|
||||||
|
|
||||||
|
FT_PSName_Requester => FT_Face_GetPostscriptNameFunc
|
||||||
|
FT_Glyph_Name_Requester => FT_Face_GetGlyphNameFunc
|
||||||
|
FT_Name_Index_Requester => FT_Face_GetGlyphNameIndexFunc
|
||||||
|
|
||||||
2002-03-13 Antoine Leca <antoine@oriolnet.com>
|
2002-03-13 Antoine Leca <antoine@oriolnet.com>
|
||||||
|
|
||||||
* include/freetype/config/ftoption.h: changed the automatic detection
|
* include/freetype/config/ftoption.h: changed the automatic detection
|
||||||
|
|
|
@ -688,16 +688,16 @@ FT_BEGIN_HEADER
|
||||||
FT_UInt render_mode );
|
FT_UInt render_mode );
|
||||||
|
|
||||||
typedef const char*
|
typedef const char*
|
||||||
(*FT_PSName_Requester)( FT_Face face );
|
(*FT_Face_GetPostscriptNameFunc)( FT_Face face );
|
||||||
|
|
||||||
typedef FT_Error
|
typedef FT_Error
|
||||||
(*FT_Glyph_Name_Requester)( FT_Face face,
|
(*FT_Face_GetGlyphNameFunc)( FT_Face face,
|
||||||
FT_UInt glyph_index,
|
FT_UInt glyph_index,
|
||||||
FT_Pointer buffer,
|
FT_Pointer buffer,
|
||||||
FT_UInt buffer_max );
|
FT_UInt buffer_max );
|
||||||
|
|
||||||
typedef FT_UInt
|
typedef FT_UInt
|
||||||
(*FT_Name_Index_Requester)( FT_Face face,
|
(*FT_Face_GetGlyphNameIndexFunc)( FT_Face face,
|
||||||
FT_String* glyph_name );
|
FT_String* glyph_name );
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1188,10 +1188,10 @@
|
||||||
|
|
||||||
if ( clazz->get_interface )
|
if ( clazz->get_interface )
|
||||||
{
|
{
|
||||||
FT_Name_Index_Requester requester;
|
FT_Face_GetGlyphNameIndexFunc requester;
|
||||||
|
|
||||||
|
|
||||||
requester = (FT_Name_Index_Requester)clazz->get_interface(
|
requester = (FT_Face_GetGlyphNameIndexFunc)clazz->get_interface(
|
||||||
FT_MODULE( driver ), "name_index" );
|
FT_MODULE( driver ), "name_index" );
|
||||||
if ( requester )
|
if ( requester )
|
||||||
result = requester( face, glyph_name );
|
result = requester( face, glyph_name );
|
||||||
|
@ -1228,10 +1228,10 @@
|
||||||
|
|
||||||
if ( clazz->get_interface )
|
if ( clazz->get_interface )
|
||||||
{
|
{
|
||||||
FT_Glyph_Name_Requester requester;
|
FT_Face_GetGlyphNameFunc requester;
|
||||||
|
|
||||||
|
|
||||||
requester = (FT_Glyph_Name_Requester)clazz->get_interface(
|
requester = (FT_Face_GetGlyphNameFunc)clazz->get_interface(
|
||||||
FT_MODULE( driver ), "glyph_name" );
|
FT_MODULE( driver ), "glyph_name" );
|
||||||
if ( requester )
|
if ( requester )
|
||||||
error = requester( face, glyph_index, buffer, buffer_max );
|
error = requester( face, glyph_index, buffer, buffer_max );
|
||||||
|
@ -1263,10 +1263,10 @@
|
||||||
|
|
||||||
if ( clazz->get_interface )
|
if ( clazz->get_interface )
|
||||||
{
|
{
|
||||||
FT_PSName_Requester requester;
|
FT_Face_GetPostscriptNameFunc requester;
|
||||||
|
|
||||||
|
|
||||||
requester = (FT_PSName_Requester)clazz->get_interface(
|
requester = (FT_Face_GetPostscriptNameFunc)clazz->get_interface(
|
||||||
FT_MODULE( driver ), "postscript_name" );
|
FT_MODULE( driver ), "postscript_name" );
|
||||||
if ( requester )
|
if ( requester )
|
||||||
result = requester( face );
|
result = requester( face );
|
||||||
|
|
|
@ -1547,10 +1547,10 @@
|
||||||
|
|
||||||
if ( clazz->get_interface )
|
if ( clazz->get_interface )
|
||||||
{
|
{
|
||||||
FT_Name_Index_Requester requester;
|
FT_Face_GetGlyphNameIndexFunc requester;
|
||||||
|
|
||||||
|
|
||||||
requester = (FT_Name_Index_Requester)clazz->get_interface(
|
requester = (FT_Face_GetGlyphNameIndexFunc)clazz->get_interface(
|
||||||
FT_MODULE( driver ), "name_index" );
|
FT_MODULE( driver ), "name_index" );
|
||||||
if ( requester )
|
if ( requester )
|
||||||
result = requester( face, glyph_name );
|
result = requester( face, glyph_name );
|
||||||
|
@ -1587,10 +1587,10 @@
|
||||||
|
|
||||||
if ( clazz->get_interface )
|
if ( clazz->get_interface )
|
||||||
{
|
{
|
||||||
FT_Glyph_Name_Requester requester;
|
FT_Face_GetGlyphNameFunc requester;
|
||||||
|
|
||||||
|
|
||||||
requester = (FT_Glyph_Name_Requester)clazz->get_interface(
|
requester = (FT_Face_GetGlyphNameFunc)clazz->get_interface(
|
||||||
FT_MODULE( driver ), "glyph_name" );
|
FT_MODULE( driver ), "glyph_name" );
|
||||||
if ( requester )
|
if ( requester )
|
||||||
error = requester( face, glyph_index, buffer, buffer_max );
|
error = requester( face, glyph_index, buffer, buffer_max );
|
||||||
|
@ -1622,10 +1622,10 @@
|
||||||
|
|
||||||
if ( clazz->get_interface )
|
if ( clazz->get_interface )
|
||||||
{
|
{
|
||||||
FT_PSName_Requester requester;
|
FT_Face_GetPostscriptNameFunc requester;
|
||||||
|
|
||||||
|
|
||||||
requester = (FT_PSName_Requester)clazz->get_interface(
|
requester = (FT_Face_GetPostscriptNameFunc)clazz->get_interface(
|
||||||
FT_MODULE( driver ), "postscript_name" );
|
FT_MODULE( driver ), "postscript_name" );
|
||||||
if ( requester )
|
if ( requester )
|
||||||
result = requester( face );
|
result = requester( face );
|
||||||
|
|
Loading…
Reference in New Issue