harfbuzz-gobject
Description:
HarfBuzz is a text shaping library. Using the HarfBuzz library allows programs to convert a sequence of Unicode input into properly formatted and positioned glyph output—for any writing system and language. HarfBuzz also includes font subsetting, glyph rasterization (bitmap, vector, and GPU), and integration with FreeType, Cairo, CoreText, DirectWrite, and other platforms.
- Home: https://harfbuzz.github.io/
- C-Documentation: https://harfbuzz.github.io/
- Devhelp-Package download
Content:
Namespaces:
- HarfBuzz
- Blob - Data type for blobs.
- Buffer - The main structure holding the input text and its properties before shaping, and output glyphs and their information after shaping.
- ColorLine - A struct containing color information for a gradient.
- ColorStop - Information about a color stop on a color line.
- DrawFuncs - Glyph draw callbacks.
- DrawState - Current drawing state.
- Face - Data type for holding font faces.
- Feature - The Feature is the structure that holds information about requested feature application.
- Font - Data type for holding fonts.
- FontFuncs - Data type containing a set of virtual methods used for working on Font font objects.
- Glyph - The Glyph is the structure that holds information about the glyphs and their relation to input text.
- GlyphPosition - The GlyphPosition is the structure that holds the positions of the glyph in both horizontal and vertical directions.
- Language - Data type for languages.
- Map - Data type for holding integer-to-integer hash maps.
- OtMathGlypthPart - Data type to hold information for a "part" component of a math-variant glyph.
- OtMathGlypthVariant - Data type to hold math-variant information for a glyph.
- OtVarAxisInfo - Data type for holding variation-axis values.
- PaintFuncs - Glyph paint callbacks.
- SegmentProperties - The structure that holds various text properties of an Buffer.
- Set - Data type for holding a set of integers.
- ShapePlan - Data type for holding a shaping plan.
- UnicodeFuncs - Data type containing a set of virtual methods used for accessing various Unicode character properties.
- UserDataKey - Data structure for holding user-data keys.
- Bool - Data type for booleans.
- Codepoint - Data type for holding Unicode codepoints.
- Color - Data type for holding color values.
- FontExtents - Font-wide extent values, measured in font units.
- GlyphExtents - Glyph extent values, measured in font units.
- Mask - Data type for bitmasks.
- OtColorLayer - Pairs of glyph and color index.
- OtNameEntry - Structure representing a name ID in a particular language.
- OtNameId - An integral type representing an OpenType 'name' table name identifier.
- OtVarAxis - Use OtVarAxisInfo instead.
- Position - Data type for holding a single coordinate value.
- Tag - Data type for tag identifiers.
- Variation - Data type for holding variation data.
- aat_layout_feature_selector_info_t - Structure representing a setting for an AatLayoutFeatureType.
- ot_math_kern_entry_t - Data type to hold math kerning (cut-in) information for a glyph.
- var_int_t
- var_num_t
- AatLayoutFeatureSelector - The selectors defined for specifying AAT feature settings.
- AatLayoutFeatureType - The possible feature types defined for AAT shaping, from Apple Font Feature Registry.
- BufferClusterLevel - Data type for holding HarfBuzz's clustering behavior options.
- BufferContentType - The type of Buffer contents.
- BufferDiffFlags - Flags from comparing two Buffer's.
- BufferFlags - Flags for Buffer.
- BufferSerializeFlags - Flags that control what glyph information are serialized in serialize_glyphs.
- BufferSerializeFormat - The buffer serialization and de-serialization format used in serialize_glyphs and deserialize_glyphs.
- Direction - The direction of a text segment or buffer.
- GlyphFlags - Flags for Glyph.
- MemoryMode - Data type holding the memory modes available to client programs.
- OtColorPalette - Flags that describe the properties of color palette.
- OtLayoutBaselineTag - Baseline tags from Baseline Tags registry.
- OtLayoutGlyphClass - The GDEF classes defined for glyphs.
- OtMathContant - The 'MATH' table constants, refer to OpenType documentation For more explanations.
- OtMathGlyphPartFlags - Flags for math glyph parts.
- OtMathKern - The math kerning-table types defined for the four corners of a glyph.
- OtMetaTag - Known metadata tags from https://docs.
- OtMetricsTag - Metric tags corresponding to [MVAR Value Tags](https://docs.
- OtNameIdPredefined - An enum type representing the pre-defined name IDs.
- OtVarAxisFlags - Flags for OtVarAxisInfo.
- PaintCompositeMode - The values of this enumeration describe the compositing modes that can be used when combining temporary redirected drawing with the backdrop.
- PaintExtend - The values of this enumeration determine how color values outside the minimum and maximum defined offset on a ColorLine are determined.
- Script - Data type for scripts.
- UnicodeCombiningClass - Data type for the Canonical_Combining_Class (ccc) property from the Unicode Character Database.
- UnicodeGeneralCategory - Data type for the "General_Category" (gc) property from the Unicode Character Database.
- style_tag_t - Defined by OpenType Design-Variation Axis Tag Registry .
- public const int AAT_LAYOUT_NO_SELECTOR_INDEX
Used when getting or setting AAT feature selectors.
- public const int BUFFER_REPLACEMENT_CODEPOINT_DEFAULT
The default code point for replacing invalid characters in a given encoding.
- public const Codepoint CODEPOINT_INVALID
Unused Codepoint value.
- public const int FEATURE_GLOBAL_START
Special setting for start to apply the feature from the start of the buffer.
- public const int FONT_NO_VAR_NAMED_INSTANCE
Constant signifying that a font does not have any named-instance index set.
- public const int OT_LAYOUT_DEFAULT_LANGUAGE_INDEX
Special value for language index indicating default or unsupported language.
- public const int OT_LAYOUT_NO_FEATURE_INDEX
Special value for feature index indicating unsupported feature.
- public const int OT_LAYOUT_NO_SCRIPT_INDEX
Special value for script index indicating unsupported script.
- public const int OT_LAYOUT_NO_VARIATIONS_INDEX
Special value for variations index indicating unsupported variation.
- public const int OT_MAX_TAGS_PER_LANGUAGE
Maximum number of OpenType tags that can correspond to a give Language.
- public const int OT_MAX_TAGS_PER_SCRIPT
Maximum number of OpenType tags that can correspond to a give Script.
- public const int OT_VAR_NO_AXIS_INDEX
Do not use.
- public const int UNICODE_COMBINING_CLASS_CCC133
[Tibetan]
- public const int UNICODE_MAX
Maximum valid Unicode code point.
- public const int UNICODE_MAX_DECOMPOSITION_LEN
See Unicode 6.1 for details on the maximum decomposition length.
- public const int VERSION_MAJOR
- public const int VERSION_MICRO
- public const int VERSION_MINOR
- public const string VERSION_STRING
- public delegate Bool BufferMessageFunc (Buffer buffer, Font font, string message)
A callback method for Buffer.
- public delegate uint ColorLineGetColorStopsFunc (ColorLine color_line, void* color_line_data, uint start, out unowned ColorStop[] color_stops)
A virtual method for the ColorLine to fetch color stops.
- public delegate PaintExtend ColorLineGetExtendFunc (ColorLine color_line, void* color_line_data)
A virtual method for the
hb_color_line_tto fetches the extend mode. - public delegate void DestroyFunc ()
A virtual method for destroy user-data callbacks.
- public delegate void DrawClosePathFunc (DrawFuncs dfuncs, void* draw_data, DrawState st)
A virtual method for the DrawFuncs to perform a "close-path" draw operation.
- public delegate void DrawCubicToFunc (DrawFuncs dfuncs, void* draw_data, DrawState st, float control1_x, float control1_y, float control2_x, float control2_y, float to_x, float to_y)
A virtual method for the DrawFuncs to perform a "cubic-to" draw operation.
- public delegate void DrawLineToFunc (DrawFuncs dfuncs, void* draw_data, DrawState st, float to_x, float to_y)
A virtual method for the DrawFuncs to perform a "line-to" draw operation.
- public delegate void DrawMoveToFunc (DrawFuncs dfuncs, void* draw_data, DrawState st, float to_x, float to_y)
A virtual method for the DrawFuncs to perform a "move-to" draw operation.
- public delegate void DrawQuadraticToFunc (DrawFuncs dfuncs, void* draw_data, DrawState st, float control_x, float control_y, float to_x, float to_y)
A virtual method for the DrawFuncs to perform a "quadratic-to" draw operation.
- public delegate void FontDrawGlyphFunc (Font font, void* font_data, Codepoint glyph, DrawFuncs draw_funcs, void* draw_data)
- public delegate Bool FontGetFontExtentsFunc (Font font, void* font_data, out FontExtents extents)
- public delegate Bool FontGetFontHExtentsFunc (Font font, void* font_data, out FontExtents extents)
- public delegate Bool FontGetFontVExtentsFunc (Font font, void* font_data, out FontExtents extents)
This method should retrieve the extents for a font.
- public delegate Position FontGetGlyphAdvanceFunc (Font font, void* font_data, Codepoint glyph)
- public delegate void FontGetGlyphAdvancesFunc (Font font, void* font_data, uint count, Codepoint first_glyph, uint glyph_stride, out Position first_advance, uint advance_stride)
- public delegate Bool FontGetGlyphContourFunc (Font font, void* font_data, Codepoint glyph, uint point_index, out Position x, out Position y)
- public delegate Bool FontGetGlyphExtentsFunc (Font font, void* font_data, Codepoint glyph, out GlyphExtents extents)
- public delegate Bool FontGetGlyphFromNameFunc (Font font, void* font_data, char[] name, out Codepoint glyph)
- public delegate Bool FontGetGlyphFunc (Font font, void* font_data, Codepoint unicode, Codepoint variation_selector, out Codepoint glyph)
- public delegate Position FontGetGlyphHAdvanceFunc (Font font, void* font_data, Codepoint glyph)
- public delegate void FontGetGlyphHAdvancesFunc (Font font, void* font_data, uint count, Codepoint first_glyph, uint glyph_stride, out Position first_advance, uint advance_stride)
- public delegate Position FontGetGlyphHKerningFunc (Font font, void* font_data, Codepoint first_glyph, Codepoint second_glyph)
- public delegate Bool FontGetGlyphHOriginFunc (Font font, void* font_data, Codepoint glyph, out Position x, out Position y)
- public delegate Position FontGetGlyphKerningFunc (Font font, void* font_data, Codepoint first_glyph, Codepoint second_glyph)
- public delegate Bool FontGetGlyphNameFunc (Font font, void* font_data, Codepoint glyph, out char[] name)
- public delegate Bool FontGetGlyphOriginFunc (Font font, void* font_data, Codepoint glyph, out Position x, out Position y)
- public delegate Position FontGetGlyphVAdvanceFunc (Font font, void* font_data, Codepoint glyph)
- public delegate void FontGetGlyphVAdvancesFunc (Font font, void* font_data, uint count, Codepoint first_glyph, uint glyph_stride, out Position first_advance, uint advance_stride)
- public delegate Position FontGetGlyphVKerningFunc (Font font, void* font_data, Codepoint first_glyph, Codepoint second_glyph)
This method should retrieve the kerning-adjustment value for a glyph-pair in the specified font, for horizontal text segments.
- public delegate Bool FontGetGlyphVOriginFunc (Font font, void* font_data, Codepoint glyph, out Position x, out Position y)
- public delegate Bool FontGetNominalGlyphFunc (Font font, void* font_data, Codepoint unicode, out Codepoint glyph)
- public delegate uint FontGetNominalGlyphsFunc (Font font, void* font_data, uint count, Codepoint first_unicode, uint unicode_stride, out Codepoint first_glyph, uint glyph_stride)
- public delegate Bool FontGetVariantGlyphFunc (Font font, void* font_data, Codepoint unicode, Codepoint variation_selector, out Codepoint glyph)
- public delegate void FontPaintGlyphFunc (Font font, void* font_data, Codepoint glyph, PaintFuncs paint_funcs, void* paint_data, uint palette_index, Color foreground)
- public delegate void PaintColorFunc (PaintFuncs funcs, void* paint_data, Bool is_foreground, Color color)
A virtual method for the PaintFuncs to paint a color everywhere within the current clip.
- public delegate Bool PaintCustomPaletteColorFunc (PaintFuncs funcs, void* paint_data, uint color_index, out Color color)
A virtual method for the PaintFuncs to fetch a color from the custom color palette.
- public delegate Bool PaintImageFunc (PaintFuncs funcs, void* paint_data, Blob image, uint width, uint height, Tag format, float slant, GlyphExtents? extents)
A virtual method for the PaintFuncs to paint a glyph image.
- public delegate void PaintLinearGradientFunc (PaintFuncs funcs, void* paint_data, ColorLine color_line, float x0, float y0, float x1, float y1, float x2, float y2)
A virtual method for the PaintFuncs to paint a linear gradient everywhere within the current clip.
- public delegate void PaintPopClipFunc (PaintFuncs funcs, void* paint_data)
A virtual method for the PaintFuncs to undo the effect of a prior call to the
hb_paint_funcs_push_clip_glyph_func_torhb_paint_funcs_push_clip_rectangle_func_tvfuncs. - public delegate void PaintPopGroupFunc (PaintFuncs funcs, void* paint_data, PaintCompositeMode mode)
A virtual method for the PaintFuncs to undo the effect of a prior call to the
hb_paint_funcs_push_group_func_tvfunc. - public delegate void PaintPopTransformFunc (PaintFuncs funcs, void* paint_data)
A virtual method for the PaintFuncs to undo the effect of a prior call to the
hb_paint_funcs_push_transform_func_tvfunc. - public delegate void PaintPushClipGlyphFunc (PaintFuncs funcs, void* paint_data, Codepoint glyph, Font font)
A virtual method for the PaintFuncs to clip subsequent paint calls to the outline of a glyph.
- public delegate void PaintPushGroupFunc (PaintFuncs funcs, void* paint_data)
A virtual method for the PaintFuncs to use an intermediate surface for subsequent paint calls.
- public delegate void PaintPushRectangleFunc (PaintFuncs funcs, void* paint_data, float xmin, float ymin, float xmax, float ymax)
A virtual method for the PaintFuncs to clip subsequent paint calls to a rectangle.
- public delegate void PaintPushTransformFunc (PaintFuncs funcs, void* paint_data, float xx, float yx, float xy, float yy, float dx, float dy)
A virtual method for the PaintFuncs to apply a transform to subsequent paint calls.
- public delegate void PaintRadialGradientFunc (PaintFuncs funcs, void* paint_data, ColorLine color_line, float x0, float y0, float r0, float x1, float y1, float r1)
A virtual method for the PaintFuncs to paint a radial gradient everywhere within the current clip.
- public delegate void PaintSweepGradientFunc (PaintFuncs funcs, void* paint_data, ColorLine color_line, float x0, float y0, float start_angle, float end_angle)
A virtual method for the PaintFuncs to paint a sweep gradient everywhere within the current clip.
- public delegate Blob ReferenceTableFunc (Face face, Tag tag)
Callback function for create_for_tables.
- public delegate UnicodeCombiningClass UnicodeCombiningClassFunc (UnicodeFuncs ufuncs, Codepoint unicode)
A virtual method for the UnicodeFuncs structure.
- public delegate Bool UnicodeComposeFunc (UnicodeFuncs ufuncs, Codepoint a, Codepoint b, out Codepoint ab)
A virtual method for the UnicodeFuncs structure.
- public delegate Bool UnicodeDecomposeFunc (UnicodeFuncs ufuncs, Codepoint ab, out Codepoint a, out Codepoint b)
A virtual method for the UnicodeFuncs structure.
- public delegate uint UnicodeEastasianWidthFunc (UnicodeFuncs ufuncs, Codepoint unicode)
A virtual method for the UnicodeFuncs structure.
- public delegate UnicodeGeneralCategory UnicodeGeneralCategoryFunc (UnicodeFuncs ufuncs, Codepoint unicode)
A virtual method for the UnicodeFuncs structure.
- public delegate Codepoint UnicodeMirroringFunc (UnicodeFuncs ufuncs, Codepoint unicode)
A virtual method for the UnicodeFuncs structure.
- public delegate Script UnicodeScriptFunc (UnicodeFuncs ufuncs, Codepoint unicode)
A virtual method for the UnicodeFuncs structure.
- public delegate uint UnicodedeComposeCompatibilityFunc (UnicodeFuncs ufuncs, Codepoint u, Codepoint decomposed)
Fully decompose
uto its Unicode compatibility decomposition. - public delegate void font_get_glyph_shape_func_t (Font font, void* font_data, Codepoint glyph, DrawFuncs draw_funcs, void* draw_data)
- 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
fontwhen 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
fontwhen the hb_font_tfonthas 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_tagsthat 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_tagsthat 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_tagfrom thescript_tagsarray. - 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_tagfromfont. - public void ot_metrics_get_position_with_fallback (Font font, OtMetricsTag metrics_tag, out Position position)
Fetches metrics value corresponding to
metrics_tagfromfont, 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_tagfromfontwith 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_tagfromfontwith 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_tagfromfontwith 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)
Converts a language tag to an Language.
- 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)
- 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
bufferusingfontturning its Unicode characters content to positioned glyphs. - public Bool shape_full (Font font, Buffer buffer, Feature[]? features, string[]? shaper_list)
See shape for details.
- 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)
See shape_full for basic details.
- 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.