ReactOS 0.4.16-dev-338-g34e76ad
ftfstype.c File Reference
#include <ft2build.h>
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 28 of file ftfstype.c.

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