ReactOS  0.4.15-dev-2528-g5506091
ftgasp.h File Reference
#include <ft2build.h>
Include dependency graph for ftgasp.h:

Go to the source code of this file.

Macros

#define FT_GASP_NO_TABLE   -1
 
#define FT_GASP_DO_GRIDFIT   0x01
 
#define FT_GASP_DO_GRAY   0x02
 
#define FT_GASP_SYMMETRIC_GRIDFIT   0x04
 
#define FT_GASP_SYMMETRIC_SMOOTHING   0x08
 

Functions

 FT_Get_Gasp (FT_Face face, FT_UInt ppem)
 

Macro Definition Documentation

◆ FT_GASP_DO_GRAY

#define FT_GASP_DO_GRAY   0x02

Definition at line 94 of file ftgasp.h.

◆ FT_GASP_DO_GRIDFIT

#define FT_GASP_DO_GRIDFIT   0x01

Definition at line 93 of file ftgasp.h.

◆ FT_GASP_NO_TABLE

#define FT_GASP_NO_TABLE   -1

Definition at line 92 of file ftgasp.h.

◆ FT_GASP_SYMMETRIC_GRIDFIT

#define FT_GASP_SYMMETRIC_GRIDFIT   0x04

Definition at line 95 of file ftgasp.h.

◆ FT_GASP_SYMMETRIC_SMOOTHING

#define FT_GASP_SYMMETRIC_SMOOTHING   0x08

Definition at line 96 of file ftgasp.h.

Function Documentation

◆ FT_Get_Gasp()

FT_Get_Gasp ( FT_Face  face,
FT_UInt  ppem 
)

Definition at line 25 of file ftgasp.c.

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