sdk-world v2026.11.05
PS2 SDK - world tier (copyleft-allowed, non-essential packages)
Loading...
Searching...
No Matches
aftypes.h File Reference
#include <freetype/freetype.h>
#include <freetype/ftoutln.h>
#include <freetype/internal/fthash.h>
#include <freetype/internal/ftobjs.h>
#include <freetype/internal/ftdebug.h>
#include "afblue.h"
#include "afws-iter.h"
#include "afscript.h"
#include "afcover.h"
#include "afstyles.h"

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_SCALER_FLAG_NO_HORIZONTAL   1U
#define AF_SCALER_FLAG_NO_VERTICAL   2U
#define AF_SCALER_FLAG_NO_ADVANCE   4U
#define AF_SCALER_EQUAL_SCALES(a, b)
#define WRITING_SYSTEM(ws, WS)
#define SCRIPT(s, S, d, h, H, ss)
#define AF_UNIRANGE_REC(a, b)
#define COVERAGE(name, NAME, description, tag1, tag2, tag3, tag4)
#define STYLE(s, S, d, ws, sc, ss, c)
#define STYLE_LATIN(s, S, f, F, ds, df, C)
#define META_STYLE_LATIN(s, S, ds)
#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 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_WritingSystemClassRec * AF_WritingSystemClass
typedef enum AF_Script_ AF_Script
typedef struct AF_Script_UniRangeRec_ AF_Script_UniRangeRec
typedef const AF_Script_UniRangeRec * AF_Script_UniRange
typedef struct AF_ScriptClassRec_ AF_ScriptClassRec
typedef const AF_ScriptClassRec * AF_ScriptClass
typedef enum AF_Coverage_ AF_Coverage
typedef enum AF_Style_ AF_Style
typedef struct AF_StyleClassRec_ AF_StyleClassRec
typedef const AF_StyleClassRec * AF_StyleClass
typedef struct AF_FaceGlobalsRec_ * AF_FaceGlobals
typedef struct AF_StyleMetricsRec_ AF_StyleMetricsRec

Enumerations

enum  AF_WritingSystem_ { AF_WRITING_SYSTEM_MAX }
enum  AF_Script_ { SCRIPT }
enum  AF_Coverage_ { COVERAGE }
enum  AF_Style_ { STYLE }

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_DECLARE_SCRIPT_CLASS

#define AF_DECLARE_SCRIPT_CLASS ( script_class)
Value:
FT_CALLBACK_TABLE const AF_ScriptClassRec \
script_class;

Definition at line 468 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 490 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 437 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 472 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 494 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 441 of file aftypes.h.

◆ AF_HINTING_BOTTOM_TO_TOP

#define AF_HINTING_BOTTOM_TO_TOP   0

Definition at line 432 of file aftypes.h.

◆ AF_HINTING_TOP_TO_BOTTOM

#define AF_HINTING_TOP_TO_BOTTOM   1

Definition at line 433 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 )

Definition at line 138 of file aftypes.h.

◆ AF_SCALER_FLAG_NO_ADVANCE

#define AF_SCALER_FLAG_NO_ADVANCE   4U

Definition at line 122 of file aftypes.h.

◆ AF_SCALER_FLAG_NO_HORIZONTAL

#define AF_SCALER_FLAG_NO_HORIZONTAL   1U

Definition at line 120 of file aftypes.h.

◆ AF_SCALER_FLAG_NO_VERTICAL

#define AF_SCALER_FLAG_NO_VERTICAL   2U

Definition at line 121 of file aftypes.h.

◆ AF_UNIRANGE_REC

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

Definition at line 278 of file aftypes.h.

◆ COVERAGE

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

Definition at line 348 of file aftypes.h.

◆ META_STYLE_LATIN

#define META_STYLE_LATIN ( s,
S,
ds )
Value:
STYLE_LATIN( s, S, c2cp, C2CP, ds, \
"petite capitals from capitals", \
PETITE_CAPITALS_FROM_CAPITALS ) \
STYLE_LATIN( s, S, c2sc, C2SC, ds, \
"small capitals from capitals", \
SMALL_CAPITALS_FROM_CAPITALS ) \
STYLE_LATIN( s, S, ordn, ORDN, ds, \
"ordinals", \
ORDINALS ) \
STYLE_LATIN( s, S, pcap, PCAP, ds, \
"petite capitals", \
PETITE_CAPITALS ) \
STYLE_LATIN( s, S, sinf, SINF, ds, \
"scientific inferiors", \
SCIENTIFIC_INFERIORS ) \
STYLE_LATIN( s, S, smcp, SMCP, ds, \
"small capitals", \
SMALL_CAPITALS ) \
STYLE_LATIN( s, S, subs, SUBS, ds, \
"subscript", \
SUBSCRIPT ) \
STYLE_LATIN( s, S, sups, SUPS, ds, \
"superscript", \
SUPERSCRIPT ) \
STYLE_LATIN( s, S, titl, TITL, ds, \
"titling", \
TITLING ) \
STYLE_LATIN( s, S, dflt, DFLT, ds, \
"default", \
DEFAULT )

Definition at line 440 of file aftypes.h.

◆ SCRIPT

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

Definition at line 257 of file aftypes.h.

◆ STYLE

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

Definition at line 376 of file aftypes.h.

◆ STYLE_LATIN

#define STYLE_LATIN ( s,
S,
f,
F,
ds,
df,
C )
Value:
STYLE( s ## _ ## f, S ## _ ## F, \
ds " " df " style", \
AF_WRITING_SYSTEM_LATIN, \
AF_SCRIPT_ ## S, \
AF_BLUE_STRINGSET_ ## S, \
AF_COVERAGE_ ## C )

Definition at line 431 of file aftypes.h.

◆ WRITING_SYSTEM

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

Definition at line 207 of file aftypes.h.

Typedef Documentation

◆ AF_FaceGlobals

typedef struct AF_FaceGlobalsRec_* AF_FaceGlobals

Definition at line 412 of file aftypes.h.

◆ AF_GlyphHints

typedef struct AF_GlyphHintsRec_* AF_GlyphHints

Definition at line 104 of file aftypes.h.

◆ AF_Script_UniRange

typedef const AF_Script_UniRangeRec* AF_Script_UniRange

Definition at line 280 of file aftypes.h.

◆ AF_ScriptClass

typedef const AF_ScriptClassRec* AF_ScriptClass

Definition at line 297 of file aftypes.h.

◆ AF_StyleClass

typedef const AF_StyleClassRec* AF_StyleClass

Definition at line 401 of file aftypes.h.

◆ AF_StyleMetrics

typedef struct AF_StyleMetricsRec_* AF_StyleMetrics

Definition at line 145 of file aftypes.h.

◆ 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 172 of file aftypes.h.

◆ AF_WritingSystem_DoneMetricsFunc

typedef void(*) AF_WritingSystem_DoneMetricsFunc(AF_StyleMetrics metrics)

Definition at line 159 of file aftypes.h.

◆ AF_WritingSystem_GetStdWidthsFunc

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

Definition at line 162 of file aftypes.h.

◆ AF_WritingSystem_InitHintsFunc

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

Definition at line 168 of file aftypes.h.

◆ AF_WritingSystem_InitMetricsFunc

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

Definition at line 151 of file aftypes.h.

◆ AF_WritingSystem_ScaleMetricsFunc

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

Definition at line 155 of file aftypes.h.

◆ AF_WritingSystemClass

typedef const AF_WritingSystemClassRec* AF_WritingSystemClass

Definition at line 236 of file aftypes.h.

Enumeration Type Documentation

◆ AF_Coverage_

enum AF_Coverage_

Definition at line 353 of file aftypes.h.

◆ AF_Script_

enum AF_Script_

Definition at line 261 of file aftypes.h.

◆ AF_Style_

enum AF_Style_

Definition at line 380 of file aftypes.h.

◆ AF_WritingSystem_

enum AF_WritingSystem_

Definition at line 211 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 59 of file afhints.c.

◆ af_sort_pos()

af_sort_pos ( FT_UInt count,
FT_Pos * table )

Definition at line 36 of file afhints.c.