Github User Fetcher 1.0.0
C Application with Server and GUI
Loading...
Searching...
No Matches
hb-ot-var.h File Reference
#include "hb.h"

Go to the source code of this file.

Data Structures

struct  hb_ot_var_axis_info_t
 

Macros

#define HB_OT_TAG_VAR_AXIS_ITALIC   HB_TAG('i','t','a','l')
 
#define HB_OT_TAG_VAR_AXIS_OPTICAL_SIZE   HB_TAG('o','p','s','z')
 
#define HB_OT_TAG_VAR_AXIS_SLANT   HB_TAG('s','l','n','t')
 
#define HB_OT_TAG_VAR_AXIS_WIDTH   HB_TAG('w','d','t','h')
 
#define HB_OT_TAG_VAR_AXIS_WEIGHT   HB_TAG('w','g','h','t')
 

Typedefs

typedef struct hb_ot_var_axis_info_t hb_ot_var_axis_info_t
 

Enumerations

enum  hb_ot_var_axis_flags_t { HB_OT_VAR_AXIS_FLAG_HIDDEN = 0x00000001u , _HB_OT_VAR_AXIS_FLAG_MAX_VALUE = HB_TAG_MAX_SIGNED }
 

Functions

HB_EXTERN hb_bool_t hb_ot_var_has_data (hb_face_t *face)
 
HB_EXTERN unsigned int hb_ot_var_get_axis_count (hb_face_t *face)
 
HB_EXTERN unsigned int hb_ot_var_get_axis_infos (hb_face_t *face, unsigned int start_offset, unsigned int *axes_count, hb_ot_var_axis_info_t *axes_array)
 
HB_EXTERN hb_bool_t hb_ot_var_find_axis_info (hb_face_t *face, hb_tag_t axis_tag, hb_ot_var_axis_info_t *axis_info)
 
HB_EXTERN unsigned int hb_ot_var_get_named_instance_count (hb_face_t *face)
 
HB_EXTERN hb_ot_name_id_t hb_ot_var_named_instance_get_subfamily_name_id (hb_face_t *face, unsigned int instance_index)
 
HB_EXTERN hb_ot_name_id_t hb_ot_var_named_instance_get_postscript_name_id (hb_face_t *face, unsigned int instance_index)
 
HB_EXTERN unsigned int hb_ot_var_named_instance_get_design_coords (hb_face_t *face, unsigned int instance_index, unsigned int *coords_length, float *coords)
 
HB_EXTERN void hb_ot_var_normalize_variations (hb_face_t *face, const hb_variation_t *variations, unsigned int variations_length, int *coords, unsigned int coords_length)
 
HB_EXTERN void hb_ot_var_normalize_coords (hb_face_t *face, unsigned int coords_length, const float *design_coords, int *normalized_coords)
 

Macro Definition Documentation

◆ HB_OT_TAG_VAR_AXIS_ITALIC

#define HB_OT_TAG_VAR_AXIS_ITALIC   HB_TAG('i','t','a','l')

HB_OT_TAG_VAR_AXIS_ITALIC:

Registered tag for the roman/italic axis.

Definition at line 43 of file hb-ot-var.h.

◆ HB_OT_TAG_VAR_AXIS_OPTICAL_SIZE

#define HB_OT_TAG_VAR_AXIS_OPTICAL_SIZE   HB_TAG('o','p','s','z')

HB_OT_TAG_VAR_AXIS_OPTICAL_SIZE:

Registered tag for the optical-size axis. <note>Note: The optical-size axis supersedes the OpenType size feature.</note>

Definition at line 51 of file hb-ot-var.h.

◆ HB_OT_TAG_VAR_AXIS_SLANT

#define HB_OT_TAG_VAR_AXIS_SLANT   HB_TAG('s','l','n','t')

HB_OT_TAG_VAR_AXIS_SLANT:

Registered tag for the slant axis

Definition at line 58 of file hb-ot-var.h.

◆ HB_OT_TAG_VAR_AXIS_WEIGHT

#define HB_OT_TAG_VAR_AXIS_WEIGHT   HB_TAG('w','g','h','t')

HB_OT_TAG_VAR_AXIS_WEIGHT:

Registered tag for the weight axis.

Definition at line 72 of file hb-ot-var.h.

◆ HB_OT_TAG_VAR_AXIS_WIDTH

#define HB_OT_TAG_VAR_AXIS_WIDTH   HB_TAG('w','d','t','h')

HB_OT_TAG_VAR_AXIS_WIDTH:

Registered tag for the width axis.

Definition at line 65 of file hb-ot-var.h.

Typedef Documentation

◆ hb_ot_var_axis_info_t

typedef struct hb_ot_var_axis_info_t hb_ot_var_axis_info_t

hb_ot_var_axis_info_t: @axis_index: Index of the axis in the variation-axis array @tag: The hb_tag_t tag identifying the design variation of the axis @name_id: The name table Name ID that provides display names for the axis @flags: The hb_ot_var_axis_flags_t flags for the axis @min_value: The minimum value on the variation axis that the font covers @default_value: The position on the variation axis corresponding to the font's defaults @max_value: The maximum value on the variation axis that the font covers

Data type for holding variation-axis values.

The minimum, default, and maximum values are in un-normalized, user scales.

<note>Note: at present, the only flag defined for @flags is HB_OT_VAR_AXIS_FLAG_HIDDEN.</note>

Since: 2.2.0

Enumeration Type Documentation

◆ hb_ot_var_axis_flags_t

hb_ot_var_axis_flags_t: @HB_OT_VAR_AXIS_FLAG_HIDDEN: The axis should not be exposed directly in user interfaces.

Flags for hb_ot_var_axis_info_t.

Since: 2.2.0

Enumerator
HB_OT_VAR_AXIS_FLAG_HIDDEN 
_HB_OT_VAR_AXIS_FLAG_MAX_VALUE 

Definition at line 99 of file hb-ot-var.h.

99 { /*< flags >*/
100 HB_OT_VAR_AXIS_FLAG_HIDDEN = 0x00000001u,
101
102 /*< private >*/
#define HB_TAG_MAX_SIGNED
Definition hb-common.h:210
hb_ot_var_axis_flags_t
Definition hb-ot-var.h:99
@ _HB_OT_VAR_AXIS_FLAG_MAX_VALUE
Definition hb-ot-var.h:103
@ HB_OT_VAR_AXIS_FLAG_HIDDEN
Definition hb-ot-var.h:100

Function Documentation

◆ hb_ot_var_find_axis_info()

HB_EXTERN hb_bool_t hb_ot_var_find_axis_info ( hb_face_t * face,
hb_tag_t axis_tag,
hb_ot_var_axis_info_t * axis_info )

◆ hb_ot_var_get_axis_count()

HB_EXTERN unsigned int hb_ot_var_get_axis_count ( hb_face_t * face)

◆ hb_ot_var_get_axis_infos()

HB_EXTERN unsigned int hb_ot_var_get_axis_infos ( hb_face_t * face,
unsigned int start_offset,
unsigned int * axes_count,
hb_ot_var_axis_info_t * axes_array )

◆ hb_ot_var_get_named_instance_count()

HB_EXTERN unsigned int hb_ot_var_get_named_instance_count ( hb_face_t * face)

◆ hb_ot_var_has_data()

HB_EXTERN hb_bool_t hb_ot_var_has_data ( hb_face_t * face)

◆ hb_ot_var_named_instance_get_design_coords()

HB_EXTERN unsigned int hb_ot_var_named_instance_get_design_coords ( hb_face_t * face,
unsigned int instance_index,
unsigned int * coords_length,
float * coords )

◆ hb_ot_var_named_instance_get_postscript_name_id()

HB_EXTERN hb_ot_name_id_t hb_ot_var_named_instance_get_postscript_name_id ( hb_face_t * face,
unsigned int instance_index )

◆ hb_ot_var_named_instance_get_subfamily_name_id()

HB_EXTERN hb_ot_name_id_t hb_ot_var_named_instance_get_subfamily_name_id ( hb_face_t * face,
unsigned int instance_index )

◆ hb_ot_var_normalize_coords()

HB_EXTERN void hb_ot_var_normalize_coords ( hb_face_t * face,
unsigned int coords_length,
const float * design_coords,
int * normalized_coords )

◆ hb_ot_var_normalize_variations()

HB_EXTERN void hb_ot_var_normalize_variations ( hb_face_t * face,
const hb_variation_t * variations,
unsigned int variations_length,
int * coords,
unsigned int coords_length )