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

Go to the source code of this file.

Functions

 FT_Get_Gasp (FT_Face face, FT_UInt ppem)
 

Function Documentation

◆ FT_Get_Gasp()

FT_Get_Gasp ( FT_Face  face,
FT_UInt  ppem 
)

Definition at line 24 of file ftgasp.c.

26 {
28
29
30 if ( face && FT_IS_SFNT( face ) )
31 {
32 TT_Face ttface = (TT_Face)face;
33
34
35 if ( ttface->gasp.numRanges > 0 )
36 {
38 TT_GaspRange range_end = range + ttface->gasp.numRanges;
39
40
41 while ( ppem > range->maxPPEM )
42 {
43 range++;
44 if ( range >= range_end )
45 goto Exit;
46 }
47
48 result = range->gaspFlag;
49
50 /* ensure that we don't have spurious bits */
51 if ( ttface->gasp.version == 0 )
52 result &= 3;
53 }
54 }
55 Exit:
56 return result;
57 }
#define FT_IS_SFNT(face)
Definition: freetype.h:1290
#define FT_GASP_NO_TABLE
Definition: ftgasp.h:94
signed int FT_Int
Definition: fttypes.h:220
GLenum GLuint GLint GLenum face
Definition: glext.h:7025
GLenum GLint * range
Definition: glext.h:7539
GLuint64EXT * result
Definition: glext.h:11304
static void Exit(void)
Definition: sock.c:1330
TT_GaspRec gasp
Definition: tttypes.h:1526
FT_UShort version
Definition: tttypes.h:377
FT_UShort numRanges
Definition: tttypes.h:378
TT_GaspRange gaspRanges
Definition: tttypes.h:379
struct TT_FaceRec_ * TT_Face
Definition: tttypes.h:988