Callbacks

  buffer_message_func_t (buffer, font, message, *user_data)
  destroy_func_t (*user_data)
  font_get_font_extents_func_t (font, font_data, extents, *user_data)
  font_get_glyph_advance_func_t (font, font_data, glyph, *user_data)
  font_get_glyph_advances_func_t (font, font_data, count, first_glyph, glyph_stride, first_advance, advance_stride, *user_data)
  font_get_glyph_contour_point_func_t (font, font_data, glyph, point_index, x, y, *user_data)
  font_get_glyph_extents_func_t (font, font_data, glyph, extents, *user_data)
  font_get_glyph_from_name_func_t (font, font_data, name, len, glyph, *user_data)
  font_get_glyph_func_t (font, font_data, unicode, variation_selector, glyph, *user_data)
  font_get_glyph_kerning_func_t (font, font_data, first_glyph, second_glyph, *user_data)
  font_get_glyph_name_func_t (font, font_data, glyph, name, size, *user_data)
  font_get_glyph_origin_func_t (font, font_data, glyph, x, y, *user_data)
  font_get_nominal_glyph_func_t (font, font_data, unicode, glyph, *user_data)
  font_get_nominal_glyphs_func_t (font, font_data, count, first_unicode, unicode_stride, first_glyph, glyph_stride, *user_data)
  font_get_variation_glyph_func_t (font, font_data, unicode, variation_selector, glyph, *user_data)
  reference_table_func_t (face, tag, *user_data)
  unicode_combining_class_func_t (ufuncs, unicode, *user_data)
  unicode_compose_func_t (ufuncs, a, b, ab, *user_data)
  unicode_decompose_compatibility_func_t (ufuncs, u, decomposed, *user_data)
  unicode_decompose_func_t (ufuncs, ab, a, b, *user_data)
  unicode_eastasian_width_func_t (ufuncs, unicode, *user_data)
  unicode_general_category_func_t (ufuncs, unicode, *user_data)
  unicode_mirroring_func_t (ufuncs, unicode, *user_data)
  unicode_script_func_t (ufuncs, unicode, *user_data)

Details

HarfBuzz.buffer_message_func_t(buffer, font, message, *user_data)
Parameters:
Return type:

int

HarfBuzz.destroy_func_t(*user_data)
Parameters:user_data (object or None) –
HarfBuzz.font_get_font_extents_func_t(font, font_data, extents, *user_data)
Parameters:
Return type:

int

HarfBuzz.font_get_glyph_advance_func_t(font, font_data, glyph, *user_data)
Parameters:
Return type:

int

HarfBuzz.font_get_glyph_advances_func_t(font, font_data, count, first_glyph, glyph_stride, first_advance, advance_stride, *user_data)
Parameters:
HarfBuzz.font_get_glyph_contour_point_func_t(font, font_data, glyph, point_index, x, y, *user_data)
Parameters:
Return type:

int

HarfBuzz.font_get_glyph_extents_func_t(font, font_data, glyph, extents, *user_data)
Parameters:
Return type:

int

HarfBuzz.font_get_glyph_from_name_func_t(font, font_data, name, len, glyph, *user_data)
Parameters:
Return type:

int

HarfBuzz.font_get_glyph_func_t(font, font_data, unicode, variation_selector, glyph, *user_data)
Parameters:
Return type:

int

HarfBuzz.font_get_glyph_kerning_func_t(font, font_data, first_glyph, second_glyph, *user_data)
Parameters:
Return type:

int

HarfBuzz.font_get_glyph_name_func_t(font, font_data, glyph, name, size, *user_data)
Parameters:
Return type:

int

HarfBuzz.font_get_glyph_origin_func_t(font, font_data, glyph, x, y, *user_data)
Parameters:
Return type:

int

HarfBuzz.font_get_nominal_glyph_func_t(font, font_data, unicode, glyph, *user_data)
Parameters:
Return type:

int

HarfBuzz.font_get_nominal_glyphs_func_t(font, font_data, count, first_unicode, unicode_stride, first_glyph, glyph_stride, *user_data)
Parameters:
Return type:

int

HarfBuzz.font_get_variation_glyph_func_t(font, font_data, unicode, variation_selector, glyph, *user_data)
Parameters:
Return type:

int

HarfBuzz.reference_table_func_t(face, tag, *user_data)
Parameters:
Return type:

HarfBuzz.blob_t

HarfBuzz.unicode_combining_class_func_t(ufuncs, unicode, *user_data)
Parameters:
Return type:

HarfBuzz.unicode_combining_class_t

HarfBuzz.unicode_compose_func_t(ufuncs, a, b, ab, *user_data)
Parameters:
Return type:

int

HarfBuzz.unicode_decompose_compatibility_func_t(ufuncs, u, decomposed, *user_data)
Parameters:
Returns:

number of codepoints in the full compatibility decomposition of u, or 0 if no decomposition available.

Return type:

int

Fully decompose u to its Unicode compatibility decomposition. The codepoints of the decomposition will be written to decomposed. The complete length of the decomposition will be returned.

If u has no compatibility decomposition, zero should be returned.

The Unicode standard guarantees that a buffer of length HarfBuzz.UNICODE_MAX_DECOMPOSITION_LEN codepoints will always be sufficient for any compatibility decomposition plus an terminating value of 0. Consequently, decompose must be allocated by the caller to be at least this length. Implementations of this function type must ensure that they do not write past the provided array.

Deprecated since version 2.0.0.

HarfBuzz.unicode_decompose_func_t(ufuncs, ab, a, b, *user_data)
Parameters:
Return type:

int

HarfBuzz.unicode_eastasian_width_func_t(ufuncs, unicode, *user_data)
Parameters:
Return type:

int

Deprecated since version 2.0.0.

HarfBuzz.unicode_general_category_func_t(ufuncs, unicode, *user_data)
Parameters:
Return type:

HarfBuzz.unicode_general_category_t

HarfBuzz.unicode_mirroring_func_t(ufuncs, unicode, *user_data)
Parameters:
Return type:

int

HarfBuzz.unicode_script_func_t(ufuncs, unicode, *user_data)
Parameters:
Return type:

HarfBuzz.script_t