PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Combining fonts
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Selects the default font. This font will be used by iPrint, iPrintWord, iTextWidth, iTextHeight, etc.
Notes:
  • This font must have been created by iCreateFont.
  • This font is active as long as iFont is not used again.
  • Linux Only the TrueType fonts can be handled.
Versions 15 and later
WINDEVLinux This function is now available for the WINDEV applications in Linux.
WEBDEV - Server codeLinux This function is now available for the WEBDEV sites in Linux.
Linux Caution: A specific configuration is required to use this function in Linux. See Print in Linux for more details.
New in version 15
WINDEVLinux This function is now available for the WINDEV applications in Linux.
WEBDEV - Server codeLinux This function is now available for the WEBDEV sites in Linux.
Linux Caution: A specific configuration is required to use this function in Linux. See Print in Linux for more details.
WINDEVLinux This function is now available for the WINDEV applications in Linux.
WEBDEV - Server codeLinux This function is now available for the WEBDEV sites in Linux.
Linux Caution: A specific configuration is required to use this function in Linux. See Print in Linux for more details.
Versions 18 and later
iPhone/iPad This function is now available for the iPhone/iPad applications.
New in version 18
iPhone/iPad This function is now available for the iPhone/iPad applications.
iPhone/iPad This function is now available for the iPhone/iPad applications.
Versions 19 and later
Android This function is now available for the Android applications.
Android Widget This function is now available in Android Widget mode.
New in version 19
Android This function is now available for the Android applications.
Android Widget This function is now available in Android Widget mode.
Android This function is now available for the Android applications.
Android Widget This function is now available in Android Widget mode.
Versions 21 and later
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
New in version 21
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Example
iPrintWord(iFont(2) + CU.LastName + iXPos(200) + CU.Firstname)
iSkipLine
iPrint(iFont(1) + iXPos(100) + CU.Company)
iEndPrinting
Syntax

Using a dynamic font Hide the details

<Result> = iFont(<Font Name> [, <Immediate Calculation>])
<Result>: Character string
Control string describing the use of the specified font.
<Font Name>: Font
Name of default font to use. This parameter corresponds to a Font variable. The font characteristics have been defined by FontCreate or via the properties for font management.
Linux Only the TrueType fonts can be handled.
<Immediate Calculation>: Optional boolean
Used to specify whether the font must be selected immediately (True by default) or whether it must be selected when printing (False, for the nested positions for example). See remarks for more details.
WINDEVWEBDEV - Server codeReports and QueriesAndroidAndroid Widget iPhone/iPadUniversal Windows 10 AppJavaAjaxUser code (UMC)

Using a font created by iCreateFont (5.5-compatible syntax) Hide the details

<Result> = iFont(<Font Number> [, <Immediate Calculation>])
<Result>: Character string
Control string describing the use of the specified font.
<Font Number>: Integer
Identifier of font used by default. This identifier was specified when the font was created by iCreateFont.
Linux Only the TrueType fonts can be handled.
<Immediate Calculation>: Optional boolean
Used to specify whether the font must be selected immediately (True by default) or whether it must be selected when printing (False, for the nested positions for example). See remarks for more details.
Remarks
WINDEVWEBDEV - Server codeReports and QueriesAndroidAndroid Widget iPhone/iPadWindows MobileUniversal Windows 10 AppJavaAjaxUser code (UMC)

Combining fonts

Unexpected results may occur when combining fonts. For example, the following code:
iFont(2)
iPrint("First Part" + iFont(1) + "Second Part")
is not equivalent to:
iPrint(iFont(2) + "First Part" + iFont(1) + "Second Part")
In the first case, the entire character string will be printed in font 1. Indeed, in this case, iFont(1) is run when building the string to print and therefore before the "First Part" string is printed.
To get an identical result, all you have to do is use iFont with the False parameter (in the first syntax): iFont(1, False) will be actually run during the print.
Components
WINDEVWEBDEV - Server codeReports and Queries wd230prn.dll
Windows Mobile wp230prn.dll
Java wd230java.jar
Linux wd230prn.so
Android wd230android.jar
Minimum required version
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment