PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN

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
grCreateFont (Function)
In french: grCréePolice
Warning
grCreateFont is kept for backward compatibility.
In this version. the management of fonts in the drawings, charts and prints was standardized. grCreateFont becomes useless.
To use a font in a chart, a drawing, a control or a print, you must:
  1. Define a variable of type Font.
  2. Initialize this variable with the characteristics of the font (with FontCreate, or with the properties for font management).
The documentation about grCreateFont is as follows.
 
Purpose
Creating a font for the charts.
Syntax
grCreateFont(<FontNum>, <NbPixelsHeight>, <Style>, <NameWindowsFont> [,<Color>])
<FontNum> is the number (integer) identifying the created font
<NbPixelsHeight> is an integer corresponding to the height of the font (in pixels).
<Style> is the attribute (or style) of the font
  • iNormal, normal font (no attribute)
  • iBold, bold font (bold attribute)
  • iUnderlined, underlined font (underlined attribute)
  • iItalic, italic font (italic attribute)
  • iStrikeOut, strikeout font
<NameWindowsFont> is the name of the selected font (among the ones installed on the computer)
<Color> is the color of the text. This color corresponds to a preset constant (Black by default)
Details
The fonts created by grCreateFont are automatically destroyed when closing the application.
Creating a font with the number of an existing font automatically overwrites the former font.
The default color used for the fonts is black (Black).
Remarks
  • grDeleteAll does not destroy the fonts created by grCreateFont.
  • A series cannot contain more than 8000 elements.
Component: wd270grf.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment