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

Go to the source code of this file.

Functions

 FT_Get_FSType_Flags (FT_Face face)
 

Function Documentation

◆ FT_Get_FSType_Flags()

FT_Get_FSType_Flags ( FT_Face  face)

Definition at line 27 of file ftfstype.c.

28 {
29 TT_OS2* os2;
30
31
32 /* first, try to get the fs_type directly from the font */
33 if ( face )
34 {
35 FT_Service_PsInfo service = NULL;
36
37
38 FT_FACE_FIND_SERVICE( face, service, POSTSCRIPT_INFO );
39
40 if ( service && service->ps_get_font_extra )
41 {
43
44
45 if ( !service->ps_get_font_extra( face, &extra ) &&
46 extra.fs_type != 0 )
47 return extra.fs_type;
48 }
49 }
50
51 /* look at FSType before fsType for Type42 */
52
53 if ( ( os2 = (TT_OS2*)FT_Get_Sfnt_Table( face, FT_SFNT_OS2 ) ) != NULL &&
54 os2->version != 0xFFFFU )
55 return os2->fsType;
56
57 return 0;
58 }
#define NULL
Definition: types.h:112
#define FT_FACE_FIND_SERVICE(face, ptr, id)
Definition: ftserv.h:77
GLenum GLuint GLint GLenum face
Definition: glext.h:7025
@ extra
Definition: id3.c:95
FT_UShort version
Definition: tttables.h:377
FT_UShort fsType
Definition: tttables.h:381
FT_Get_Sfnt_Table(FT_Face face, FT_Sfnt_Tag tag)
Definition: ftobjs.c:4176
@ FT_SFNT_OS2
Definition: tttables.h:624