Home | Info | Community | Development | myReactOS | Contact Us
ReactOS Development > Doxygenfttype1.c
Go to the documentation of this file.
00001 /***************************************************************************/ 00002 /* */ 00003 /* fttype1.c */ 00004 /* */ 00005 /* FreeType utility file for PS names support (body). */ 00006 /* */ 00007 /* Copyright 2002, 2003, 2004 by */ 00008 /* David Turner, Robert Wilhelm, and Werner Lemberg. */ 00009 /* */ 00010 /* This file is part of the FreeType project, and may only be used, */ 00011 /* modified, and distributed under the terms of the FreeType project */ 00012 /* license, LICENSE.TXT. By continuing to use, modify, or distribute */ 00013 /* this file you indicate that you have read the license and */ 00014 /* understand and accept it fully. */ 00015 /* */ 00016 /***************************************************************************/ 00017 00018 00019 #include <ft2build.h> 00020 #include FT_INTERNAL_OBJECTS_H 00021 #include FT_INTERNAL_SERVICE_H 00022 #include FT_SERVICE_POSTSCRIPT_INFO_H 00023 00024 00025 /* documentation is in t1tables.h */ 00026 00027 FT_EXPORT_DEF( FT_Error ) 00028 FT_Get_PS_Font_Info( FT_Face face, 00029 PS_FontInfoRec* afont_info ) 00030 { 00031 FT_Error error = FT_Err_Invalid_Argument; 00032 00033 00034 if ( face ) 00035 { 00036 FT_Service_PsInfo service = NULL; 00037 00038 00039 FT_FACE_FIND_SERVICE( face, service, POSTSCRIPT_INFO ); 00040 00041 if ( service && service->ps_get_font_info ) 00042 error = service->ps_get_font_info( face, afont_info ); 00043 } 00044 00045 return error; 00046 } 00047 00048 00049 /* documentation is in t1tables.h */ 00050 00051 FT_EXPORT_DEF( FT_Int ) 00052 FT_Has_PS_Glyph_Names( FT_Face face ) 00053 { 00054 FT_Int result = 0; 00055 FT_Service_PsInfo service = NULL; 00056 00057 00058 if ( face ) 00059 { 00060 FT_FACE_FIND_SERVICE( face, service, POSTSCRIPT_INFO ); 00061 00062 if ( service && service->ps_has_glyph_names ) 00063 result = service->ps_has_glyph_names( face ); 00064 } 00065 00066 return result; 00067 } 00068 00069 00070 /* documentation is in t1tables.h */ 00071 00072 FT_EXPORT_DEF( FT_Error ) 00073 FT_Get_PS_Font_Private( FT_Face face, 00074 PS_PrivateRec* afont_private ) 00075 { 00076 FT_Error error = FT_Err_Invalid_Argument; 00077 00078 00079 if ( face ) 00080 { 00081 FT_Service_PsInfo service = NULL; 00082 00083 00084 FT_FACE_FIND_SERVICE( face, service, POSTSCRIPT_INFO ); 00085 00086 if ( service && service->ps_get_font_private ) 00087 error = service->ps_get_font_private( face, afont_private ); 00088 } 00089 00090 return error; 00091 } 00092 00093 00094 /* END */ Generated on Thu May 24 2012 04:34:15 for ReactOS by
1.7.6.1
|