This commit is contained in:
Behdad Esfahbod 2012-11-13 16:50:45 -08:00
parent 66ac2ff32e
commit 92f9bfed42
1 changed files with 14 additions and 12 deletions

View File

@ -62,18 +62,6 @@ typedef struct hb_glyph_position_t {
hb_var_int_t var; hb_var_int_t var;
} hb_glyph_position_t; } hb_glyph_position_t;
typedef enum {
HB_BUFFER_CONTENT_TYPE_INVALID = 0,
HB_BUFFER_CONTENT_TYPE_UNICODE,
HB_BUFFER_CONTENT_TYPE_GLYPHS
} hb_buffer_content_type_t;
typedef enum {
HB_BUFFER_FLAGS_DEFAULT = 0x00000000,
HB_BUFFER_FLAG_BOT = 0x00000001, /* Beginning-of-text */
HB_BUFFER_FLAG_EOT = 0x00000002, /* End-of-text */
HB_BUFFER_FLAG_PRESERVE_DEFAULT_IGNORABLES = 0x00000004
} hb_buffer_flags_t;
hb_buffer_t * hb_buffer_t *
hb_buffer_create (void); hb_buffer_create (void);
@ -99,6 +87,12 @@ hb_buffer_get_user_data (hb_buffer_t *buffer,
hb_user_data_key_t *key); hb_user_data_key_t *key);
typedef enum {
HB_BUFFER_CONTENT_TYPE_INVALID = 0,
HB_BUFFER_CONTENT_TYPE_UNICODE,
HB_BUFFER_CONTENT_TYPE_GLYPHS
} hb_buffer_content_type_t;
void void
hb_buffer_set_content_type (hb_buffer_t *buffer, hb_buffer_set_content_type (hb_buffer_t *buffer,
hb_buffer_content_type_t content_type); hb_buffer_content_type_t content_type);
@ -135,6 +129,14 @@ hb_buffer_set_language (hb_buffer_t *buffer,
hb_language_t hb_language_t
hb_buffer_get_language (hb_buffer_t *buffer); hb_buffer_get_language (hb_buffer_t *buffer);
typedef enum {
HB_BUFFER_FLAGS_DEFAULT = 0x00000000,
HB_BUFFER_FLAG_BOT = 0x00000001, /* Beginning-of-text */
HB_BUFFER_FLAG_EOT = 0x00000002, /* End-of-text */
HB_BUFFER_FLAG_PRESERVE_DEFAULT_IGNORABLES = 0x00000004
} hb_buffer_flags_t;
void void
hb_buffer_set_flags (hb_buffer_t *buffer, hb_buffer_set_flags (hb_buffer_t *buffer,
hb_buffer_flags_t flags); hb_buffer_flags_t flags);