sdk-world v2026.11.05
PS2 SDK - world tier (copyleft-allowed, non-essential packages)
Loading...
Searching...
No Matches
afhints.h File Reference
#include "aftypes.h"

Go to the source code of this file.

Classes

struct  AF_PointRec_
struct  AF_SegmentRec_
struct  AF_EdgeRec_
struct  AF_AxisHintsRec_
struct  AF_GlyphHintsRec_

Macros

#define AF_FLAG_NONE   0
#define AF_FLAG_CONIC   ( 1U << 0 )
#define AF_FLAG_CUBIC   ( 1U << 1 )
#define AF_FLAG_CONTROL   ( AF_FLAG_CONIC | AF_FLAG_CUBIC )
#define AF_FLAG_TOUCH_X   ( 1U << 2 )
#define AF_FLAG_TOUCH_Y   ( 1U << 3 )
#define AF_FLAG_WEAK_INTERPOLATION   ( 1U << 4 )
#define AF_FLAG_NEAR   ( 1U << 5 )
#define AF_FLAG_IGNORE   ( 1U << 6 )
#define AF_EDGE_NORMAL   0
#define AF_EDGE_ROUND   ( 1U << 0 )
#define AF_EDGE_SERIF   ( 1U << 1 )
#define AF_EDGE_DONE   ( 1U << 2 )
#define AF_EDGE_NEUTRAL   ( 1U << 3 )
#define AF_EDGE_NO_BLUE   ( 1U << 4 )
#define AF_SEGMENTS_EMBEDDED   18
#define AF_EDGES_EMBEDDED   12
#define AF_POINTS_EMBEDDED   96
#define AF_CONTOURS_EMBEDDED   8
#define AF_HINTS_TEST_SCALER(h, f)
#define AF_HINTS_TEST_OTHER(h, f)
#define AF_HINTS_DO_HORIZONTAL(h)
#define AF_HINTS_DO_VERTICAL(h)
#define AF_HINTS_DO_BLUES(h)
#define AF_HINTS_DO_ADVANCE(h)
#define AF_SEGMENT_LEN(seg)
#define AF_SEGMENT_DIST(seg1, seg2)

Typedefs

typedef FT_BEGIN_HEADER enum AF_Dimension_ AF_Dimension
typedef enum AF_Direction_ AF_Direction
typedef struct AF_PointRec_ * AF_Point
typedef struct AF_SegmentRec_ * AF_Segment
typedef struct AF_EdgeRec_ * AF_Edge
typedef struct AF_PointRec_ AF_PointRec
typedef struct AF_SegmentRec_ AF_SegmentRec
typedef struct AF_EdgeRec_ AF_EdgeRec
typedef struct AF_AxisHintsRec_ AF_AxisHintsRec
typedef struct AF_AxisHintsRec_ * AF_AxisHints
typedef struct AF_GlyphHintsRec_ AF_GlyphHintsRec

Enumerations

enum  AF_Dimension_ { AF_DIMENSION_HORZ = 0 , AF_DIMENSION_VERT = 1 , AF_DIMENSION_MAX }
enum  AF_Direction_ {
  AF_DIR_NONE = 4 , AF_DIR_RIGHT = 1 , AF_DIR_LEFT = -1 , AF_DIR_UP = 2 ,
  AF_DIR_DOWN = -2
}

Functions

 af_direction_compute (FT_Pos dx, FT_Pos dy)
 af_axis_hints_new_segment (AF_AxisHints axis, FT_Memory memory, AF_Segment *asegment)
 af_axis_hints_new_edge (AF_AxisHints axis, FT_Int fpos, AF_Direction dir, FT_Bool top_to_bottom_hinting, FT_Memory memory, AF_Edge *edge)
 af_glyph_hints_init (AF_GlyphHints hints, FT_Memory memory)
 af_glyph_hints_rescale (AF_GlyphHints hints, AF_StyleMetrics metrics)
 af_glyph_hints_reload (AF_GlyphHints hints, FT_Outline *outline)
 af_glyph_hints_save (AF_GlyphHints hints, FT_Outline *outline)
 af_glyph_hints_align_edge_points (AF_GlyphHints hints, AF_Dimension dim)
 af_glyph_hints_align_strong_points (AF_GlyphHints hints, AF_Dimension dim)
 af_glyph_hints_align_weak_points (AF_GlyphHints hints, AF_Dimension dim)
 af_glyph_hints_done (AF_GlyphHints hints)

Macro Definition Documentation

◆ AF_CONTOURS_EMBEDDED

#define AF_CONTOURS_EMBEDDED   8

Definition at line 342 of file afhints.h.

◆ AF_EDGE_DONE

#define AF_EDGE_DONE   ( 1U << 2 )

Definition at line 237 of file afhints.h.

◆ AF_EDGE_NEUTRAL

#define AF_EDGE_NEUTRAL   ( 1U << 3 )

Definition at line 238 of file afhints.h.

◆ AF_EDGE_NO_BLUE

#define AF_EDGE_NO_BLUE   ( 1U << 4 )

Definition at line 239 of file afhints.h.

◆ AF_EDGE_NORMAL

#define AF_EDGE_NORMAL   0

Definition at line 234 of file afhints.h.

◆ AF_EDGE_ROUND

#define AF_EDGE_ROUND   ( 1U << 0 )

Definition at line 235 of file afhints.h.

◆ AF_EDGE_SERIF

#define AF_EDGE_SERIF   ( 1U << 1 )

Definition at line 236 of file afhints.h.

◆ AF_EDGES_EMBEDDED

#define AF_EDGES_EMBEDDED   12

Definition at line 316 of file afhints.h.

◆ AF_FLAG_CONIC

#define AF_FLAG_CONIC   ( 1U << 0 )

Definition at line 215 of file afhints.h.

◆ AF_FLAG_CONTROL

#define AF_FLAG_CONTROL   ( AF_FLAG_CONIC | AF_FLAG_CUBIC )

Definition at line 217 of file afhints.h.

◆ AF_FLAG_CUBIC

#define AF_FLAG_CUBIC   ( 1U << 1 )

Definition at line 216 of file afhints.h.

◆ AF_FLAG_IGNORE

#define AF_FLAG_IGNORE   ( 1U << 6 )

Definition at line 230 of file afhints.h.

◆ AF_FLAG_NEAR

#define AF_FLAG_NEAR   ( 1U << 5 )

Definition at line 227 of file afhints.h.

◆ AF_FLAG_NONE

#define AF_FLAG_NONE   0

Definition at line 212 of file afhints.h.

◆ AF_FLAG_TOUCH_X

#define AF_FLAG_TOUCH_X   ( 1U << 2 )

Definition at line 220 of file afhints.h.

◆ AF_FLAG_TOUCH_Y

#define AF_FLAG_TOUCH_Y   ( 1U << 3 )

Definition at line 221 of file afhints.h.

◆ AF_FLAG_WEAK_INTERPOLATION

#define AF_FLAG_WEAK_INTERPOLATION   ( 1U << 4 )

Definition at line 224 of file afhints.h.

◆ AF_HINTS_DO_ADVANCE

#define AF_HINTS_DO_ADVANCE ( h)
Value:
!AF_HINTS_TEST_SCALER( h, AF_SCALER_FLAG_NO_ADVANCE )

Definition at line 413 of file afhints.h.

◆ AF_HINTS_DO_BLUES

#define AF_HINTS_DO_BLUES ( h)
Value:
1

Definition at line 408 of file afhints.h.

◆ AF_HINTS_DO_HORIZONTAL

#define AF_HINTS_DO_HORIZONTAL ( h)
Value:
!AF_HINTS_TEST_SCALER( h, AF_SCALER_FLAG_NO_HORIZONTAL )

Definition at line 402 of file afhints.h.

◆ AF_HINTS_DO_VERTICAL

#define AF_HINTS_DO_VERTICAL ( h)
Value:
!AF_HINTS_TEST_SCALER( h, AF_SCALER_FLAG_NO_VERTICAL )

Definition at line 405 of file afhints.h.

◆ AF_HINTS_TEST_OTHER

#define AF_HINTS_TEST_OTHER ( h,
f )
Value:
( (h)->other_flags & (f) )

Definition at line 385 of file afhints.h.

◆ AF_HINTS_TEST_SCALER

#define AF_HINTS_TEST_SCALER ( h,
f )
Value:
( (h)->scaler_flags & (f) )

Definition at line 384 of file afhints.h.

◆ AF_POINTS_EMBEDDED

#define AF_POINTS_EMBEDDED   96

Definition at line 341 of file afhints.h.

◆ AF_SEGMENT_DIST

#define AF_SEGMENT_DIST ( seg1,
seg2 )
Value:
( ( (seg1)->pos > (seg2)->pos ) \
? (seg1)->pos - (seg2)->pos \
: (seg2)->pos - (seg1)->pos )

Definition at line 470 of file afhints.h.

◆ AF_SEGMENT_LEN

#define AF_SEGMENT_LEN ( seg)
Value:
( (seg)->max_coord - (seg)->min_coord )

Definition at line 468 of file afhints.h.

◆ AF_SEGMENTS_EMBEDDED

#define AF_SEGMENTS_EMBEDDED   18

Definition at line 315 of file afhints.h.

Typedef Documentation

◆ AF_Edge

typedef struct AF_EdgeRec_* AF_Edge

Definition at line 244 of file afhints.h.

◆ AF_Point

typedef struct AF_PointRec_* AF_Point

Definition at line 242 of file afhints.h.

◆ AF_Segment

typedef struct AF_SegmentRec_* AF_Segment

Definition at line 243 of file afhints.h.

Enumeration Type Documentation

◆ AF_Dimension_

enum AF_Dimension_

Definition at line 35 of file afhints.h.

◆ AF_Direction_

enum AF_Direction_

Definition at line 49 of file afhints.h.

Function Documentation

◆ af_axis_hints_new_edge()

af_axis_hints_new_edge ( AF_AxisHints axis,
FT_Int fpos,
AF_Direction dir,
FT_Bool top_to_bottom_hinting,
FT_Memory memory,
AF_Edge * edge )

Definition at line 197 of file afhints.c.

◆ af_axis_hints_new_segment()

af_axis_hints_new_segment ( AF_AxisHints axis,
FT_Memory memory,
AF_Segment * asegment )

Definition at line 136 of file afhints.c.

◆ af_direction_compute()

af_direction_compute ( FT_Pos dx,
FT_Pos dy )

Definition at line 751 of file afhints.c.

◆ af_glyph_hints_align_edge_points()

af_glyph_hints_align_edge_points ( AF_GlyphHints hints,
AF_Dimension dim )

Definition at line 1339 of file afhints.c.

◆ af_glyph_hints_align_strong_points()

af_glyph_hints_align_strong_points ( AF_GlyphHints hints,
AF_Dimension dim )

Definition at line 1414 of file afhints.c.

◆ af_glyph_hints_align_weak_points()

af_glyph_hints_align_weak_points ( AF_GlyphHints hints,
AF_Dimension dim )

Definition at line 1688 of file afhints.c.

◆ af_glyph_hints_done()

af_glyph_hints_done ( AF_GlyphHints hints)

Definition at line 810 of file afhints.c.

◆ af_glyph_hints_init()

af_glyph_hints_init ( AF_GlyphHints hints,
FT_Memory memory )

Definition at line 800 of file afhints.c.

◆ af_glyph_hints_reload()

af_glyph_hints_reload ( AF_GlyphHints hints,
FT_Outline * outline )

Definition at line 874 of file afhints.c.

◆ af_glyph_hints_rescale()

af_glyph_hints_rescale ( AF_GlyphHints hints,
AF_StyleMetrics metrics )

Definition at line 862 of file afhints.c.

◆ af_glyph_hints_save()

af_glyph_hints_save ( AF_GlyphHints hints,
FT_Outline * outline )

Definition at line 1304 of file afhints.c.