| OLD | NEW |
| 1 /***************************************************************************/ | 1 /***************************************************************************/ |
| 2 /* */ | 2 /* */ |
| 3 /* fttype1.c */ | 3 /* fttype1.c */ |
| 4 /* */ | 4 /* */ |
| 5 /* FreeType utility file for PS names support (body). */ | 5 /* FreeType utility file for PS names support (body). */ |
| 6 /* */ | 6 /* */ |
| 7 /* Copyright 2002-2004, 2011 by */ | 7 /* Copyright 2002-2004, 2011 by */ |
| 8 /* David Turner, Robert Wilhelm, and Werner Lemberg. */ | 8 /* David Turner, Robert Wilhelm, and Werner Lemberg. */ |
| 9 /* */ | 9 /* */ |
| 10 /* This file is part of the FreeType project, and may only be used, */ | 10 /* This file is part of the FreeType project, and may only be used, */ |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 #include FT_INTERNAL_SERVICE_H | 21 #include FT_INTERNAL_SERVICE_H |
| 22 #include FT_SERVICE_POSTSCRIPT_INFO_H | 22 #include FT_SERVICE_POSTSCRIPT_INFO_H |
| 23 | 23 |
| 24 | 24 |
| 25 /* documentation is in t1tables.h */ | 25 /* documentation is in t1tables.h */ |
| 26 | 26 |
| 27 FT_EXPORT_DEF( FT_Error ) | 27 FT_EXPORT_DEF( FT_Error ) |
| 28 FT_Get_PS_Font_Info( FT_Face face, | 28 FT_Get_PS_Font_Info( FT_Face face, |
| 29 PS_FontInfoRec* afont_info ) | 29 PS_FontInfoRec* afont_info ) |
| 30 { | 30 { |
| 31 FT_Error error = FT_Err_Invalid_Argument; | 31 FT_Error error = FT_ERR( Invalid_Argument ); |
| 32 | 32 |
| 33 | 33 |
| 34 if ( face ) | 34 if ( face ) |
| 35 { | 35 { |
| 36 FT_Service_PsInfo service = NULL; | 36 FT_Service_PsInfo service = NULL; |
| 37 | 37 |
| 38 | 38 |
| 39 FT_FACE_FIND_SERVICE( face, service, POSTSCRIPT_INFO ); | 39 FT_FACE_FIND_SERVICE( face, service, POSTSCRIPT_INFO ); |
| 40 | 40 |
| 41 if ( service && service->ps_get_font_info ) | 41 if ( service && service->ps_get_font_info ) |
| (...skipping 24 matching lines...) Expand all Loading... |
| 66 return result; | 66 return result; |
| 67 } | 67 } |
| 68 | 68 |
| 69 | 69 |
| 70 /* documentation is in t1tables.h */ | 70 /* documentation is in t1tables.h */ |
| 71 | 71 |
| 72 FT_EXPORT_DEF( FT_Error ) | 72 FT_EXPORT_DEF( FT_Error ) |
| 73 FT_Get_PS_Font_Private( FT_Face face, | 73 FT_Get_PS_Font_Private( FT_Face face, |
| 74 PS_PrivateRec* afont_private ) | 74 PS_PrivateRec* afont_private ) |
| 75 { | 75 { |
| 76 FT_Error error = FT_Err_Invalid_Argument; | 76 FT_Error error = FT_ERR( Invalid_Argument ); |
| 77 | 77 |
| 78 | 78 |
| 79 if ( face ) | 79 if ( face ) |
| 80 { | 80 { |
| 81 FT_Service_PsInfo service = NULL; | 81 FT_Service_PsInfo service = NULL; |
| 82 | 82 |
| 83 | 83 |
| 84 FT_FACE_FIND_SERVICE( face, service, POSTSCRIPT_INFO ); | 84 FT_FACE_FIND_SERVICE( face, service, POSTSCRIPT_INFO ); |
| 85 | 85 |
| 86 if ( service && service->ps_get_font_private ) | 86 if ( service && service->ps_get_font_private ) |
| (...skipping 18 matching lines...) Expand all Loading... |
| 105 { | 105 { |
| 106 FT_FACE_FIND_SERVICE( face, service, POSTSCRIPT_INFO ); | 106 FT_FACE_FIND_SERVICE( face, service, POSTSCRIPT_INFO ); |
| 107 if ( service && service->ps_get_font_value ) | 107 if ( service && service->ps_get_font_value ) |
| 108 result = service->ps_get_font_value( face, key, idx, | 108 result = service->ps_get_font_value( face, key, idx, |
| 109 value, value_len ); | 109 value, value_len ); |
| 110 } | 110 } |
| 111 return result; | 111 return result; |
| 112 } | 112 } |
| 113 | 113 |
| 114 /* END */ | 114 /* END */ |
| OLD | NEW |