Sign in Join
FPDoc Onlineexperiment

TFont.IsHorizontal function

Member of TFontpublicIn unit Graphics

Determines whether the font runs in horizontal direction, either normal or upside down.

Declaration

pascal
function IsHorizontal(AllowReverse: Boolean=False): Boolean

Arguments

AllowReverse

Boolean parameter which, if True, makes the function return True also when the font is rotated by 180 degrees, i.e. runs upside down from right to left.

Description

The boolean function IsHorizontal(AllowReverse:Boolean) queries the Orientation property of the font and returns True if the writing direction is horizontal (0 degrees).

In addition, when the optional parameter AllowReverse is True, the function returns True also when the text is upside down, i.e. rotated by 180 degrees.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.