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

Go to the source code of this file.

Classes

struct  AF_LatinBlueRec_
struct  AF_LatinAxisRec_
struct  AF_LatinMetricsRec_

Macros

#define AF_LATIN_CONSTANT(metrics, c)
#define AF_LATIN_IS_TOP_BLUE(b)
#define AF_LATIN_IS_SUB_TOP_BLUE(b)
#define AF_LATIN_IS_NEUTRAL_BLUE(b)
#define AF_LATIN_IS_X_HEIGHT_BLUE(b)
#define AF_LATIN_IS_LONG_BLUE(b)
#define AF_LATIN_IS_CAPITAL_BOTTOM_BLUE(b)
#define AF_LATIN_IS_SMALL_BOTTOM_BLUE(b)
#define AF_LATIN_MAX_WIDTHS   16
#define AF_LATIN_BLUE_ACTIVE   ( 1U << 0 )
#define AF_LATIN_BLUE_TOP   ( 1U << 1 )
#define AF_LATIN_BLUE_SUB_TOP   ( 1U << 2 )
#define AF_LATIN_BLUE_NEUTRAL   ( 1U << 3 )
#define AF_LATIN_BLUE_ADJUSTMENT   ( 1U << 4 )
#define AF_LATIN_BLUE_BOTTOM   ( 1U << 5 )
#define AF_LATIN_BLUE_BOTTOM_SMALL   ( 1U << 6 )
#define AF_LATIN_HINTS_HORZ_SNAP   ( 1U << 0 )
#define AF_LATIN_HINTS_VERT_SNAP   ( 1U << 1 )
#define AF_LATIN_HINTS_STEM_ADJUST   ( 1U << 2 )
#define AF_LATIN_HINTS_MONO   ( 1U << 3 )
#define AF_LATIN_HINTS_DO_HORZ_SNAP(h)
#define AF_LATIN_HINTS_DO_VERT_SNAP(h)
#define AF_LATIN_HINTS_DO_STEM_ADJUST(h)
#define AF_LATIN_HINTS_DO_MONO(h)

Typedefs

typedef struct AF_LatinBlueRec_ AF_LatinBlueRec
typedef struct AF_LatinBlueRec_ * AF_LatinBlue
typedef struct AF_LatinAxisRec_ AF_LatinAxisRec
typedef struct AF_LatinAxisRec_ * AF_LatinAxis
typedef struct AF_LatinMetricsRec_ AF_LatinMetricsRec
typedef struct AF_LatinMetricsRec_ * AF_LatinMetrics

Functions

 af_latin_metrics_init (AF_StyleMetrics metrics, FT_Face face)
 af_latin_metrics_scale (AF_StyleMetrics metrics, AF_Scaler scaler)
 af_latin_metrics_init_widths (AF_LatinMetrics metrics, FT_Face face)
 af_latin_metrics_check_digits (AF_LatinMetrics metrics, FT_Face face)
 af_latin_hints_compute_segments (AF_GlyphHints hints, AF_Dimension dim)
 af_latin_hints_link_segments (AF_GlyphHints hints, FT_UInt width_count, AF_WidthRec *widths, AF_Dimension dim)
 af_latin_hints_compute_edges (AF_GlyphHints hints, AF_Dimension dim)
 af_latin_hints_detect_features (AF_GlyphHints hints, FT_UInt width_count, AF_WidthRec *widths, AF_Dimension dim)

Macro Definition Documentation

◆ AF_LATIN_BLUE_ACTIVE

#define AF_LATIN_BLUE_ACTIVE   ( 1U << 0 )

Definition at line 76 of file aflatin.h.

◆ AF_LATIN_BLUE_ADJUSTMENT

#define AF_LATIN_BLUE_ADJUSTMENT   ( 1U << 4 )

Definition at line 82 of file aflatin.h.

◆ AF_LATIN_BLUE_BOTTOM

#define AF_LATIN_BLUE_BOTTOM   ( 1U << 5 )

Definition at line 84 of file aflatin.h.

◆ AF_LATIN_BLUE_BOTTOM_SMALL

#define AF_LATIN_BLUE_BOTTOM_SMALL   ( 1U << 6 )

Definition at line 86 of file aflatin.h.

◆ AF_LATIN_BLUE_NEUTRAL

#define AF_LATIN_BLUE_NEUTRAL   ( 1U << 3 )

Definition at line 80 of file aflatin.h.

◆ AF_LATIN_BLUE_SUB_TOP

#define AF_LATIN_BLUE_SUB_TOP   ( 1U << 2 )

Definition at line 78 of file aflatin.h.

◆ AF_LATIN_BLUE_TOP

#define AF_LATIN_BLUE_TOP   ( 1U << 1 )

Definition at line 77 of file aflatin.h.

◆ AF_LATIN_CONSTANT

#define AF_LATIN_CONSTANT ( metrics,
c )
Value:
( ( (c) * (FT_Long)( (AF_LatinMetrics)(metrics) )->units_per_em ) / 2048 )

Definition at line 38 of file aflatin.h.

◆ AF_LATIN_HINTS_DO_HORZ_SNAP

#define AF_LATIN_HINTS_DO_HORZ_SNAP ( h)
Value:
AF_HINTS_TEST_OTHER( h, AF_LATIN_HINTS_HORZ_SNAP )

Definition at line 163 of file aflatin.h.

◆ AF_LATIN_HINTS_DO_MONO

#define AF_LATIN_HINTS_DO_MONO ( h)
Value:
AF_HINTS_TEST_OTHER( h, AF_LATIN_HINTS_MONO )

Definition at line 172 of file aflatin.h.

◆ AF_LATIN_HINTS_DO_STEM_ADJUST

#define AF_LATIN_HINTS_DO_STEM_ADJUST ( h)
Value:
AF_HINTS_TEST_OTHER( h, AF_LATIN_HINTS_STEM_ADJUST )

Definition at line 169 of file aflatin.h.

◆ AF_LATIN_HINTS_DO_VERT_SNAP

#define AF_LATIN_HINTS_DO_VERT_SNAP ( h)
Value:
AF_HINTS_TEST_OTHER( h, AF_LATIN_HINTS_VERT_SNAP )

Definition at line 166 of file aflatin.h.

◆ AF_LATIN_HINTS_HORZ_SNAP

#define AF_LATIN_HINTS_HORZ_SNAP   ( 1U << 0 )

Definition at line 156 of file aflatin.h.

◆ AF_LATIN_HINTS_MONO

#define AF_LATIN_HINTS_MONO   ( 1U << 3 )

Definition at line 160 of file aflatin.h.

◆ AF_LATIN_HINTS_STEM_ADJUST

#define AF_LATIN_HINTS_STEM_ADJUST   ( 1U << 2 )

Definition at line 158 of file aflatin.h.

◆ AF_LATIN_HINTS_VERT_SNAP

#define AF_LATIN_HINTS_VERT_SNAP   ( 1U << 1 )

Definition at line 157 of file aflatin.h.

◆ AF_LATIN_IS_CAPITAL_BOTTOM_BLUE

#define AF_LATIN_IS_CAPITAL_BOTTOM_BLUE ( b)
Value:
( (b)->properties & AF_BLUE_PROPERTY_LATIN_CAPITAL_BOTTOM )

Definition at line 68 of file aflatin.h.

◆ AF_LATIN_IS_LONG_BLUE

#define AF_LATIN_IS_LONG_BLUE ( b)
Value:
( (b)->properties & AF_BLUE_PROPERTY_LATIN_LONG )

Definition at line 66 of file aflatin.h.

◆ AF_LATIN_IS_NEUTRAL_BLUE

#define AF_LATIN_IS_NEUTRAL_BLUE ( b)
Value:
( (b)->properties & AF_BLUE_PROPERTY_LATIN_NEUTRAL )

Definition at line 62 of file aflatin.h.

◆ AF_LATIN_IS_SMALL_BOTTOM_BLUE

#define AF_LATIN_IS_SMALL_BOTTOM_BLUE ( b)
Value:
( (b)->properties & AF_BLUE_PROPERTY_LATIN_SMALL_BOTTOM )

Definition at line 70 of file aflatin.h.

◆ AF_LATIN_IS_SUB_TOP_BLUE

#define AF_LATIN_IS_SUB_TOP_BLUE ( b)
Value:
( (b)->properties & AF_BLUE_PROPERTY_LATIN_SUB_TOP )

Definition at line 60 of file aflatin.h.

◆ AF_LATIN_IS_TOP_BLUE

#define AF_LATIN_IS_TOP_BLUE ( b)
Value:
( (b)->properties & AF_BLUE_PROPERTY_LATIN_TOP )

Definition at line 58 of file aflatin.h.

◆ AF_LATIN_IS_X_HEIGHT_BLUE

#define AF_LATIN_IS_X_HEIGHT_BLUE ( b)
Value:
( (b)->properties & AF_BLUE_PROPERTY_LATIN_X_HEIGHT )

Definition at line 64 of file aflatin.h.

◆ AF_LATIN_MAX_WIDTHS

#define AF_LATIN_MAX_WIDTHS   16

Definition at line 73 of file aflatin.h.

Function Documentation

◆ af_latin_hints_compute_edges()

af_latin_hints_compute_edges ( AF_GlyphHints hints,
AF_Dimension dim )

Definition at line 2154 of file aflatin.c.

◆ af_latin_hints_compute_segments()

af_latin_hints_compute_segments ( AF_GlyphHints hints,
AF_Dimension dim )

Definition at line 1557 of file aflatin.c.

◆ af_latin_hints_detect_features()

af_latin_hints_detect_features ( AF_GlyphHints hints,
FT_UInt width_count,
AF_WidthRec * widths,
AF_Dimension dim )

Definition at line 2506 of file aflatin.c.

◆ af_latin_hints_link_segments()

af_latin_hints_link_segments ( AF_GlyphHints hints,
FT_UInt width_count,
AF_WidthRec * widths,
AF_Dimension dim )

Definition at line 2016 of file aflatin.c.

◆ af_latin_metrics_check_digits()

af_latin_metrics_check_digits ( AF_LatinMetrics metrics,
FT_Face face )

Definition at line 1075 of file aflatin.c.

◆ af_latin_metrics_init()

af_latin_metrics_init ( AF_StyleMetrics metrics,
FT_Face face )

Definition at line 1141 of file aflatin.c.

◆ af_latin_metrics_init_widths()

af_latin_metrics_init_widths ( AF_LatinMetrics metrics,
FT_Face face )

Definition at line 55 of file aflatin.c.

◆ af_latin_metrics_scale()

af_latin_metrics_scale ( AF_StyleMetrics metrics,
AF_Scaler scaler )

Definition at line 1511 of file aflatin.c.