ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage properties / Font management properties
  • Font variable
  • Limitations
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Orientation (Property)
In french: Angle
The Orientation property is used to:
  • Get the angle (in degrees) of a Font variable.
  • Modify the angle (in degrees) of a Font variable.
Note The angle is calculated from a horizontal line running counter-clockwise (trigonometrically).
Example
// Définir les caractéristiques d'une variable de type Police
Police1 is Font
Police1.Name = "Arial"
Police1.Color = LightYellow
Police1.Size = 14
Police1.SizeUnit = unitPoint
Police1.Orientation = 45
// Appliquer la police au champ "MonChamp"
MyControl.Police = Police1
Syntax

Getting the angle of a Font variable Hide the details

<Result> = <Font name>.Orientation
<Result>: Integer
Angle (in degrees) of the specified Font variable.
<Font name>: Font
Name of the Font variable to be used.

Modifying the angle of a Font variable Hide the details

<Font name>.Orientation = <New angle>
<Font name>: Font
Name of the Font variable to be used.
<New angle>: Integer
New angle (in degrees) for the specified Font variable.
Remarks

Font variable

A font can be created from a Font variable.
To define the font characteristics, use:
This font can be used:

Limitations

Orientation is ignored when a font is assigned to a window control.
For example, if the variable of type Police MyFont has the following characteristics: Size 12, Arial, Angle 45, only the first two characteristics will be taken into account when assigning it as follows:
MyControl.Police = MaPolice
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/13/2025

Send a report | Local help