summaryrefslogtreecommitdiff
path: root/src/hb-buffer-private.hh
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@behdad.org>2011-04-15 19:26:24 -0400
committerBehdad Esfahbod <behdad@behdad.org>2011-04-15 19:26:24 -0400
commitc0af193c8e25c4f11d23b8893e9ce1c2d2615bb2 (patch)
tree5bf7375b806df0892affc1b04ff4feb9b4aac349 /src/hb-buffer-private.hh
parent00bec2c969555e76c3f84650a1d3c45308e585ad (diff)
Change buffer default properties to invalid
This includes HB_DIRECTION_INVALID and HB_SCRIPT_INVALID. The INVALID will cause a "guess whatever from the text" in hb_shape(). While it's not ideal, it works better than the previous defaults at least (HB_DIRECTION_LTR and HB_SCRIPT_COMMON).
Diffstat (limited to 'src/hb-buffer-private.hh')
-rw-r--r--src/hb-buffer-private.hh9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/hb-buffer-private.hh b/src/hb-buffer-private.hh
index 4b1ff12e..2b063b70 100644
--- a/src/hb-buffer-private.hh
+++ b/src/hb-buffer-private.hh
@@ -94,8 +94,6 @@ struct _hb_buffer_t {
/* Buffer contents */
- unsigned int allocated; /* Length of allocated arrays */
-
hb_bool_t have_output; /* Whether we have an output buffer going on */
hb_bool_t have_positions; /* Whether we have positions */
hb_bool_t in_error; /* Allocation failed */
@@ -104,14 +102,13 @@ struct _hb_buffer_t {
unsigned int len; /* Length of ->info and ->pos arrays */
unsigned int out_len; /* Length of ->out array if have_output */
+ unsigned int serial;
+
+ unsigned int allocated; /* Length of allocated arrays */
hb_glyph_info_t *info;
hb_glyph_info_t *out_info;
hb_glyph_position_t *pos;
- /* Other stuff */
-
- unsigned int serial;
-
/* Methods */
inline unsigned int backtrack_len (void) const