Disabling auto-refresh of game list by default, as it is causing bugs sometimes
[open-ps2-loader.git] / thirdparty / freetype-2.3.12 / src / base / fttype1.c
blob3975584db893c309c7e8fd460735b8e07253fe28
1 /***************************************************************************/
2 /* */
3 /* fttype1.c */
4 /* */
5 /* FreeType utility file for PS names support (body). */
6 /* */
7 /* Copyright 2002, 2003, 2004 by */
8 /* David Turner, Robert Wilhelm, and Werner Lemberg. */
9 /* */
10 /* This file is part of the FreeType project, and may only be used, */
11 /* modified, and distributed under the terms of the FreeType project */
12 /* license, LICENSE.TXT. By continuing to use, modify, or distribute */
13 /* this file you indicate that you have read the license and */
14 /* understand and accept it fully. */
15 /* */
16 /***************************************************************************/
19 #include <ft2build.h>
20 #include FT_INTERNAL_OBJECTS_H
21 #include FT_INTERNAL_SERVICE_H
22 #include FT_SERVICE_POSTSCRIPT_INFO_H
25 /* documentation is in t1tables.h */
27 FT_EXPORT_DEF( FT_Error )
28 FT_Get_PS_Font_Info( FT_Face face,
29 PS_FontInfoRec* afont_info )
31 FT_Error error = FT_Err_Invalid_Argument;
34 if ( face )
36 FT_Service_PsInfo service = NULL;
39 FT_FACE_FIND_SERVICE( face, service, POSTSCRIPT_INFO );
41 if ( service && service->ps_get_font_info )
42 error = service->ps_get_font_info( face, afont_info );
45 return error;
49 /* documentation is in t1tables.h */
51 FT_EXPORT_DEF( FT_Int )
52 FT_Has_PS_Glyph_Names( FT_Face face )
54 FT_Int result = 0;
55 FT_Service_PsInfo service = NULL;
58 if ( face )
60 FT_FACE_FIND_SERVICE( face, service, POSTSCRIPT_INFO );
62 if ( service && service->ps_has_glyph_names )
63 result = service->ps_has_glyph_names( face );
66 return result;
70 /* documentation is in t1tables.h */
72 FT_EXPORT_DEF( FT_Error )
73 FT_Get_PS_Font_Private( FT_Face face,
74 PS_PrivateRec* afont_private )
76 FT_Error error = FT_Err_Invalid_Argument;
79 if ( face )
81 FT_Service_PsInfo service = NULL;
84 FT_FACE_FIND_SERVICE( face, service, POSTSCRIPT_INFO );
86 if ( service && service->ps_get_font_private )
87 error = service->ps_get_font_private( face, afont_private );
90 return error;
94 /* END */