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, 2003, 2004 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, */ |
11 /* modified, and distributed under the terms of the FreeType project */ | 11 /* modified, and distributed under the terms of the FreeType project */ |
12 /* license, LICENSE.TXT. By continuing to use, modify, or distribute */ | 12 /* license, LICENSE.TXT. By continuing to use, modify, or distribute */ |
13 /* this file you indicate that you have read the license and */ | 13 /* this file you indicate that you have read the license and */ |
14 /* understand and accept it fully. */ | 14 /* understand and accept it fully. */ |
15 /* */ | 15 /* */ |
16 /***************************************************************************/ | 16 /***************************************************************************/ |
17 | 17 |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 ) |
87 error = service->ps_get_font_private( face, afont_private ); | 87 error = service->ps_get_font_private( face, afont_private ); |
88 } | 88 } |
89 | 89 |
90 return error; | 90 return error; |
91 } | 91 } |
92 | 92 |
| 93 /* documentation is in t1tables.h */ |
| 94 FT_EXPORT_DEF( FT_Long ) |
| 95 FT_Get_PS_Font_Value( FT_Face face, |
| 96 PS_Dict_Keys key, |
| 97 FT_UInt idx, |
| 98 void *value, |
| 99 FT_Long value_len ) |
| 100 { |
| 101 FT_Int result = 0; |
| 102 FT_Service_PsInfo service = NULL; |
| 103 |
| 104 if ( face ) |
| 105 { |
| 106 FT_FACE_FIND_SERVICE( face, service, POSTSCRIPT_INFO ); |
| 107 if ( service && service->ps_get_font_value ) |
| 108 result = service->ps_get_font_value( face, key, idx, |
| 109 value, value_len ); |
| 110 } |
| 111 return result; |
| 112 } |
93 | 113 |
94 /* END */ | 114 /* END */ |
OLD | NEW |