ReactOS 0.4.16-dev-334-g4d9f67c
fttype1.c File Reference
#include <ft2build.h>
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 29 of file fttype1.c.

31 {
33 FT_Service_PsInfo service;
34
35
36 if ( !face )
37 return FT_THROW( Invalid_Face_Handle );
38
39 if ( !afont_info )
40 return FT_THROW( Invalid_Argument );
41
42 FT_FACE_FIND_SERVICE( face, service, POSTSCRIPT_INFO );
43
44 if ( service && service->ps_get_font_info )
45 error = service->ps_get_font_info( face, afont_info );
46 else
47 error = FT_THROW( Invalid_Argument );
48
49 return error;
50 }
#define FT_THROW(e)
Definition: ftdebug.h:213
#define FT_FACE_FIND_SERVICE(face, ptr, id)
Definition: ftserv.h:75
int FT_Error
Definition: fttypes.h:300
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 77 of file fttype1.c.

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

◆ 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 104 of file fttype1.c.

109 {
110 FT_Int result = 0;
111 FT_Service_PsInfo service = NULL;
112
113
114 if ( face )
115 {
116 FT_FACE_FIND_SERVICE( face, service, POSTSCRIPT_INFO );
117
118 if ( service && service->ps_get_font_value )
119 result = service->ps_get_font_value( face, key, idx,
120 value, value_len );
121 }
122
123 return result;
124 }
#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:94

◆ FT_Has_PS_Glyph_Names()

FT_Has_PS_Glyph_Names ( FT_Face  face)

Definition at line 56 of file fttype1.c.

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