Top |
GBoxed ├── hb_buffer_t ├── hb_glyph_info_t ├── hb_glyph_position_t ╰── hb_segment_properties_t GEnum ├── hb_buffer_content_type_t ╰── hb_buffer_serialize_format_t GFlags ├── hb_buffer_flags_t ╰── hb_buffer_serialize_flags_t
void hb_buffer_add (hb_buffer_t *buffer
,hb_codepoint_t codepoint
,unsigned int cluster
);
Since 1.0
void hb_buffer_add_utf16 (hb_buffer_t *buffer
,const uint16_t *text
,int text_length
,unsigned int item_offset
,int item_length
);
Since 1.0
void hb_buffer_add_utf32 (hb_buffer_t *buffer
,const uint32_t *text
,int text_length
,unsigned int item_offset
,int item_length
);
Since 1.0
void hb_buffer_add_utf8 (hb_buffer_t *buffer
,const char *text
,int text_length
,unsigned int item_offset
,int item_length
);
Since 1.0
void hb_buffer_add_codepoints (hb_buffer_t *buffer
,const hb_codepoint_t *text
,int text_length
,unsigned int item_offset
,int item_length
);
Since 0.9.31
hb_bool_t
hb_buffer_allocation_successful (hb_buffer_t *buffer
);
Since 1.0
hb_bool_t hb_buffer_deserialize_glyphs (hb_buffer_t *buffer
,const char *buf
,int buf_len
,const char **end_ptr
,hb_font_t *font
,hb_buffer_serialize_format_t format
);
Since 1.0
hb_buffer_content_type_t
hb_buffer_get_content_type (hb_buffer_t *buffer
);
Since 0.9.5
hb_glyph_info_t * hb_buffer_get_glyph_infos (hb_buffer_t *buffer
,unsigned int *length
);
Returns buffer glyph information array. Returned pointer is valid as long as buffer contents are not modified.
Since 1.0
hb_glyph_position_t * hb_buffer_get_glyph_positions (hb_buffer_t *buffer
,unsigned int *length
);
Returns buffer glyph position array. Returned pointer is valid as long as buffer contents are not modified.
Since 1.0
unsigned int
hb_buffer_get_length (hb_buffer_t *buffer
);
Returns the number of items in the buffer.
Since 1.0
hb_codepoint_t
hb_buffer_get_replacement_codepoint (hb_buffer_t *buffer
);
Since 0.9.31
void hb_buffer_get_segment_properties (hb_buffer_t *buffer
,hb_segment_properties_t *props
);
Since 0.9.7
hb_unicode_funcs_t *
hb_buffer_get_unicode_funcs (hb_buffer_t *buffer
);
Since 1.0
void * hb_buffer_get_user_data (hb_buffer_t *buffer
,hb_user_data_key_t *key
);
Since 1.0
void
hb_buffer_guess_segment_properties (hb_buffer_t *buffer
);
Sets unset buffer segment properties based on buffer Unicode
contents. If buffer is not empty, it must have content type
HB_BUFFER_CONTENT_TYPE_UNICODE
.
If buffer script is not set (ie. is HB_SCRIPT_INVALID
), it
will be set to the Unicode script of the first character in
the buffer that has a script other than HB_SCRIPT_COMMON
,
HB_SCRIPT_INHERITED
, and HB_SCRIPT_UNKNOWN
.
Next, if buffer direction is not set (ie. is HB_DIRECTION_INVALID
),
it will be set to the natural horizontal direction of the
buffer script as returned by hb_script_get_horizontal_direction()
.
Finally, if buffer language is not set (ie. is HB_LANGUAGE_INVALID
),
it will be set to the process's default language as returned by
hb_language_get_default()
. This may change in the future by
taking buffer script into consideration when choosing a language.
Since 0.9.7
hb_bool_t hb_buffer_pre_allocate (hb_buffer_t *buffer
,unsigned int size
);
Since 1.0
void
hb_buffer_reverse (hb_buffer_t *buffer
);
Reverses buffer contents.
Since 1.0
void
hb_buffer_reverse_clusters (hb_buffer_t *buffer
);
Reverses buffer clusters. That is, the buffer contents are reversed, then each cluster (consecutive items having the same cluster number) are reversed again.
Since 1.0
hb_buffer_serialize_format_t hb_buffer_serialize_format_from_string (const char *str
,int len
);
Since 1.0
const char *
hb_buffer_serialize_format_to_string (hb_buffer_serialize_format_t format
);
Since 1.0
unsigned int hb_buffer_serialize_glyphs (hb_buffer_t *buffer
,unsigned int start
,unsigned int end
,char *buf
,unsigned int buf_size
,unsigned int *buf_consumed
,hb_font_t *font
,hb_buffer_serialize_format_t format
,hb_buffer_serialize_flags_t flags
);
Since 1.0
const char **
hb_buffer_serialize_list_formats (void
);
Since 1.0
void hb_buffer_set_content_type (hb_buffer_t *buffer
,hb_buffer_content_type_t content_type
);
Since 0.9.5
void hb_buffer_set_direction (hb_buffer_t *buffer
,hb_direction_t direction
);
Since 1.0
void hb_buffer_set_flags (hb_buffer_t *buffer
,hb_buffer_flags_t flags
);
Since 0.9.7
void hb_buffer_set_language (hb_buffer_t *buffer
,hb_language_t language
);
Since 1.0
hb_bool_t hb_buffer_set_length (hb_buffer_t *buffer
,unsigned int length
);
Since 1.0
void hb_buffer_set_replacement_codepoint (hb_buffer_t *buffer
,hb_codepoint_t replacement
);
Since 0.9.31
void hb_buffer_set_script (hb_buffer_t *buffer
,hb_script_t script
);
Since 1.0
void hb_buffer_set_segment_properties (hb_buffer_t *buffer
,const hb_segment_properties_t *props
);
Since 0.9.7
void hb_buffer_set_unicode_funcs (hb_buffer_t *buffer
,hb_unicode_funcs_t *unicode_funcs
);
Since 1.0
hb_bool_t hb_buffer_set_user_data (hb_buffer_t *buffer
,hb_user_data_key_t *key
,void *data
,hb_destroy_func_t destroy
,hb_bool_t replace
);
Since 1.0
hb_bool_t hb_segment_properties_equal (const hb_segment_properties_t *a
,const hb_segment_properties_t *b
);
unsigned int
hb_segment_properties_hash (const hb_segment_properties_t *p
);
typedef struct { hb_codepoint_t codepoint; hb_mask_t mask; uint32_t cluster; } hb_glyph_info_t;
typedef struct { hb_position_t x_advance; hb_position_t y_advance; hb_position_t x_offset; hb_position_t y_offset; } hb_glyph_position_t;