Character direction is the direction in which the characters in a string are drawn in relation to the baseline. By default, the characters are drawn from left to right. An application can change the direction using GpiSetCharDirection. GpiSetCharDirection accepts as input one of the four values illustrated in the following figure. The value CHDIRN_DEFAULT is identical to CHDIRN_LEFTRIGHT.

ÚÄÄÄÂÄÄÄÂÄÄÄ¿            ÚÄÄÄÂÄÄÄÂÄÄÄ¿
³ A ³ B ³ C ³            ³ C ³ B ³ A ³
ÀÄÄÄÁÄÄÄÁÄÄÄÙ            ÀÄÄÄÁÄÄÄÁÄÄÄÙ
                                  
start       end          end         start

CHDIRN_LEFTRIGHT         CHDIRN_RIGHTLEFT


start                    end
                          
ÚÄÄÄ¿                    ÚÄÄÄ¿
³ A ³                    ³ C ³
ÃÄÄÄ´                    ÃÄÄÄ´
³ B ³                    ³ B ³
ÃÄÄÄ´                    ÃÄÄÄ´
³ C ³                    ³ A ³
ÀÄÄÄÙ                    ÀÄÄÄÙ
                          
end                      start

CHDIRN_TOPBOTTOM         CHDIRN_BOTTOMTOP

An application can determine the current character direction using GpiQueryCharDirection.


[Back] [Next]