Function EN Version 1.90

@RTDocFontsAddFont

RichText

Syntax

@RTDocFontsAddFont(HRT1;TEXT2);
@RTDocFontsAddFont(HRT1;TEXT2;FNFONTFAMILY3);

Description

Adds a new font with the name TEXT TEXT2 and the optional font family FN FNFONTFAMILY3 to a font field HRT HRT1, whose name is usually $Fonts.

Return value:
A FontHandle (NUMBER) for the new font, or @ERROR in case of an error.

OS/2 Fonts:

Font name   Font Family
"Helvetica"   0242
"Times New Roman"   0242
"Arial MT"   0034
"Courier Bold"   0241
"Courier Bold Italic"   0241
"Courier Italic"   0241
"Courier New"   0054
"Helv Bold"   0242
"Helv Bold Italic"   0242
"Helv Italic"   0242
"Helvetica Bold"   0242
"Helvetica Bold Italic"   0242
"Helvetica Italic"   0242
"Symbol Set"   0242
"System Monospaced"   0241
"System Proportional"   0242
"System Proportional Non-ISO"   0242
"System VIO"   0241
"Times New Roman Bold"   0242
"Times New Roman Bold Italic"   0242
"Times New Roman Italic"   0242
"Tms Rmn Bold"   0242
"Tms Rmn Bold Italic"   0242
"Tms Rmn Italic"   0242

Windows Fonts:

Font name   Font Family
"Arial"   0038
"Courier New"   0053
"Fixedsys"   0049
"Marlett"   0006
"Modern"   0050
"MS Sans Serif"   0034
"MS Serif"   0018
"Small Fonts"   0034
"Symbol"   0018
"System"   0034
"Terminal"   0049
"Times New Roman"   0022
"Wingdings"   0006

Example: @RTDocFontsAddFont(HRT1;TEXT2;FNFONTFAMILY3);

RetHandler:=@RTDocFontsAddFont($Fonts[noteh1];"Arial";38);

Adds the font "Arial" with font family 38 to the font field (HRT) $Fonts of the document identified by NOTESHANDLE noteh1.

Note : This text was machine-translated and may contain inaccuracies.