[ Version ( since = "0.9.2" ) ]
public void set_direction (Direction direction)
Set the text flow direction of the buffer.
No shaping can happen without setting buffer direction, and it controls the visual direction for the output glyphs; for RTL
direction the glyphs will be reversed. Many layout features depend on the proper setting of the direction, for example, reversing RTL
text before shaping, then shaping with LTR direction is not the same as keeping the text in logical order and shaping with RTL direction.
| direction |
the Direction of the |
| buffer |
An Buffer |