- public void ft_font_changed (Font font)
Refreshes the state of font when the underlying FT_Face
has changed.
- 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 void ft_font_unlock_face (Font font)
Releases an FT_Face previously obtained with
hb_ft_font_lock_face.
- 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 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_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
to the HarfBuzz's native implementation.
- 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_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 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 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 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_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 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 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 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, Tag script_tag_1, Tag script_tag_2)
Converts an Script
to script tags.
- public void ot_tags_from_script_and_language (Script script, Language language, uint? script_count, out Tag script_tags, uint? language_count, out Tag language_tags)
- public void ot_tags_to_script_and_language (Tag script_tag, Tag language_tag, Script? script, 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 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 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 unowned string[] shape_list_shapers ()
Retrieves the list of shapers supported by HarfBuzz.
- public void version (out uint major, out uint minor, out uint micro)
- public Bool version_atleast (uint major, uint minor, uint micro)
- public unowned string version_string ()