ReactOS 0.4.16-dev-2354-g16de117
fttype1.c File Reference
Include dependency graph for fttype1.c:

Go to the source code of this file.

Functions

 FT_Get_PS_Font_Info (FT_Face face, PS_FontInfoRec *afont_info)
 
 FT_Has_PS_Glyph_Names (FT_Face face)
 
 FT_Get_PS_Font_Private (FT_Face face, PS_PrivateRec *afont_private)
 
 FT_Get_PS_Font_Value (FT_Face face, PS_Dict_Keys key, FT_UInt idx, void *value, FT_Long value_len)
 

Function Documentation

◆ FT_Get_PS_Font_Info()

FT_Get_PS_Font_Info ( FT_Face  face,
PS_FontInfoRec afont_info 
)

Definition at line 28 of file fttype1.c.

30 {
32 FT_Service_PsInfo service;
33
34
35 if ( !face )
36 return FT_THROW( Invalid_Face_Handle );
37
38 if ( !afont_info )
39 return FT_THROW( Invalid_Argument );
40
41 FT_FACE_FIND_SERVICE( face, service, POSTSCRIPT_INFO );
42
43 if ( service && service->ps_get_font_info )
44 error = service->ps_get_font_info( face, afont_info );
45 else
46 error = FT_THROW( Invalid_Argument );
47
48 return error;
49 }
#define FT_THROW(e)
Definition: ftdebug.h:243
#define FT_FACE_FIND_SERVICE(face, ptr, id)
Definition: ftserv.h:77
int FT_Error
Definition: fttypes.h:299
GLenum GLuint GLint GLenum face
Definition: glext.h:7025
#define error(str)
Definition: mkdosfs.c:1605

◆ FT_Get_PS_Font_Private()

FT_Get_PS_Font_Private ( FT_Face  face,
PS_PrivateRec afont_private 
)

Definition at line 76 of file fttype1.c.

78 {
80 FT_Service_PsInfo service;
81
82
83 if ( !face )
84 return FT_THROW( Invalid_Face_Handle );
85
86 if ( !afont_private )
87 return FT_THROW( Invalid_Argument );
88
89 FT_FACE_FIND_SERVICE( face, service, POSTSCRIPT_INFO );
90
91 if ( service && service->ps_get_font_private )
92 error = service->ps_get_font_private( face, afont_private );
93 else
94 error = FT_THROW( Invalid_Argument );
95
96 return error;
97 }

◆ FT_Get_PS_Font_Value()

FT_Get_PS_Font_Value ( FT_Face  face,
PS_Dict_Keys  key,
FT_UInt  idx,
void value,
FT_Long  value_len 
)

Definition at line 103 of file fttype1.c.

108 {
109 FT_Int result = 0;
110 FT_Service_PsInfo service = NULL;
111
112
113 if ( face )
114 {
115 FT_FACE_FIND_SERVICE( face, service, POSTSCRIPT_INFO );
116
117 if ( service && service->ps_get_font_value )
118 result = service->ps_get_font_value( face, key, idx,
119 value, value_len );
120 }
121
122 return result;
123 }
#define NULL
Definition: types.h:112
unsigned int idx
Definition: utils.c:41
signed int FT_Int
Definition: fttypes.h:220
GLuint64EXT * result
Definition: glext.h:11304
Definition: copy.c:22
Definition: pdh_main.c:96

◆ FT_Has_PS_Glyph_Names()

FT_Has_PS_Glyph_Names ( FT_Face  face)

Definition at line 55 of file fttype1.c.

56 {
57 FT_Int result = 0;
58 FT_Service_PsInfo service;
59
60
61 if ( face )
62 {
63 FT_FACE_FIND_SERVICE( face, service, POSTSCRIPT_INFO );
64
65 if ( service && service->ps_has_glyph_names )
66 result = service->ps_has_glyph_names( face );
67 }
68
69 return result;
70 }