diff options
author | Behdad Esfahbod <behdad@behdad.org> | 2009-08-01 22:53:04 -0400 |
---|---|---|
committer | Behdad Esfahbod <behdad@behdad.org> | 2009-11-02 14:40:26 -0500 |
commit | f1322e52d557726baa010be8d35a594748e8fa1a (patch) | |
tree | 78851dbd711796a98bad95582211df11666f28d9 /src/hb-buffer.h | |
parent | 6d5bb18e93d2a53350b342869a3ec8f25f0396c2 (diff) |
[HB] Cleanup public buffer structs
Diffstat (limited to 'src/hb-buffer.h')
-rw-r--r-- | src/hb-buffer.h | 35 |
1 files changed, 17 insertions, 18 deletions
diff --git a/src/hb-buffer.h b/src/hb-buffer.h index 4a37cdb8..069e6dd2 100644 --- a/src/hb-buffer.h +++ b/src/hb-buffer.h @@ -41,15 +41,13 @@ typedef enum _hb_direction_t { HB_DIRECTION_BTT } hb_direction_t; -/* XXX these structs need review before we can commit to them */ - typedef struct _hb_glyph_info_t { - hb_codepoint_t gindex; - unsigned int properties; - unsigned int cluster; - unsigned short component; - unsigned short ligID; - unsigned int internal; + hb_codepoint_t codepoint; + uint32_t properties; + uint32_t cluster; + uint16_t component; + uint16_t lig_id; + uint32_t internal; } hb_glyph_info_t; typedef struct _hb_glyph_position_t { @@ -57,15 +55,16 @@ typedef struct _hb_glyph_position_t { hb_position_t y_pos; hb_position_t x_advance; hb_position_t y_advance; - unsigned short back; /* number of glyphs to go back - for drawing current glyph */ - hb_bool_t new_advance; /* if set, the advance width values are - absolute, i.e., they won't be - added to the original glyph's value - but rather replace them */ - short cursive_chain; /* character to which this connects, - may be positive or negative; used - only internally */ + /* XXX these should all be replaced by "uint32_t internal" */ + hb_bool_t new_advance :1; /* if set, the advance width values are + absolute, i.e., they won't be + added to the original glyph's value + but rather replace them */ + unsigned short back : 15; /* number of glyphs to go back + for drawing current glyph */ + short cursive_chain : 16; /* character to which this connects, + may be positive or negative; used + only internally */ } hb_glyph_position_t; @@ -103,7 +102,7 @@ hb_buffer_ensure (hb_buffer_t *buffer, void hb_buffer_add_glyph (hb_buffer_t *buffer, - hb_codepoint_t glyph_index, + hb_codepoint_t codepoint, unsigned int properties, unsigned int cluster); |