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
  • Field style: Select font unit in the editor
  • Font variable
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
The SizeUnit property gets and sets the size unit of a font defined with a variable of type Font.
Example
p is Font
p.Name = "arial"
p.SizeUnit = unitPoint
p.Size = 12
Syntax

Getting a font size unit Hide the details

<Result> = <Font>.SizeUnit
<Result>: Integer constant
Unit used:
unitPixelPixel (CSS).
unitPointPoint.
unitPointWWINDEV point (unit used in previous versions).
<Font>: Font variable
Name of the Font variable to be used.

Setting a font size unit Hide the details

<Font>.SizeUnit = <New unit>
<Font>: Font variable
Name of the Font variable to be used.
<New unit>: Integer constant
Unit to be used:
unitPixelPixel (CSS).
unitPointPoint.
unitPointWWINDEV point (unit used in previous versions).
Remarks

Field style: Select font unit in the editor

You can define the font used for the different elements of the control in the "Style" tab of the control description window. You can set the unit to be used in the font size settings in the editor.

Font variable

A font can be created from a Font variable.
To define the font characteristics, use:
This font can be used:
Minimum version required
  • Version 27
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/10/2025

Send a report | Local help