|
|
|
|
|
- Default font
- Getting the list of fonts installed on a computer
- Miscellaneous
iSelectFont (Function) In french: iSelectPolice Creates a new print font from the standard window for font selection:
This font can be used in different processes. This font is identified by a font number, chosen during the development process. To choose this font and use it in the different print functions, simply select it with iFont. Remark: This function MUST NECESSARILY be called AFTER iPreview. Otherwise, the previews will be ignored.
FontNum is int
FontNum = iSelectFont(1, True, "Arial", 8, iBold + iUnderlined, LightRed)
IF FontNum = 0 THEN
ProcessError()
END
Syntax
<Result> = iSelectFont(<Font number> [, <Advanced options> [, <Preselected font> [, <Preselected height>]]] , <Style> [, <Color>])
<Result>: Integer - Identifier of the selected font,
- 0 if a failure occurred (selection canceled for example).
<Font number>: Integer Font identifier. This identifier will be used by iFont to select a font. <Advanced options>: Optional boolean - True (default option): enables the display for the underlined attribute and for the choice of colors.
- False: ignores the advanced options.
<Preselected font>: Optional character string Name of the font selected by default in the font selection window. No font is pre-selected if this parameter is not specified. <Preselected height>: Optional integer Height of the font selected by default in the font selection window. No height is selected by default if this parameter is not specified. <Style>: 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: Remarks Default font The default font has the following characteristics: - Font #0,
- Size: 12,
- Normal style.
Getting the list of fonts installed on a computer To get the list fonts installed on a computer: - In the program manager of Windows, choose the main group.
- Click the "Control panel" icon and select "Fonts".
- In the list of fonts installed, write down the names without taking the attributes and the types into account.
Remarks: - FontList returns the list of fonts installed on a computer.
- iSelectFont creates a print font from the standard Windows font selection window.
Miscellaneous - iCreateFont can also be used to create fonts.
- You must create as many fonts as the number of colors found in the text.
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|