|
|
|
|
|
- Differences FontCreate and iCreateFont
FontCreate (Function) In french: PoliceCrée Creates a font definition. This font can be used:
// Create a font MyFont is Font MyFont = FontCreate("Arial", 12, iBold, LightYellow) // Use this font in the "CustomerName" control CustomerName.Font = MyFont
Syntax
<Result> = FontCreate(<Font name> [, <Size> [, <Style> [, <Color> [, <Angle>]]]])
<Result>: Font variable Font variable that can be used in the different drawing functions, chart functions or print functions that use a font. <Font name>: Character string Name of font used. This name must correspond to one of the fonts installed on the current computer. <Size>: Optional integer Size of font expressed in picas (1 Pica = 0.353 mm). The font size is set to 12 by default. <Style>: Optional Integer constant (or combination of constants) Font attributes: | | iBold | Bold font | iCondensed | Condensed characters | iExtended | Extended characters | iItalic | Italic font | iLarge | Large characters | iNormal (default value) | Standard font, without attributes | iStrikeOut | Strikethrough font | iUnderlined | Underlined font |
<Color>: Optional integer Color used for the font. If this parameter is not specified, the color used is black. This color can correspond to: <Angle>: Optional integer Angle (in degrees) according to which the text will be printed. The angle is calculated counterclockwise from a horizontal line (trigonometric direction). Remarks Differences FontCreate and iCreateFont FontCreate creates a font definition that can be used in all the elements of a WINDEV or WEBDEV application. This font is stored in the Font variable and can be used: iCreateFont creates a font that can be used by the printing functions.
Related Examples:
|
Unit examples (WEBDEV): Font property
[ + ] This example presents the use of the..Font properties and the use of the FontCreate function.
|
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|