buffer->in_length++;
}
+void
+hb_buffer_set_direction (hb_buffer_t *buffer,
+ hb_direction_t direction)
+
+{
+ buffer->direction = direction;
+}
+
+
/* HarfBuzz-Internal API */
HB_INTERNAL void
HB_BEGIN_DECLS
+typedef enum _hb_direction_t {
+ HB_DIRECTION_LTR,
+ HB_DIRECTION_RTL,
+ HB_DIRECTION_TTB,
+ HB_DIRECTION_BTT
+} hb_direction_t;
+
/* XXX Hide structs? */
typedef struct _hb_glyph_info_t {
hb_glyph_info_t *out_string;
hb_glyph_info_t *alt_string;
hb_glyph_position_t *positions;
+
+ hb_direction_t direction;
unsigned int max_lig_id;
} hb_buffer_t;
unsigned int properties,
unsigned int cluster);
+void
+hb_buffer_set_direction (hb_buffer_t *buffer,
+ hb_direction_t direction);
+
+
HB_END_DECLS
#endif /* HB_BUFFER_H */
/* TODO vertical */
- if (gpi->r2l)
+ if (buffer->direction == HB_DIRECTION_RTL)
{
POSITION (buffer->in_pos)->x_advance = entry_x - gpi->anchor_x;
POSITION (buffer->in_pos)->new_advance = TRUE;
hb_16dot16_t x_scale, y_scale;
hb_bool_t dvi;
- hb_bool_t r2l;
unsigned int last; /* the last valid glyph--used with cursive positioning */
hb_position_t anchor_x; /* the coordinates of the anchor point */
}
void
-hb_ot_layout_set_direction (hb_ot_layout_t *layout,
- hb_bool_t r2l)
-{
- layout->gpos_info.r2l = !!r2l;
-}
-
-void
hb_ot_layout_set_hinting (hb_ot_layout_t *layout,
hb_bool_t hinted)
{
void
hb_ot_layout_destroy (hb_ot_layout_t *layout);
-/* XXX */
-void
-hb_ot_layout_set_direction (hb_ot_layout_t *layout,
- hb_bool_t r2l);
-
void
hb_ot_layout_set_hinting (hb_ot_layout_t *layout,
hb_bool_t hinted);