|
|
|
|
|
- Default font
- Font and family
- Getting the list of fonts installed on a computer
- Differences between FontCreate and iCreateFont
- Miscellaneous
- Freeing the fonts created by iCreateFont
iCreateFont (Function) In french: iCréePolice Creates a new print font. 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 be called AFTER the iPreview function.. Otherwise, the previews will be ignored.
iCreateFont(1, 48, iBold + iItalic, iRoman)
iPrint(iFont(1) + "Texte de taille 48")
Syntax
Create a new font Hide the details
iCreateFont(<Identifier> , <Size> , <Style> , <Name> [, <Color> [, <Angle>]])
<Identifier>: Integer Font identifier. This identifier will be used in the different print functions to specify the font used. <Size>: Integer Height of font in Pica points (1 Pica point = 0.353 mm). <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 |
<Name>: Character string Name of font (among the fonts installed on the current computer). <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 If iCreateFont is not used, the default font will have 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, select 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 font from the Windows font selection window
- iCreateFont can be used to create as many fonts as necessary (memory limit).
- You must create as many fonts as the number of colors found in the text.
- When printing to HTML or RTF files (functions iPreview or iDestination), 90° fonts are replaced by 0° fonts: text is printed horizontally.
Freeing the fonts created by iCreateFont When no longer used, the fonts created with iCreateFont can be destroyed by iReset to free resources. If iReset is not used, the fonts will be automatically destroyed when the application is closed.
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|