DiGrande.it

Blind, Braille and Embossing Technologies

This site uses cookies to personalize content and ads, provide social media features and analyze links. By closing this banner or continuing to browse, you consent to their use.
Read the DiGrande.it Cookie Policy

Font- Sets a font type

Sets a font used in text drawing.

- Fonts(N,P,FS)

Parameters:

- (string) N: name of the font to be set;

- (int) P: Font size in point (optional);

- (int) FS: font style (optional). It can have the following values:

fsNormal: normal font;

fsBold: font in bold;

fsItalic: font in italics;

fsUnderline: underlined font;

fsStrikeOut: Strikethrough font.

Description:

Use Font to set the font used in drawing text. Size and style parameters are optional, if you omit the current size and style they are not set. The various styles can be combined.

Examples:

// Draws the text Biblos with the Arial font

Font("Arial",12,fsNormal)

Text("Biblos",10,10,hsTopLeft)

// Draws Biblos text in bold and italics with Times New Roman font

ColorPen(ClRed)

Font("Times New Roman",24,fsBold+fsItalic)

Text('Biblos',10,10,hsTopLeft)