TFont.Orientation property
Rotation for the current font in 1/10ths of a degree.
Declaration
property Orientation:;Description
Orientation is an
Integer property which contains the
rotation angle used for text in 1/10ths of a degree.
The rotation angle is measured between the x axis of the canvas and the font's
baseline; at zero angle the text is drawn horizontally from left to right
("3 o'clock direction"), and a positive angle corresponds to a rotation in
counter-clockwise direction.
Here are some examples (of course, intermediate values are allowed as well):
| 0 | Text is drawn horizontally from left to right. |
| 900 | Text is drawn vertically from bottom to top. |
| 1800 | Text is drawn upside down from right to left. |
| 2700 (or -900) | Text is drawn vertically from top to bottom. |
| 450 | Text is drawn diagonally upward from left/bottom to top/right. |
Setting a new value for the property causes the font Reference to be re-created, and calls Changes to signal the OnChange event handler (when assigned).
The default value for the property is 0 (zero).
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
