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]
Classes | Macros | Typedefs | Enumerations | Functions
aftypes.h File Reference
#include <ft2build.h>

Go to the source code of this file.

Classes

struct  AF_WidthRec_
 
struct  AF_ScalerRec_
 
struct  AF_ScriptMetricsRec_
 
struct  AF_Script_UniRangeRec_
 
struct  AF_ScriptClassRec_
 

Macros

#define AF_ANGLE_PI   256
 
#define AF_ANGLE_2PI   ( AF_ANGLE_PI * 2 )
 
#define AF_ANGLE_PI2   ( AF_ANGLE_PI / 2 )
 
#define AF_ANGLE_PI4   ( AF_ANGLE_PI / 4 )
 
#define AF_ANGLE_DIFF(result, angle1, angle2)
 
#define AF_SCALER_EQUAL_SCALES(a, b)
 
#define AF_UNIRANGE_REC(a, b)   { (FT_UInt32)(a), (FT_UInt32)(b) }
 
#define AF_DECLARE_SCRIPT_CLASS(script_class)
 
#define AF_DEFINE_SCRIPT_CLASS(script_class, script_, ranges, def_char, m_size, m_init, m_scale, m_done, h_init, h_apply)
 

Typedefs

typedef FT_BEGIN_HEADER struct AF_WidthRec_ AF_WidthRec
 
typedef FT_BEGIN_HEADER struct AF_WidthRec_AF_Width
 
typedef FT_Int AF_Angle
 
typedef struct AF_GlyphHintsRec_AF_GlyphHints
 
typedef enum AF_ScalerFlags_ AF_ScalerFlags
 
typedef struct AF_ScalerRec_ AF_ScalerRec
 
typedef struct AF_ScalerRec_AF_Scaler
 
typedef enum AF_Script_ AF_Script
 
typedef struct AF_ScriptClassRec_ constAF_ScriptClass
 
typedef struct AF_FaceGlobalsRec_AF_FaceGlobals
 
typedef struct AF_ScriptMetricsRec_ AF_ScriptMetricsRec
 
typedef struct AF_ScriptMetricsRec_AF_ScriptMetrics
 
typedef FT_Error(* AF_Script_InitMetricsFunc) (AF_ScriptMetrics metrics, FT_Face face)
 
typedef void(* AF_Script_ScaleMetricsFunc) (AF_ScriptMetrics metrics, AF_Scaler scaler)
 
typedef void(* AF_Script_DoneMetricsFunc) (AF_ScriptMetrics metrics)
 
typedef FT_Error(* AF_Script_InitHintsFunc) (AF_GlyphHints hints, AF_ScriptMetrics metrics)
 
typedef void(* AF_Script_ApplyHintsFunc) (AF_GlyphHints hints, FT_Outline *outline, AF_ScriptMetrics metrics)
 
typedef struct AF_Script_UniRangeRec_ AF_Script_UniRangeRec
 
typedef const AF_Script_UniRangeRecAF_Script_UniRange
 
typedef struct AF_ScriptClassRec_ AF_ScriptClassRec
 

Enumerations

enum  AF_ScalerFlags_ { AF_SCALER_FLAG_NO_HORIZONTAL = 1, AF_SCALER_FLAG_NO_VERTICAL = 2, AF_SCALER_FLAG_NO_ADVANCE = 4 }
 
enum  AF_Script_ {
  AF_SCRIPT_DUMMY = 0, AF_SCRIPT_LATIN = 1, AF_SCRIPT_CJK = 2, AF_SCRIPT_INDIC = 3,
  AF_SCRIPT_MAX
}
 

Functions

 af_sort_pos (FT_UInt count, FT_Pos *table)
 
 af_sort_and_quantize_widths (FT_UInt *count, AF_Width widths, FT_Pos threshold)
 

Macro Definition Documentation

◆ AF_ANGLE_2PI

#define AF_ANGLE_2PI   ( AF_ANGLE_PI * 2 )

Definition at line 113 of file aftypes.h.

◆ AF_ANGLE_DIFF

#define AF_ANGLE_DIFF (   result,
  angle1,
  angle2 
)
Value:
FT_BEGIN_STMNT \
AF_Angle _delta = (angle2) - (angle1); \
\
\
_delta %= AF_ANGLE_2PI; \
if ( _delta < 0 ) \
_delta += AF_ANGLE_2PI; \
if ( _delta > AF_ANGLE_PI ) \
_delta -= AF_ANGLE_2PI; \
\
result = _delta; \
FT_END_STMNT
angle2
Definition: cordic.py:18
if(!abbox) return FT_THROW(Invalid_Argument)
#define AF_ANGLE_PI
Definition: aftypes.h:112
#define AF_ANGLE_2PI
Definition: aftypes.h:113

Definition at line 137 of file aftypes.h.

◆ AF_ANGLE_PI

#define AF_ANGLE_PI   256

Definition at line 112 of file aftypes.h.

◆ AF_ANGLE_PI2

#define AF_ANGLE_PI2   ( AF_ANGLE_PI / 2 )

Definition at line 114 of file aftypes.h.

◆ AF_ANGLE_PI4

#define AF_ANGLE_PI4   ( AF_ANGLE_PI / 4 )

Definition at line 115 of file aftypes.h.

◆ AF_DECLARE_SCRIPT_CLASS

#define AF_DECLARE_SCRIPT_CLASS (   script_class)
Value:
FT_CALLBACK_TABLE const AF_ScriptClassRec \
script_class;
#define FT_CALLBACK_TABLE
Definition: ftconfig.h:332

Definition at line 319 of file aftypes.h.

◆ AF_DEFINE_SCRIPT_CLASS

#define AF_DEFINE_SCRIPT_CLASS (   script_class,
  script_,
  ranges,
  def_char,
  m_size,
  m_init,
  m_scale,
  m_done,
  h_init,
  h_apply 
)
Value:
{ \
script_, \
ranges, \
def_char, \
\
m_size, \
\
m_init, \
m_scale, \
m_done, \
\
h_init, \
h_apply \
};
#define FT_CALLBACK_TABLE_DEF
Definition: ftconfig.h:333

Definition at line 323 of file aftypes.h.

◆ AF_SCALER_EQUAL_SCALES

#define AF_SCALER_EQUAL_SCALES (   a,
  b 
)
Value:
( (a)->x_scale == (b)->x_scale && \
(a)->y_scale == (b)->y_scale && \
(a)->x_delta == (b)->x_delta && \
(a)->y_delta == (b)->y_delta )
GLboolean GLboolean GLboolean GLboolean a
GLboolean GLboolean GLboolean b

Definition at line 194 of file aftypes.h.

◆ AF_UNIRANGE_REC

#define AF_UNIRANGE_REC (   a,
  b 
)    { (FT_UInt32)(a), (FT_UInt32)(b) }

Definition at line 294 of file aftypes.h.

Typedef Documentation

◆ AF_Angle

typedef FT_Int AF_Angle

Definition at line 109 of file aftypes.h.

◆ AF_FaceGlobals

Definition at line 249 of file aftypes.h.

◆ AF_GlyphHints

Definition at line 156 of file aftypes.h.

◆ AF_Scaler

typedef struct AF_ScalerRec_ * AF_Scaler

◆ AF_ScalerFlags

◆ AF_ScalerRec

typedef struct AF_ScalerRec_ AF_ScalerRec

◆ AF_Script

typedef enum AF_Script_ AF_Script

◆ AF_Script_ApplyHintsFunc

typedef void(* AF_Script_ApplyHintsFunc) (AF_GlyphHints hints, FT_Outline *outline, AF_ScriptMetrics metrics)

Definition at line 282 of file aftypes.h.

◆ AF_Script_DoneMetricsFunc

typedef void(* AF_Script_DoneMetricsFunc) (AF_ScriptMetrics metrics)

Definition at line 274 of file aftypes.h.

◆ AF_Script_InitHintsFunc

typedef FT_Error(* AF_Script_InitHintsFunc) (AF_GlyphHints hints, AF_ScriptMetrics metrics)

Definition at line 278 of file aftypes.h.

◆ AF_Script_InitMetricsFunc

typedef FT_Error(* AF_Script_InitMetricsFunc) (AF_ScriptMetrics metrics, FT_Face face)

Definition at line 266 of file aftypes.h.

◆ AF_Script_ScaleMetricsFunc

typedef void(* AF_Script_ScaleMetricsFunc) (AF_ScriptMetrics metrics, AF_Scaler scaler)

Definition at line 270 of file aftypes.h.

◆ AF_Script_UniRange

Definition at line 296 of file aftypes.h.

◆ AF_Script_UniRangeRec

◆ AF_ScriptClass

Definition at line 248 of file aftypes.h.

◆ AF_ScriptClassRec

◆ AF_ScriptMetrics

◆ AF_ScriptMetricsRec

◆ AF_Width

◆ AF_WidthRec

Enumeration Type Documentation

◆ AF_ScalerFlags_

Enumerator
AF_SCALER_FLAG_NO_HORIZONTAL 
AF_SCALER_FLAG_NO_VERTICAL 
AF_SCALER_FLAG_NO_ADVANCE 

Definition at line 172 of file aftypes.h.

◆ AF_Script_

enum AF_Script_
Enumerator
AF_SCRIPT_DUMMY 
AF_SCRIPT_LATIN 
AF_SCRIPT_CJK 
AF_SCRIPT_INDIC 
AF_SCRIPT_MAX 

Definition at line 230 of file aftypes.h.

Function Documentation

◆ af_sort_and_quantize_widths()

af_sort_and_quantize_widths ( FT_UInt count,
AF_Width  widths,
FT_Pos  threshold 
)

Definition at line 270 of file afangles.c.

References FT_Pos, and i.

Referenced by af_latin_metrics_init_widths().

◆ af_sort_pos()

af_sort_pos ( FT_UInt  count,
FT_Pos table 
)

Definition at line 247 of file afangles.c.

References FT_LOCAL_DEF, FT_Pos, and i.