- public uint aat_layout_get_feature_types (Face face, uint start_offset, out unowned AatLayoutFeatureType[] features)
Fetches a list of the AAT feature types included in the specified face.
- public Bool aat_layout_has_positioning (Face face)
Tests whether the specified face includes any positioning information in the
`kerx` table.
- public Bool aat_layout_has_substitution (Face face)
Tests whether the specified face includes any substitutions in the `morx` or
`mort` tables.
- public Bool aat_layout_has_tracking (Face face)
Tests whether the specified face includes any tracking information in the
`trak` table.
- public uint color_line_get_color_stops (ColorLine color_line, uint start, out unowned ColorStop[] color_stops)
Fetches a list of color stops from the given color line object.
- public PaintExtend color_line_get_extend (ColorLine color_line)
Fetches the extend mode of the color line object.
- public Face ft_face_create (Face ft_face)
Creates an Face
face object from the specified FT_Face.
- public Face ft_face_create_cached (Face ft_face)
Creates an Face
face object from the specified FT_Face.
- public Face ft_face_create_referenced (Face ft_face)
Creates an Face
face object from the specified FT_Face.
- public void ft_font_changed (Font font)
Refreshes the state of font when the underlying FT_Face has
changed.
- public Font ft_font_create (Face ft_face)
Creates an Font
font object from the specified FT_Face.
- public Font ft_font_create_referenced (Face ft_face)
Creates an Font
font object from the specified FT_Face.
- public int ft_font_get_load_flags (Font font)
Fetches the FT_Load_Glyph load flags of the specified
Font.
- public void ft_font_set_funcs (Font font)
Configures the font-functions structure of the specified
Font font object to use FreeType font functions.
- public void ft_font_set_load_flags (Font font, int load_flags)
Sets the FT_Load_Glyph load flags for the specified
Font.
- public Bool ft_hb_font_changed (Font font)
Refreshes the state of the underlying FT_Face of font when the
hb_font_t font has changed.
- public Blob glib_blob_create (Bytes gbytes)
Creates an Blob
blob from the specified GBytes data structure.
- public unowned UnicodeFuncs glib_get_unicode_funcs ()
Fetches a Unicode-functions structure that is populated with the appropriate
GLib function for each method.
- public UnicodeScript glib_script_from_script (Script script)
Fetches the GUnicodeScript identifier that corresponds to the specified
Script script.
- public Script glib_script_to_script (UnicodeScript script)
Fetches the
Script script that corresponds to the specified GUnicodeScript identifier.
- public GlyphFlags glyph_info_get_glyph_flags (Glyph info)
Returns glyph flags encoded within a
Glyph.
- public uint ot_color_glyph_get_layers (Face face, Codepoint glyph, uint start_offset, out unowned OtColorLayer[]? layers)
Fetches a list of all color layers for the specified glyph index in the
specified face.
- public Bool ot_color_glyph_has_paint (Face face, Codepoint glyph)
Tests where a face includes COLRv1 paint data for glyph.
- public Blob ot_color_glyph_reference_png (Font font, Codepoint glyph)
Fetches the PNG image for a glyph.
- public Blob ot_color_glyph_reference_svg (Face face, Codepoint glyph)
Fetches the SVG document for a glyph.
- public Bool ot_color_has_layers (Face face)
Tests whether a face includes a `COLR` table with data according to COLRv0.
- public Bool ot_color_has_paint (Face face)
Tests where a face includes a `COLR` table with data according to COLRv1.
- public Bool ot_color_has_palettes (Face face)
Tests whether a face includes a `CPAL` color-palette table.
- public Bool ot_color_has_png (Face face)
Tests whether a face has PNG glyph images (either in `CBDT` or `sbix` tables
).
- public Bool ot_color_has_svg (Face face)
Tests whether a face includes any `SVG` glyph images.
- public void ot_font_set_funcs (Font font)
Sets the font functions to use when working with font.
- public void ot_layout_collect_features (Face face, Tag table_tag, Tag[]? scripts, Tag[]? languages, Tag[]? features, out unowned Set feature_indexes)
Fetches a list of all feature indexes in the specified face's GSUB table or
GPOS table, underneath the specified scripts, languages, and features.
- public void ot_layout_collect_features_map (Face face, Tag table_tag, uint script_index, uint language_index, out unowned Map feature_map)
Fetches the mapping from feature tags to feature indexes for the specified
script and language.
- public void ot_layout_collect_lookups (Face face, Tag table_tag, Tag[]? scripts, Tag[]? languages, Tag[]? features, out unowned Set lookup_indexes)
Fetches a list of all feature-lookup indexes in the specified face's GSUB
table or GPOS table, underneath the specified scripts, languages, and features.
- public uint ot_layout_feature_get_characters (Face face, Tag table_tag, uint feature_index, uint start_offset, out unowned Codepoint[] characters)
Fetches a list of the characters defined as having a variant under the
specified "Character Variant" ("cvXX") feature tag.
- public uint ot_layout_feature_get_lookups (Face face, Tag table_tag, uint feature_index, uint start_offset, out uint[] lookup_indexes)
Fetches a list of all lookups enumerated for the specified feature, in the
specified face's GSUB table or GPOS table.
- public Bool ot_layout_feature_get_name_ids (Face face, Tag table_tag, uint feature_index, out OtNameId label_id, out OtNameId tooltip_id, out OtNameId sample_id, out uint num_named_parameters, out OtNameId first_param_id)
Fetches name indices from feature parameters for "Stylistic Set" ('ssXX') or
"Character Variant" ('cvXX') features.
- public uint ot_layout_feature_with_variations_get_lookups (Face face, Tag table_tag, uint feature_index, uint variations_index, uint start_offset, out uint[] lookup_indexes)
Fetches a list of all lookups enumerated for the specified feature, in the
specified face's GSUB table or GPOS table, enabled at the specified variations index.
- public uint ot_layout_get_attach_points (Face face, Codepoint glyph, uint start_offset, out uint[] point_array)
Fetches a list of all attachment points for the specified glyph in the GDEF
table of the face.
- public Bool ot_layout_get_baseline (Font font, OtLayoutBaselineTag baseline_tag, Direction direction, Tag script_tag, Tag language_tag, out Position coord)
Fetches a baseline value from the face.
- public Bool ot_layout_get_baseline2 (Font font, OtLayoutBaselineTag baseline_tag, Direction direction, Script script, Language? language, out Position coord)
Fetches a baseline value from the face.
- public void ot_layout_get_baseline_with_fallback (Font font, OtLayoutBaselineTag baseline_tag, Direction direction, Tag script_tag, Tag language_tag, out Position coord)
Fetches a baseline value from the face, and synthesizes it if the font does
not have it.
- public void ot_layout_get_baseline_with_fallback2 (Font font, OtLayoutBaselineTag baseline_tag, Direction direction, Script script, Language? language, out Position coord)
Fetches a baseline value from the face, and synthesizes it if the font does
not have it.
- public Bool ot_layout_get_font_extents (Font font, Direction direction, Tag script_tag, Tag language_tag, out unowned FontExtents? extents)
Fetches script/language-specific font extents.
- public Bool ot_layout_get_font_extents2 (Font font, Direction direction, Script script, Language? language, out unowned FontExtents? extents)
Fetches script/language-specific font extents.
- public OtLayoutGlyphClass ot_layout_get_glyph_class (Face face, Codepoint glyph)
Fetches the GDEF class of the requested glyph in the specified face.
- public void ot_layout_get_glyphs_in_class (Face face, OtLayoutGlyphClass klass, out unowned Set glyphs)
Retrieves the set of all glyphs from the face that belong to the requested
glyph class in the face's GDEF table.
- public OtLayoutBaselineTag ot_layout_get_horizontal_baseline_tag_for_script (Script script)
Fetches the dominant horizontal baseline tag used by script.
- public uint ot_layout_get_ligature_carets (Font font, Direction direction, Codepoint glyph, uint start_offset, out Position[] caret_array)
Fetches a list of the caret positions defined for a ligature glyph in the
GDEF table of the font.
- public Bool ot_layout_get_size_params (Face face, out uint design_size, out uint subfamily_id, out OtNameId subfamily_name_id, out uint range_start, out uint range_end)
Fetches optical-size feature data (i.
- public Bool ot_layout_has_glyph_classes (Face face)
Tests whether a face has any glyph classes defined in its GDEF table.
- public Bool ot_layout_has_positioning (Face face)
Tests whether the specified face includes any GPOS positioning.
- public Bool ot_layout_has_substitution (Face face)
Tests whether the specified face includes any GSUB substitutions.
- public Bool ot_layout_language_find_feature (Face face, Tag table_tag, uint script_index, uint language_index, Tag feature_tag, out uint feature_index)
Fetches the index of a given feature tag in the specified face's GSUB table
or GPOS table, underneath the specified script and language.
- public uint ot_layout_language_get_feature_indexes (Face face, Tag table_tag, uint script_index, uint language_index, uint start_offset, out uint[] feature_indexes)
Fetches a list of all features in the specified face's GSUB table or GPOS
table, underneath the specified script and language.
- public uint ot_layout_language_get_feature_tags (Face face, Tag table_tag, uint script_index, uint language_index, uint start_offset, out Tag[] feature_tags)
Fetches a list of all features in the specified face's GSUB table or GPOS
table, underneath the specified script and language.
- public Bool ot_layout_language_get_required_feature (Face face, Tag table_tag, uint script_index, uint language_index, out uint feature_index, out Tag feature_tag)
Fetches the tag of a requested feature index in the given face's GSUB or
GPOS table, underneath the specified script and language.
- public Bool ot_layout_language_get_required_feature_index (Face face, Tag table_tag, uint script_index, uint language_index, out uint feature_index)
Fetches the index of a requested feature in the given face's GSUB or GPOS
table, underneath the specified script and language.
- public void ot_layout_lookup_collect_glyphs (Face face, Tag table_tag, uint lookup_index, out unowned Set glyphs_before, out unowned Set glyphs_input, out unowned Set glyphs_after, out unowned Set glyphs_output)
Fetches a list of all glyphs affected by the specified lookup in the
specified face's GSUB table or GPOS table.
- public uint ot_layout_lookup_get_glyph_alternates (Face face, uint lookup_index, Codepoint glyph, uint start_offset, out unowned Codepoint[] alternate_glyphs)
Fetches alternates of a glyph from a given GSUB lookup index.
- public Position ot_layout_lookup_get_optical_bound (Font font, uint lookup_index, Direction direction, Codepoint glyph)
Fetches the optical bound of a glyph positioned at the margin of text.
- public void ot_layout_lookup_substitute_closure (Face face, uint lookup_index, out unowned Set glyphs)
Compute the transitive closure of glyphs needed for a specified lookup.
- public Bool ot_layout_lookup_would_substitute (Face face, uint lookup_index, Codepoint glyphs, uint glyphs_length, Bool zero_context)
Tests whether a specified lookup in the specified face would trigger a
substitution on the given glyph sequence.
- public void ot_layout_lookups_substitute_closure (Face face, Set lookups, out unowned Set glyphs)
Compute the transitive closure of glyphs needed for all of the provided
lookups.
- public Bool ot_layout_script_find_language (Face face, Tag table_tag, uint script_index, Tag language_tag, uint language_index)
Fetches the index of a given language tag in the specified face's GSUB table
or GPOS table, underneath the specified script tag.
- public uint ot_layout_script_get_language_tags (Face face, Tag table_tag, uint script_index, uint start_offset, out Tag[] language_tags)
Fetches a list of language tags in the given face's GSUB or GPOS table,
underneath the specified script index.
- public Bool ot_layout_script_select_language (Face face, Tag table_tag, uint script_index, uint language_count, Tag language_tags, out uint language_index)
Fetches the index of the first language tag fom language_tags
that is present in the specified face's GSUB or GPOS table, underneath the specified script index.
- public Bool ot_layout_script_select_language2 (Face face, Tag table_tag, uint script_index, uint language_count, Tag language_tags, out uint language_index, out Tag chosen_language)
Fetches the index of the first language tag fom language_tags
that is present in the specified face's GSUB or GPOS table, underneath the specified script index.
- public Bool ot_layout_table_choose_script (Face face, Tag table_tag, Tag script_tags, out uint script_index, out Tag chosen_script)
Deprecated since 2.0.0
- public Bool ot_layout_table_find_feature_variations (Face face, Tag table_tag, int coords, uint num_coords, out uint variations_index)
Fetches a list of feature variations in the specified face's GSUB table or
GPOS table, at the specified variation coordinates.
- public Bool ot_layout_table_find_script (Face face, Tag table_tag, Tag script_tag, out uint script_index)
Fetches the index if a given script tag in the specified face's GSUB table
or GPOS table.
- public uint ot_layout_table_get_feature_tags (Face face, Tag table_tag, uint start_offset, out Tag[] feature_tags)
Fetches a list of all feature tags in the given face's GSUB or GPOS table.
- public uint ot_layout_table_get_lookup_count (Face face, Tag table_tag)
Fetches the total number of lookups enumerated in the specified face's GSUB
table or GPOS table.
- public uint ot_layout_table_get_script_tags (Face face, Tag table_tag, uint start_offset, out Tag[] script_tags)
Fetches a list of all scripts enumerated in the specified face's GSUB table
or GPOS table.
- public Bool ot_layout_table_select_script (Face face, Tag table_tag, uint script_count, Tag script_tags, out uint script_index, out Tag chosen_script)
Selects an OpenType script for table_tag from the
script_tags array.
- public Position ot_math_get_constant (Font font, OtMathContant constant)
Fetches the specified math constant.
- public uint ot_math_get_glyph_assembly (Font font, Codepoint glyph, Direction direction, uint start_offset, out unowned OtMathGlypthPart[] parts, out Position italics_correction)
Fetches the GlyphAssembly for the specified font, glyph index, and
direction.
- public Position ot_math_get_glyph_italics_correction (Font font, Codepoint glyph)
Fetches an italics-correction value (if one exists) for the specified glyph
index.
- public Position ot_math_get_glyph_kerning (Font font, Codepoint glyph, OtMathKern kern, Position correction_height)
Fetches the math kerning (cut-ins) value for the specified font, glyph
index, and kern.
- public uint ot_math_get_glyph_kernings (Font font, Codepoint glyph, OtMathKern kern, uint start_offset, out unowned ot_math_kern_entry_t[] kern_entries)
Fetches the raw MathKern (cut-in) data for the specified font, glyph index,
and kern.
- public Position ot_math_get_glyph_top_accent_attachment (Font font, Codepoint glyph)
Fetches a top-accent-attachment value (if one exists) for the specified
glyph index.
- public uint ot_math_get_glyph_variants (Font font, Codepoint glyph, Direction direction, uint start_offset, out unowned OtMathGlypthVariant[] variants)
Fetches the MathGlyphConstruction for the specified font, glyph index, and
direction.
- public Position ot_math_get_min_connector_overlap (Font font, Direction direction)
Fetches the MathVariants table for the specified font and returns the
minimum overlap of connecting glyphs that are required to draw a glyph assembly in the specified direction.
- public Bool ot_math_has_data (Face face)
Tests whether a face has a `MATH` table.
- public Bool ot_math_is_glyph_extended_shape (Face face, Codepoint glyph)
Tests whether the given glyph index is an extended shape in the face.
- public uint ot_meta_get_entry_tags (Face face, uint start_offset, out unowned OtMetaTag[] entries)
Fetches all available feature types.
- public Blob ot_meta_reference_entry (Face face, OtMetaTag meta_tag)
It fetches metadata entry of a given tag from a font.
- public Bool ot_metrics_get_position (Font font, OtMetricsTag metrics_tag, out Position position)
Fetches metrics value corresponding to metrics_tag from
font.
- public void ot_metrics_get_position_with_fallback (Font font, OtMetricsTag metrics_tag, out Position position)
Fetches metrics value corresponding to metrics_tag from
font, and synthesizes a value if it the value is missing in the font.
- public float ot_metrics_get_variation (Font font, OtMetricsTag metrics_tag)
Fetches metrics value corresponding to metrics_tag from
font with the current font variation settings applied.
- public Position ot_metrics_get_x_variation (Font font, OtMetricsTag metrics_tag)
Fetches horizontal metrics value corresponding to metrics_tag
from font with the current font variation settings applied.
- public Position ot_metrics_get_y_variation (Font font, OtMetricsTag metrics_tag)
Fetches vertical metrics value corresponding to metrics_tag
from font with the current font variation settings applied.
- public uint ot_name_get_utf16 (Face face, OtNameId name_id, Language language, out unowned uint16[] text)
Fetches a font name from the OpenType 'name' table.
- public uint ot_name_get_utf32 (Face face, OtNameId name_id, Language language, out unowned uint32[] text)
Fetches a font name from the OpenType 'name' table.
- public uint ot_name_get_utf8 (Face face, OtNameId name_id, Language language, out unowned char[] text)
Fetches a font name from the OpenType 'name' table.
- public unowned OtNameEntry[] ot_name_list_names (Face face)
Enumerates all available name IDs and language combinations.
- public void ot_shape_glyphs_closure (Font font, Buffer buffer, Feature[] features, out unowned Set glyphs)
Computes the transitive closure of glyphs needed for a specified input
buffer under the given font and feature list.
- public void ot_shape_plan_collect_lookups (ShapePlan shape_plan, Tag table_tag, out unowned Set lookup_indexes)
Computes the complete set of GSUB or GPOS lookups that are applicable under
a given shape_plan.
- public Tag ot_tag_from_language (Language language)
- public unowned Language? ot_tag_to_language (Tag tag)
- public Script ot_tag_to_script (Tag tag)
Converts a script tag to an
Script.
- public void ot_tags_from_script (Script script, out Tag script_tag_1, out Tag script_tag_2)
Converts an
Script to script tags.
- public void ot_tags_from_script_and_language (Script script, Language? language, ref uint script_count, out Tag script_tags, ref uint language_count, out Tag language_tags)
- public void ot_tags_to_script_and_language (Tag script_tag, Tag language_tag, out Script script, out unowned Language language)
Converts a script tag and a language tag to an
Script and an
Language.
- public Bool ot_var_find_axis (Face face, Tag axis_tag, uint axis_index, out OtVarAxis axis_info)
Fetches the variation-axis information corresponding to the specified axis
tag in the specified face.
- public Bool ot_var_find_axis_info (Face face, Tag axis_tag, out unowned OtVarAxisInfo axis_info)
Fetches the variation-axis information corresponding to the specified axis
tag in the specified face.
- public uint ot_var_get_axes (Face face, uint start_offset, out unowned OtVarAxis[] axes_array)
Fetches a list of all variation axes in the specified face.
- public uint ot_var_get_axis_count (Face face)
Fetches the number of OpenType variation axes included in the face.
- public uint ot_var_get_axis_infos (Face face, uint start_offset, out unowned OtVarAxisInfo[] axes_array)
Fetches a list of all variation axes in the specified face.
- public uint ot_var_get_named_instance_count (Face face)
Fetches the number of named instances included in the face.
- public Bool ot_var_has_data (Face face)
Tests whether a face includes any OpenType variation data in the `fvar`
table.
- public uint ot_var_named_instance_get_design_coords (Face face, uint instance_index, out float[] coords)
Fetches the design-space coordinates corresponding to the given named
instance in the face.
- public OtNameId ot_var_named_instance_get_postscript_name_id (Face face, uint instance_index)
Fetches the `name` table Name ID that provides display names for the
"PostScript name" defined for the given named instance in the face.
- public OtNameId ot_var_named_instance_get_subfamily_name_id (Face face, uint instance_index)
Fetches the `name` table Name ID that provides display names for the
"Subfamily name" defined for the given named instance in the face.
- public void ot_var_normalize_coords (Face face, uint coords_length, float design_coords, out int normalized_coords)
Normalizes the given design-space coordinates.
- public void ot_var_normalize_variations (Face face, Variation variations, uint variations_length, out int[] coords)
Normalizes all of the coordinates in the given list of variation axes.
- public void paint_color (PaintFuncs funcs, void* paint_data, Bool is_foreground, Color color)
Perform a "color" paint operation.
- public Bool paint_custom_palette_color (PaintFuncs funcs, void* paint_data, uint color_index, out Color color)
Gets the custom palette color for color_index.
- public void paint_image (PaintFuncs funcs, void* paint_data, Blob image, uint width, uint height, Tag format, float slant, GlyphExtents? extents)
Perform a "image" paint operation.
- public void paint_linear_gradient (PaintFuncs funcs, void* paint_data, ColorLine color_line, float x0, float y0, float x1, float y1, float x2, float y2)
Perform a "linear-gradient" paint operation.
- public void paint_pop_clip (PaintFuncs funcs, void* paint_data)
Perform a "pop-clip" paint operation.
- public void paint_pop_group (PaintFuncs funcs, void* paint_data, PaintCompositeMode mode)
Perform a "pop-group" paint operation.
- public void paint_pop_transform (PaintFuncs funcs, void* paint_data)
Perform a "pop-transform" paint operation.
- public void paint_push_clip_glyph (PaintFuncs funcs, void* paint_data, Codepoint glyph, Font font)
Perform a "push-clip-glyph" paint operation.
- public void paint_push_clip_rectangle (PaintFuncs funcs, void* paint_data, float xmin, float ymin, float xmax, float ymax)
Perform a "push-clip-rect" paint operation.
- public void paint_push_group (PaintFuncs funcs, void* paint_data)
Perform a "push-group" paint operation.
- public void paint_push_transform (PaintFuncs funcs, void* paint_data, float xx, float yx, float xy, float yy, float dx, float dy)
Perform a "push-transform" paint operation.
- public void paint_radial_gradient (PaintFuncs funcs, void* paint_data, ColorLine color_line, float x0, float y0, float r0, float x1, float y1, float r1)
Perform a "radial-gradient" paint operation.
- public void paint_sweep_gradient (PaintFuncs funcs, void* paint_data, ColorLine color_line, float x0, float y0, float start_angle, float end_angle)
Perform a "sweep-gradient" paint operation.
- public void shape (Font font, Buffer buffer, Feature[]? features)
Shapes buffer using font turning its Unicode
characters content to positioned glyphs.
- public Bool shape_full (Font font, Buffer buffer, Feature[]? features, string[]? shaper_list)
- public Bool shape_justify (Font font, Buffer buffer, Feature[]? features, string[]? shaper_list, float min_target_advance, float max_target_advance, ref float advance, out Tag var_tag, out float var_value)
- public unowned string[] shape_list_shapers ()
Retrieves the list of shapers supported by HarfBuzz.
- public float style_get_value (Font font, style_tag_t style_tag)
Searches variation axes of a
Font object for a specific axis first, if not set, then tries to get
default style values from different tables of the font.