Visualization Library 2.0.0-b5

A lightweight C++ OpenGL middleware for 2D/3D graphics

VL     Star     Watch     Fork     Issue

[Download] [Tutorials] [All Classes] [Grouped Classes]
afglobal.h
Go to the documentation of this file.
1 /***************************************************************************/
2 /* */
3 /* afglobal.h */
4 /* */
5 /* Auto-fitter routines to compute global hinting values */
6 /* (specification). */
7 /* */
8 /* Copyright 2003-2005, 2007, 2009, 2011-2012 by */
9 /* David Turner, Robert Wilhelm, and Werner Lemberg. */
10 /* */
11 /* This file is part of the FreeType project, and may only be used, */
12 /* modified, and distributed under the terms of the FreeType project */
13 /* license, LICENSE.TXT. By continuing to use, modify, or distribute */
14 /* this file you indicate that you have read the license and */
15 /* understand and accept it fully. */
16 /* */
17 /***************************************************************************/
18 
19 
20 #ifndef __AFGLOBAL_H__
21 #define __AFGLOBAL_H__
22 
23 
24 #include "aftypes.h"
25 #include "afmodule.h"
26 
27 
29 
30 
31  /*
32  * Default values and flags for both autofitter globals (found in
33  * AF_ModuleRec) and face globals (in AF_FaceGlobalsRec).
34  */
35 
36  /* index of fallback script in `af_script_classes' */
37 #define AF_SCRIPT_FALLBACK 2
38  /* a bit mask indicating an uncovered glyph */
39 #define AF_SCRIPT_NONE 0x7F
40  /* if this flag is set, we have an ASCII digit */
41 #define AF_DIGIT 0x80
42 
43  /* `increase-x-height' property */
44 #define AF_PROP_INCREASE_X_HEIGHT_MIN 6
45 #define AF_PROP_INCREASE_X_HEIGHT_MAX 0
46 
47 
48  /************************************************************************/
49  /************************************************************************/
50  /***** *****/
51  /***** F A C E G L O B A L S *****/
52  /***** *****/
53  /************************************************************************/
54  /************************************************************************/
55 
56 
57  /*
58  * Note that glyph_scripts[] is used to map each glyph into
59  * an index into the `af_script_classes' array.
60  *
61  */
62  typedef struct AF_FaceGlobalsRec_
63  {
65  FT_Long glyph_count; /* same as face->num_glyphs */
67 
68  /* per-face auto-hinter properties */
70 
72 
73  AF_Module module; /* to access global properties */
74 
76 
77 
78  /*
79  * model the global hints data for a given face, decomposed into
80  * script-specific items
81  */
82 
85  AF_FaceGlobals *aglobals,
86  AF_Module module );
87 
90  FT_UInt gindex,
91  FT_UInt options,
92  AF_ScriptMetrics *ametrics );
93 
94  FT_LOCAL( void )
96 
99  FT_UInt gindex );
100 
101  /* */
102 
103 
105 
106 #endif /* __AFGLOBAL_H__ */
107 
108 
109 /* END */
af_face_globals_get_metrics(AF_FaceGlobals globals, FT_UInt gindex, FT_UInt options, AF_ScriptMetrics *ametrics)
Definition: afglobal.c:229
int FT_Error
Definition: fttypes.h:296
signed long FT_Long
Definition: fttypes.h:238
typedefFT_BEGIN_HEADER struct AF_ModuleRec_ * AF_Module
Definition: afloader.h:28
#define FT_END_HEADER
Definition: ftheader.h:54
AF_Module module
Definition: afglobal.h:73
af_face_globals_free(AF_FaceGlobals globals)
Definition: afglobal.c:195
FT_BEGIN_HEADER typedef unsigned char FT_Bool
Definition: fttypes.h:104
FT_UInt increase_x_height
Definition: afglobal.h:69
GLenum GLuint GLint GLenum face
unsigned char FT_Byte
Definition: fttypes.h:150
#define FT_BEGIN_HEADER
Definition: ftheader.h:36
af_face_globals_new(FT_Face face, AF_FaceGlobals *aglobals, AF_Module module)
Definition: afglobal.c:159
#define FT_LOCAL(x)
Definition: ftconfig.h:235
struct AF_FaceGlobalsRec_ AF_FaceGlobalsRec
unsigned int FT_UInt
Definition: fttypes.h:227
FT_Byte * glyph_scripts
Definition: afglobal.h:66
GLsizei GLenum const GLvoid GLuint GLsizei GLfloat * metrics
FT_Long glyph_count
Definition: afglobal.h:65
af_face_globals_is_digit(AF_FaceGlobals globals, FT_UInt gindex)
Definition: afglobal.c:294
#define FT_LOCAL_DEF(x)
Definition: ftconfig.h:236