ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Standard functions / Print functions
  • Overview
  • Print font
  • Dynamic font
  • Printer font
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
Step 2: Creating print fonts
Overview
This step allows you to define and choose the different fonts that will be used in the printed document. You can choose and define:
  • specific print fonts: these fonts can only be used when printing with WLanguage functions.
  • dynamic fonts, that can be used on the screen (in windows, drawings) as well as when printing in WLanguage.
This step is optional.
The default font is used if no font is specified for the print job.
  • Font: Don't care,
  • Font 0,
  • size: 12 pica,
  • normal style,
  • color: black.
Caution: You can only print by using the printer fonts. If the font used is not available, the closest font will be used.
Print font
The print fonts are created by iCreateFont. This function allows you to choose:
  • the typeface (name and family)
    Constants for the typeface:
    iCourierCourier font (fixed character width)
    iDefaultAny font ("Don't care")
    iRomanRoman font (exotic font)
    iSwissSwiss font (quality font)
  • the size (of the characters)
  • the attributes (bold, italic, underlined)
    Constants for the attributes:
    iBoldBold font
    iCondensedCondensed characters
    iExtendedExtended characters
    iItalicItalic font
    iLargeLarge characters
    iNormal
    (default value)
    Standard font, without attributes
    iStrikeOutStrikethrough font
    iUnderlinedUnderlined font
  • the color (see the preset constants)
The different parameters of the font are defined via several constants.
Each font is associated with a number. To choose the print font, simply use iFont.
Dynamic font
iPhone/iPad You also have the ability to create dynamic fonts. A "Font" variable allows you to create a font that can be used in all the objects of the project: windows, reports, prints, charts, drawings, ...
The dynamic fonts are used to print a text oriented at 90° for example (with the Angle property of the dynamic font).
To define a dynamic font:
  1. Create a variable of type Font.
  2. Define the characteristics of the font:
To choose a print font, all you have to do is use iFont.
Printer font
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 06/21/2023

Send a report | Local help