Name
pcontext:SetBaseDir -- set base direction for context
Synopsis
pcontext:SetBaseDir(direction)
Function
Sets the base direction for the context. The direction parameter can be set to one of the following constants:

#PANGO_DIRECTION_LTR
A strong left-to-right direction.
#PANGO_DIRECTION_RTL
A strong right-to-left direction.
#PANGO_DIRECTION_WEAK_LTR
A weak left-to-right direction.
#PANGO_DIRECTION_WEAK_RTL
A weak right-to-left direction.
#PANGO_DIRECTION_NEUTRAL
No direction specified.

The base direction is used in applying the Unicode bidirectional algorithm; if the direction is #PANGO_DIRECTION_LTR or #PANGO_DIRECTION_RTL, then the value will be used as the paragraph direction in the Unicode bidirectional algorithm. A value of #PANGO_DIRECTION_WEAK_LTR or #PANGO_DIRECTION_WEAK_RTL is used only for paragraphs that do not contain any strong characters themselves.

Inputs
direction
the new base direction

Show TOC