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]
Macros | Typedefs | Functions
cf2hints.c File Reference
#include "cf2ft.h"
#include "cf2glue.h"
#include "cf2font.h"
#include "cf2hints.h"
#include "cf2intrp.h"

Go to the source code of this file.

Macros

#define FT_COMPONENT   trace_cf2hints
 
#define cf2_perp(a, b)   ( FT_MulFix( a.x, b.y ) - FT_MulFix( a.y, b.x ) )
 
#define CF2_CS_SCALE(x)   ( ( (x) + 0x10 ) >> 5 )
 

Typedefs

typedef struct CF2_HintMoveRec_ CF2_HintMoveRec
 
typedef struct CF2_HintMoveRec_ * CF2_HintMove
 

Functions

 cf2_hint_isValid (const CF2_Hint hint)
 
 cf2_hint_isTop (const CF2_Hint hint)
 
 cf2_hint_isBottom (const CF2_Hint hint)
 
 cf2_hint_lock (CF2_Hint hint)
 
 cf2_hintmap_init (CF2_HintMap hintmap, CF2_Font font, CF2_HintMap initialMap, CF2_ArrStack hintMoves, CF2_Fixed scale)
 
 cf2_hintmap_build (CF2_HintMap hintmap, CF2_ArrStack hStemHintArray, CF2_ArrStack vStemHintArray, CF2_HintMask hintMask, CF2_Fixed hintOrigin, FT_Bool initialMap)
 
 cf2_glyphpath_init (CF2_GlyphPath glyphpath, CF2_Font font, CF2_OutlineCallbacks callbacks, CF2_Fixed scaleY, CF2_ArrStack hStemHintArray, CF2_ArrStack vStemHintArray, CF2_HintMask hintMask, CF2_Fixed hintOriginY, const CF2_Blues blues, const FT_Vector *fractionalTranslation)
 
 cf2_glyphpath_finalize (CF2_GlyphPath glyphpath)
 
 cf2_glyphpath_moveTo (CF2_GlyphPath glyphpath, CF2_Fixed x, CF2_Fixed y)
 
 cf2_glyphpath_lineTo (CF2_GlyphPath glyphpath, CF2_Fixed x, CF2_Fixed y)
 
 cf2_glyphpath_curveTo (CF2_GlyphPath glyphpath, CF2_Fixed x1, CF2_Fixed y1, CF2_Fixed x2, CF2_Fixed y2, CF2_Fixed x3, CF2_Fixed y3)
 
 cf2_glyphpath_closeOpenPath (CF2_GlyphPath glyphpath)
 

Macro Definition Documentation

◆ CF2_CS_SCALE

#define CF2_CS_SCALE (   x)    ( ( (x) + 0x10 ) >> 5 )

◆ cf2_perp

#define cf2_perp (   a,
  b 
)    ( FT_MulFix( a.x, b.y ) - FT_MulFix( a.y, b.x ) )

◆ FT_COMPONENT

#define FT_COMPONENT   trace_cf2hints

Definition at line 55 of file cf2hints.c.

Typedef Documentation

◆ CF2_HintMove

typedef struct CF2_HintMoveRec_ * CF2_HintMove

◆ CF2_HintMoveRec

typedef struct CF2_HintMoveRec_ CF2_HintMoveRec

Function Documentation

◆ cf2_glyphpath_closeOpenPath()

cf2_glyphpath_closeOpenPath ( CF2_GlyphPath  glyphpath)

Definition at line 1701 of file cf2hints.c.

References FT_ASSERT, and CF2_GlyphPathRec_::pathIsOpen.

Referenced by cf2_glyphpath_moveTo().

◆ cf2_glyphpath_curveTo()

cf2_glyphpath_curveTo ( CF2_GlyphPath  glyphpath,
CF2_Fixed  x1,
CF2_Fixed  y1,
CF2_Fixed  x2,
CF2_Fixed  y2,
CF2_Fixed  x3,
CF2_Fixed  y3 
)

Definition at line 1613 of file cf2hints.c.

References CF2_Fixed.

◆ cf2_glyphpath_finalize()

cf2_glyphpath_finalize ( CF2_GlyphPath  glyphpath)

Definition at line 1042 of file cf2hints.c.

References cf2_arrstack_finalize().

◆ cf2_glyphpath_init()

cf2_glyphpath_init ( CF2_GlyphPath  glyphpath,
CF2_Font  font,
CF2_OutlineCallbacks  callbacks,
CF2_Fixed  scaleY,
CF2_ArrStack  hStemHintArray,
CF2_ArrStack  vStemHintArray,
CF2_HintMask  hintMask,
CF2_Fixed  hintOriginY,
const CF2_Blues  blues,
const FT_Vector fractionalTranslation 
)

◆ cf2_glyphpath_lineTo()

cf2_glyphpath_lineTo ( CF2_GlyphPath  glyphpath,
CF2_Fixed  x,
CF2_Fixed  y 
)

Definition at line 1544 of file cf2hints.c.

References CF2_Fixed, CF2_GlyphPathRec_::currentCS, FT_Vector_::x, and FT_Vector_::y.

◆ cf2_glyphpath_moveTo()

cf2_glyphpath_moveTo ( CF2_GlyphPath  glyphpath,
CF2_Fixed  x,
CF2_Fixed  y 
)

◆ cf2_hint_isBottom()

cf2_hint_isBottom ( const CF2_Hint  hint)

Definition at line 248 of file cf2hints.c.

References CF2_GhostBottom, CF2_PairBottom, CF2_HintRec_::flags, and FT_Bool.

Referenced by cf2_blues_capture().

◆ cf2_hint_isTop()

cf2_hint_isTop ( const CF2_Hint  hint)

Definition at line 240 of file cf2hints.c.

References CF2_GhostTop, CF2_PairTop, CF2_HintRec_::flags, FT_Bool, and FT_LOCAL_DEF.

Referenced by cf2_blues_capture().

◆ cf2_hint_isValid()

cf2_hint_isValid ( const CF2_Hint  hint)

Definition at line 218 of file cf2hints.c.

References CF2_HintRec_::flags, and FT_Bool.

Referenced by cf2_blues_capture().

◆ cf2_hint_lock()

cf2_hint_lock ( CF2_Hint  hint)

Definition at line 270 of file cf2hints.c.

References CF2_Locked, CF2_HintRec_::flags, and FT_LOCAL_DEF.

Referenced by cf2_blues_capture().

◆ cf2_hintmap_build()

cf2_hintmap_build ( CF2_HintMap  hintmap,
CF2_ArrStack  hStemHintArray,
CF2_ArrStack  vStemHintArray,
CF2_HintMask  hintMask,
CF2_Fixed  hintOrigin,
FT_Bool  initialMap 
)

Definition at line 719 of file cf2hints.c.

References CF2_HintMapRec_::font, and i.

◆ cf2_hintmap_init()

cf2_hintmap_init ( CF2_HintMap  hintmap,
CF2_Font  font,
CF2_HintMap  initialMap,
CF2_ArrStack  hintMoves,
CF2_Fixed  scale 
)

Definition at line 277 of file cf2hints.c.

References FT_Bool, FT_ZERO, and CF2_FontRec_::hinted.

Referenced by cf2_glyphpath_init().