|
- Using the drawing functions
- Fonts
dFont (Function) In french: dPolice
// Initialize the drawing in an Image control dStartDrawing(IMG_Drawing) // Declare the character font: // Arial, size 12, bold dFont("Arial", 12, iBold)
Versions 24 and later New in version 24 Syntax
Using a specific font for the drawings Hide the details
dFont([<Image>, ] <Font> [, <Font size> [, <Font attributes> [, <Text inclination>]]])
<Image>: Optional control name or optional Image, WDPic or picLayer variable Versions 24 and later New in version 24
<Font>: Character string Name of the font used when the text is drawn by dText. This parameter must not correspond to a font family. The list of fonts installed on the current computer is returned by FontList. <Font size>: Optional integer Size of the font (in pixels). The default value is 12. <Font attributes>: Optional constant (or combination of constants) Font attributes to use: | | iStrikeOut | Strikes the text drawn.
| iBold | Assigns the bold attribute to the text drawn. | iItalic | Assigns the italic attribute to the text drawn. | iNormal (Default value) | Normalizes the text drawn | iUnderlined | Underlines the text drawn.
|
<Text inclination>: Optional integer Specifies the inclination of the text (in degrees). The default value is 0. Business / UI classification : Neutral code
This page is also available for…
|
|
|
| |
| Click [Add] to post a comment |
|
| |
|
| |
| |
| |
| |
| |
| |
| | |
| |