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

Go to the source code of this file.

Classes

struct  PSH_HintRec_
struct  PSH_ZoneRec_
struct  PSH_Hint_TableRec_
struct  PSH_PointRec_
struct  PSH_ContourRec_
struct  PSH_GlyphRec_

Macros

#define PSH_HINT_GHOST   PS_HINT_FLAG_GHOST
#define PSH_HINT_BOTTOM   PS_HINT_FLAG_BOTTOM
#define PSH_HINT_ACTIVE   4U
#define PSH_HINT_FITTED   8U
#define psh_hint_is_active(x)
#define psh_hint_is_ghost(x)
#define psh_hint_is_fitted(x)
#define psh_hint_activate(x)
#define psh_hint_deactivate(x)
#define psh_hint_set_fitted(x)
#define PSH_POINT_OFF   1U
#define PSH_POINT_SMOOTH   2U
#define PSH_POINT_INFLEX   4U
#define psh_point_is_smooth(p)
#define psh_point_is_off(p)
#define psh_point_is_inflex(p)
#define psh_point_set_smooth(p)
#define psh_point_set_off(p)
#define psh_point_set_inflex(p)
#define PSH_POINT_STRONG   16U
#define PSH_POINT_FITTED   32U
#define PSH_POINT_EXTREMUM   64U
#define PSH_POINT_POSITIVE   128U
#define PSH_POINT_NEGATIVE   256U
#define PSH_POINT_EDGE_MIN   512U
#define PSH_POINT_EDGE_MAX   1024U
#define psh_point_is_strong(p)
#define psh_point_is_fitted(p)
#define psh_point_is_extremum(p)
#define psh_point_is_positive(p)
#define psh_point_is_negative(p)
#define psh_point_is_edge_min(p)
#define psh_point_is_edge_max(p)
#define psh_point_set_strong(p)
#define psh_point_set_fitted(p)
#define psh_point_set_extremum(p)
#define psh_point_set_positive(p)
#define psh_point_set_negative(p)
#define psh_point_set_edge_min(p)
#define psh_point_set_edge_max(p)

Typedefs

typedef typedefFT_BEGIN_HEADER struct PSH_HintRec_ * PSH_Hint
typedef struct PSH_HintRec_ PSH_HintRec
typedef struct PSH_ZoneRec_ PSH_ZoneRec
typedef struct PSH_ZoneRec_ * PSH_Zone
typedef struct PSH_Hint_TableRec_ PSH_Hint_TableRec
typedef struct PSH_Hint_TableRec_ * PSH_Hint_Table
typedef struct PSH_PointRec_ * PSH_Point
typedef struct PSH_ContourRec_ * PSH_Contour
typedef enum PSH_Dir_ PSH_Dir
typedef struct PSH_PointRec_ PSH_PointRec
typedef struct PSH_ContourRec_ PSH_ContourRec
typedef struct PSH_GlyphRec_ PSH_GlyphRec
typedef struct PSH_GlyphRec_ * PSH_Glyph

Enumerations

enum  PSH_Dir_ {
  PSH_DIR_NONE = 0 , PSH_DIR_UP = 1 , PSH_DIR_DOWN = 2 , PSH_DIR_VERTICAL = 1 | 2 ,
  PSH_DIR_LEFT = 4 , PSH_DIR_RIGHT = 8 , PSH_DIR_HORIZONTAL = 4 | 8
}

Functions

FT_Error ps_hints_apply (PS_Hints ps_hints, FT_Outline *outline, PSH_Globals globals, FT_Render_Mode hint_mode)

Macro Definition Documentation

◆ psh_hint_activate

#define psh_hint_activate ( x)
Value:
(x)->flags |= PSH_HINT_ACTIVE

Definition at line 49 of file pshalgo.h.

◆ PSH_HINT_ACTIVE

#define PSH_HINT_ACTIVE   4U

Definition at line 41 of file pshalgo.h.

◆ PSH_HINT_BOTTOM

#define PSH_HINT_BOTTOM   PS_HINT_FLAG_BOTTOM

Definition at line 40 of file pshalgo.h.

◆ psh_hint_deactivate

#define psh_hint_deactivate ( x)
Value:
(x)->flags &= ~PSH_HINT_ACTIVE

Definition at line 50 of file pshalgo.h.

◆ PSH_HINT_FITTED

#define PSH_HINT_FITTED   8U

Definition at line 42 of file pshalgo.h.

◆ PSH_HINT_GHOST

#define PSH_HINT_GHOST   PS_HINT_FLAG_GHOST

Definition at line 39 of file pshalgo.h.

◆ psh_hint_is_active

#define psh_hint_is_active ( x)
Value:
( ( (x)->flags & PSH_HINT_ACTIVE ) != 0 )

Definition at line 45 of file pshalgo.h.

◆ psh_hint_is_fitted

#define psh_hint_is_fitted ( x)
Value:
( ( (x)->flags & PSH_HINT_FITTED ) != 0 )

Definition at line 47 of file pshalgo.h.

◆ psh_hint_is_ghost

#define psh_hint_is_ghost ( x)
Value:
( ( (x)->flags & PSH_HINT_GHOST ) != 0 )

Definition at line 46 of file pshalgo.h.

◆ psh_hint_set_fitted

#define psh_hint_set_fitted ( x)
Value:
(x)->flags |= PSH_HINT_FITTED

Definition at line 51 of file pshalgo.h.

◆ PSH_POINT_EDGE_MAX

#define PSH_POINT_EDGE_MAX   1024U

Definition at line 136 of file pshalgo.h.

◆ PSH_POINT_EDGE_MIN

#define PSH_POINT_EDGE_MIN   512U

Definition at line 135 of file pshalgo.h.

◆ PSH_POINT_EXTREMUM

#define PSH_POINT_EXTREMUM   64U

Definition at line 132 of file pshalgo.h.

◆ PSH_POINT_FITTED

#define PSH_POINT_FITTED   32U

Definition at line 131 of file pshalgo.h.

◆ PSH_POINT_INFLEX

#define PSH_POINT_INFLEX   4U

Definition at line 117 of file pshalgo.h.

◆ psh_point_is_edge_max

#define psh_point_is_edge_max ( p)
Value:
( (p)->flags2 & PSH_POINT_EDGE_MAX )

Definition at line 145 of file pshalgo.h.

◆ psh_point_is_edge_min

#define psh_point_is_edge_min ( p)
Value:
( (p)->flags2 & PSH_POINT_EDGE_MIN )

Definition at line 144 of file pshalgo.h.

◆ psh_point_is_extremum

#define psh_point_is_extremum ( p)
Value:
( (p)->flags2 & PSH_POINT_EXTREMUM )

Definition at line 141 of file pshalgo.h.

◆ psh_point_is_fitted

#define psh_point_is_fitted ( p)
Value:
( (p)->flags2 & PSH_POINT_FITTED )

Definition at line 140 of file pshalgo.h.

◆ psh_point_is_inflex

#define psh_point_is_inflex ( p)
Value:
( (p)->flags & PSH_POINT_INFLEX )

Definition at line 122 of file pshalgo.h.

◆ psh_point_is_negative

#define psh_point_is_negative ( p)
Value:
( (p)->flags2 & PSH_POINT_NEGATIVE )

Definition at line 143 of file pshalgo.h.

◆ psh_point_is_off

#define psh_point_is_off ( p)
Value:
( (p)->flags & PSH_POINT_OFF )

Definition at line 121 of file pshalgo.h.

◆ psh_point_is_positive

#define psh_point_is_positive ( p)
Value:
( (p)->flags2 & PSH_POINT_POSITIVE )

Definition at line 142 of file pshalgo.h.

◆ psh_point_is_smooth

#define psh_point_is_smooth ( p)
Value:
( (p)->flags & PSH_POINT_SMOOTH )

Definition at line 120 of file pshalgo.h.

◆ psh_point_is_strong

#define psh_point_is_strong ( p)
Value:
( (p)->flags2 & PSH_POINT_STRONG )

Definition at line 139 of file pshalgo.h.

◆ PSH_POINT_NEGATIVE

#define PSH_POINT_NEGATIVE   256U

Definition at line 134 of file pshalgo.h.

◆ PSH_POINT_OFF

#define PSH_POINT_OFF   1U

Definition at line 115 of file pshalgo.h.

◆ PSH_POINT_POSITIVE

#define PSH_POINT_POSITIVE   128U

Definition at line 133 of file pshalgo.h.

◆ psh_point_set_edge_max

#define psh_point_set_edge_max ( p)
Value:
(p)->flags2 |= PSH_POINT_EDGE_MAX

Definition at line 153 of file pshalgo.h.

◆ psh_point_set_edge_min

#define psh_point_set_edge_min ( p)
Value:
(p)->flags2 |= PSH_POINT_EDGE_MIN

Definition at line 152 of file pshalgo.h.

◆ psh_point_set_extremum

#define psh_point_set_extremum ( p)
Value:
(p)->flags2 |= PSH_POINT_EXTREMUM

Definition at line 149 of file pshalgo.h.

◆ psh_point_set_fitted

#define psh_point_set_fitted ( p)
Value:
(p)->flags2 |= PSH_POINT_FITTED

Definition at line 148 of file pshalgo.h.

◆ psh_point_set_inflex

#define psh_point_set_inflex ( p)
Value:
(p)->flags |= PSH_POINT_INFLEX

Definition at line 126 of file pshalgo.h.

◆ psh_point_set_negative

#define psh_point_set_negative ( p)
Value:
(p)->flags2 |= PSH_POINT_NEGATIVE

Definition at line 151 of file pshalgo.h.

◆ psh_point_set_off

#define psh_point_set_off ( p)
Value:
(p)->flags |= PSH_POINT_OFF

Definition at line 125 of file pshalgo.h.

◆ psh_point_set_positive

#define psh_point_set_positive ( p)
Value:
(p)->flags2 |= PSH_POINT_POSITIVE

Definition at line 150 of file pshalgo.h.

◆ psh_point_set_smooth

#define psh_point_set_smooth ( p)
Value:
(p)->flags |= PSH_POINT_SMOOTH

Definition at line 124 of file pshalgo.h.

◆ psh_point_set_strong

#define psh_point_set_strong ( p)
Value:
(p)->flags2 |= PSH_POINT_STRONG

Definition at line 147 of file pshalgo.h.

◆ PSH_POINT_SMOOTH

#define PSH_POINT_SMOOTH   2U

Definition at line 116 of file pshalgo.h.

◆ PSH_POINT_STRONG

#define PSH_POINT_STRONG   16U

Definition at line 130 of file pshalgo.h.

Typedef Documentation

◆ PSH_Contour

typedef struct PSH_ContourRec_* PSH_Contour

Definition at line 98 of file pshalgo.h.

◆ PSH_Hint

typedef typedefFT_BEGIN_HEADER struct PSH_HintRec_* PSH_Hint

Definition at line 35 of file pshalgo.h.

◆ PSH_Point

typedef struct PSH_PointRec_* PSH_Point

Definition at line 97 of file pshalgo.h.

Enumeration Type Documentation

◆ PSH_Dir_

enum PSH_Dir_

Definition at line 100 of file pshalgo.h.

Function Documentation

◆ ps_hints_apply()

FT_Error ps_hints_apply ( PS_Hints ps_hints,
FT_Outline * outline,
PSH_Globals globals,
FT_Render_Mode hint_mode )
extern

Definition at line 2063 of file pshalgo.c.