QtBase  v6.3.1
Classes | Macros | Typedefs | Enumerations | Functions
aftypes.h File Reference
#include <freetype/freetype.h>
#include <freetype/ftoutln.h>
#include <freetype/internal/ftobjs.h>
#include <freetype/internal/ftdebug.h>
#include "afblue.h"
#include "afwrtsys.h"
#include "afscript.h"
#include "afcover.h"
#include "afstyles.h"
Include dependency graph for aftypes.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  AF_WidthRec_
 
struct  AF_ScalerRec_
 
struct  AF_WritingSystemClassRec_
 
struct  AF_Script_UniRangeRec_
 
struct  AF_ScriptClassRec_
 
struct  AF_StyleClassRec_
 
struct  AF_StyleMetricsRec_
 

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_FLAG_NO_HORIZONTAL   1U /* disable horizontal hinting */
 
#define AF_SCALER_FLAG_NO_VERTICAL   2U /* disable vertical hinting */
 
#define AF_SCALER_FLAG_NO_ADVANCE   4U /* disable advance hinting */
 
#define AF_SCALER_FLAG_NO_WARPER   8U /* disable warper */
 
#define AF_SCALER_EQUAL_SCALES(a, b)
 
#define AFWRTSYS_H_   /* don't load header files */
 
#define WRITING_SYSTEM(ws, WS)    AF_WRITING_SYSTEM_ ## WS,
 
#define SCRIPT(s, S, d, h, H, ss)    AF_SCRIPT_ ## S,
 
#define AF_UNIRANGE_REC(a, b)   { (FT_UInt32)(a), (FT_UInt32)(b) }
 
#define COVERAGE(name, NAME, description, tag1, tag2, tag3, tag4)    AF_COVERAGE_ ## NAME,
 
#define STYLE(s, S, d, ws, sc, ss, c)    AF_STYLE_ ## S,
 
#define AF_HINTING_BOTTOM_TO_TOP   0
 
#define AF_HINTING_TOP_TO_BOTTOM   1
 
#define AF_DECLARE_WRITING_SYSTEM_CLASS(writing_system_class)
 
#define AF_DEFINE_WRITING_SYSTEM_CLASS( writing_system_class, system, m_size, m_init, m_scale, m_done, m_stdw, h_init, h_apply)
 
#define AF_DECLARE_SCRIPT_CLASS(script_class)
 
#define AF_DEFINE_SCRIPT_CLASS( script_class, script, ranges, nonbase_ranges, top_to_bottom, std_charstring)
 
#define AF_DECLARE_STYLE_CLASS(style_class)
 
#define AF_DEFINE_STYLE_CLASS( style_class, style, writing_system, script, blue_stringset, coverage)
 

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 struct AF_ScalerRec_ AF_ScalerRec
 
typedef struct AF_ScalerRec_AF_Scaler
 
typedef struct AF_StyleMetricsRec_AF_StyleMetrics
 
typedef FT_Error(* AF_WritingSystem_InitMetricsFunc) (AF_StyleMetrics metrics, FT_Face face)
 
typedef void(* AF_WritingSystem_ScaleMetricsFunc) (AF_StyleMetrics metrics, AF_Scaler scaler)
 
typedef void(* AF_WritingSystem_DoneMetricsFunc) (AF_StyleMetrics metrics)
 
typedef void(* AF_WritingSystem_GetStdWidthsFunc) (AF_StyleMetrics metrics, FT_Pos *stdHW, FT_Pos *stdVW)
 
typedef FT_Error(* AF_WritingSystem_InitHintsFunc) (AF_GlyphHints hints, AF_StyleMetrics metrics)
 
typedef FT_Error(* AF_WritingSystem_ApplyHintsFunc) (FT_UInt glyph_index, AF_GlyphHints hints, FT_Outline *outline, AF_StyleMetrics metrics)
 
typedef enum AF_WritingSystem_ AF_WritingSystem
 
typedef struct AF_WritingSystemClassRec_ AF_WritingSystemClassRec
 
typedef const AF_WritingSystemClassRecAF_WritingSystemClass
 
typedef enum AF_Script_ AF_Script
 
typedef struct AF_Script_UniRangeRec_ AF_Script_UniRangeRec
 
typedef const AF_Script_UniRangeRecAF_Script_UniRange
 
typedef struct AF_ScriptClassRec_ AF_ScriptClassRec
 
typedef const AF_ScriptClassRecAF_ScriptClass
 
typedef enum AF_Coverage_ AF_Coverage
 
typedef enum AF_Style_ AF_Style
 
typedef struct AF_StyleClassRec_ AF_StyleClassRec
 
typedef const AF_StyleClassRecAF_StyleClass
 
typedef struct AF_FaceGlobalsRec_AF_FaceGlobals
 
typedef struct AF_StyleMetricsRec_ AF_StyleMetricsRec
 

Enumerations

enum  AF_WritingSystem_ { AF_WRITING_SYSTEM_MAX }
 
enum  AF_Script_ { AF_SCRIPT_MAX }
 
enum  AF_Coverage_ { AF_COVERAGE_DEFAULT }
 
enum  AF_Style_ { AF_STYLE_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); \
while ( _delta <= -AF_ANGLE_PI ) \
_delta += AF_ANGLE_2PI; \
while ( _delta > AF_ANGLE_PI ) \
_delta -= AF_ANGLE_2PI; \
\
result = _delta; \
FT_END_STMNT
#define AF_ANGLE_2PI
Definition: aftypes.h:113
#define AF_ANGLE_PI
Definition: aftypes.h:112
while(!queue.isEmpty()) cout<< queue.dequeue()<< endl
angle2
Definition: cordic.py:18

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 at line 521 of file aftypes.h.

◆ AF_DECLARE_STYLE_CLASS

#define AF_DECLARE_STYLE_CLASS (   style_class)
Value:
FT_CALLBACK_TABLE const AF_StyleClassRec \
style_class;

Definition at line 543 of file aftypes.h.

◆ AF_DECLARE_WRITING_SYSTEM_CLASS

#define AF_DECLARE_WRITING_SYSTEM_CLASS (   writing_system_class)
Value:
FT_CALLBACK_TABLE const AF_WritingSystemClassRec \
writing_system_class;

Definition at line 490 of file aftypes.h.

◆ AF_DEFINE_SCRIPT_CLASS

#define AF_DEFINE_SCRIPT_CLASS (   script_class,
  script,
  ranges,
  nonbase_ranges,
  top_to_bottom,
  std_charstring 
)
Value:
FT_CALLBACK_TABLE_DEF \
const AF_ScriptClassRec script_class = \
{ \
script, \
ranges, \
nonbase_ranges, \
top_to_bottom, \
std_charstring, \
};

Definition at line 525 of file aftypes.h.

◆ AF_DEFINE_STYLE_CLASS

#define AF_DEFINE_STYLE_CLASS (   style_class,
  style,
  writing_system,
  script,
  blue_stringset,
  coverage 
)
Value:
FT_CALLBACK_TABLE_DEF \
const AF_StyleClassRec style_class = \
{ \
style, \
writing_system, \
script, \
blue_stringset, \
coverage \
};

Definition at line 547 of file aftypes.h.

◆ AF_DEFINE_WRITING_SYSTEM_CLASS

#define AF_DEFINE_WRITING_SYSTEM_CLASS (   writing_system_class,
  system,
  m_size,
  m_init,
  m_scale,
  m_done,
  m_stdw,
  h_init,
  h_apply 
)
Value:
FT_CALLBACK_TABLE_DEF \
const AF_WritingSystemClassRec writing_system_class = \
{ \
system, \
\
m_size, \
\
m_init, \
m_scale, \
m_done, \
m_stdw, \
\
h_init, \
h_apply \
};

Definition at line 494 of file aftypes.h.

◆ AF_HINTING_BOTTOM_TO_TOP

#define AF_HINTING_BOTTOM_TO_TOP   0

Definition at line 485 of file aftypes.h.

◆ AF_HINTING_TOP_TO_BOTTOM

#define AF_HINTING_TOP_TO_BOTTOM   1

Definition at line 486 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 b
GLboolean GLboolean GLboolean GLboolean a
[7]

Definition at line 191 of file aftypes.h.

◆ AF_SCALER_FLAG_NO_ADVANCE

#define AF_SCALER_FLAG_NO_ADVANCE   4U /* disable advance hinting */

Definition at line 174 of file aftypes.h.

◆ AF_SCALER_FLAG_NO_HORIZONTAL

#define AF_SCALER_FLAG_NO_HORIZONTAL   1U /* disable horizontal hinting */

Definition at line 172 of file aftypes.h.

◆ AF_SCALER_FLAG_NO_VERTICAL

#define AF_SCALER_FLAG_NO_VERTICAL   2U /* disable vertical hinting */

Definition at line 173 of file aftypes.h.

◆ AF_SCALER_FLAG_NO_WARPER

#define AF_SCALER_FLAG_NO_WARPER   8U /* disable warper */

Definition at line 175 of file aftypes.h.

◆ AF_UNIRANGE_REC

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

Definition at line 334 of file aftypes.h.

◆ AFWRTSYS_H_

#define AFWRTSYS_H_   /* don't load header files */

Definition at line 259 of file aftypes.h.

◆ COVERAGE

#define COVERAGE (   name,
  NAME,
  description,
  tag1,
  tag2,
  tag3,
  tag4 
)     AF_COVERAGE_ ## NAME,

Definition at line 404 of file aftypes.h.

◆ SCRIPT

#define SCRIPT (   s,
  S,
  d,
  h,
  H,
  ss 
)     AF_SCRIPT_ ## S,

Definition at line 313 of file aftypes.h.

◆ STYLE

#define STYLE (   s,
  S,
  d,
  ws,
  sc,
  ss,
  c 
)     AF_STYLE_ ## S,

Definition at line 432 of file aftypes.h.

◆ WRITING_SYSTEM

#define WRITING_SYSTEM (   ws,
  WS 
)     AF_WRITING_SYSTEM_ ## WS,

Definition at line 261 of file aftypes.h.

Typedef Documentation

◆ AF_Angle

typedef FT_Int AF_Angle

Definition at line 109 of file aftypes.h.

◆ AF_Coverage

typedef enum AF_Coverage_ AF_Coverage

◆ AF_FaceGlobals

Definition at line 468 of file aftypes.h.

◆ AF_GlyphHints

Definition at line 156 of file aftypes.h.

◆ AF_Scaler

typedef struct AF_ScalerRec_ * AF_Scaler

◆ AF_ScalerRec

typedef struct AF_ScalerRec_ AF_ScalerRec

◆ AF_Script

typedef enum AF_Script_ AF_Script

◆ AF_Script_UniRange

Definition at line 336 of file aftypes.h.

◆ AF_Script_UniRangeRec

◆ AF_ScriptClass

Definition at line 353 of file aftypes.h.

◆ AF_ScriptClassRec

◆ AF_Style

typedef enum AF_Style_ AF_Style

◆ AF_StyleClass

Definition at line 457 of file aftypes.h.

◆ AF_StyleClassRec

◆ AF_StyleMetrics

Definition at line 198 of file aftypes.h.

◆ AF_StyleMetricsRec

◆ AF_Width

◆ AF_WidthRec

◆ AF_WritingSystem

◆ AF_WritingSystem_ApplyHintsFunc

typedef FT_Error(* AF_WritingSystem_ApplyHintsFunc) (FT_UInt glyph_index, AF_GlyphHints hints, FT_Outline *outline, AF_StyleMetrics metrics)

Definition at line 225 of file aftypes.h.

◆ AF_WritingSystem_DoneMetricsFunc

typedef void(* AF_WritingSystem_DoneMetricsFunc) (AF_StyleMetrics metrics)

Definition at line 212 of file aftypes.h.

◆ AF_WritingSystem_GetStdWidthsFunc

typedef void(* AF_WritingSystem_GetStdWidthsFunc) (AF_StyleMetrics metrics, FT_Pos *stdHW, FT_Pos *stdVW)

Definition at line 215 of file aftypes.h.

◆ AF_WritingSystem_InitHintsFunc

typedef FT_Error(* AF_WritingSystem_InitHintsFunc) (AF_GlyphHints hints, AF_StyleMetrics metrics)

Definition at line 221 of file aftypes.h.

◆ AF_WritingSystem_InitMetricsFunc

typedef FT_Error(* AF_WritingSystem_InitMetricsFunc) (AF_StyleMetrics metrics, FT_Face face)

Definition at line 204 of file aftypes.h.

◆ AF_WritingSystem_ScaleMetricsFunc

typedef void(* AF_WritingSystem_ScaleMetricsFunc) (AF_StyleMetrics metrics, AF_Scaler scaler)

Definition at line 208 of file aftypes.h.

◆ AF_WritingSystemClass

Definition at line 292 of file aftypes.h.

◆ AF_WritingSystemClassRec

Enumeration Type Documentation

◆ AF_Coverage_

Enumerator
AF_COVERAGE_DEFAULT 

Definition at line 409 of file aftypes.h.

◆ AF_Script_

enum AF_Script_
Enumerator
AF_SCRIPT_MAX 

Definition at line 317 of file aftypes.h.

◆ AF_Style_

enum AF_Style_
Enumerator
AF_STYLE_MAX 

Definition at line 436 of file aftypes.h.

◆ AF_WritingSystem_

Enumerator
AF_WRITING_SYSTEM_MAX 

Definition at line 265 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 210 of file afangles.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ af_sort_pos()

af_sort_pos ( FT_UInt  count,
FT_Pos table 
)

Definition at line 187 of file afangles.c.

Here is the call graph for this function: