PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
  • Style of a control: Setting character spacing in the editor
  • Font variable
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
The CharacterSpacing property gets and sets the spacing between characters.
Example
p is Font
p.Name = "Arial"
p.SizeUnit = unitPoint
p.Size = 12
p.LineSpacing = 1.5
p.CharacterSpacing = 5
Syntax

Getting the character spacing Hide the details

<Result> = <Font>.CharacterSpacing
<Result>: Integer
Character spacing value (expressed in points). This value can be positive or negative. This spacing is added to or subtracted from the default spacing value.
<Font>: Font variable
Name of the Font variable to be used.

Setting the character spacing Hide the details

<Font>.CharacterSpacing = <New spacing>
<Font>: Font variable
Name of the Font variable to be used.
<New spacing>: Integer
New character spacing value (expressed in points). This value can be positive or negative. This spacing is added to or subtracted from the default spacing value.
Remarks

Style of a control: Setting character spacing 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 also set the line spacing and character spacing for the current font in the font size settings.

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