Font property (ILEADRasterFXD)

Visual Basic example

Visual C++ 5.0 example

Delphi 4 example

C++ Builder example

 

Syntax

IFontDisp* Font

Overview

Refer to Drawing Three-Dimensional Shapes and Text.

Remarks

Specifies the Font object for any text that you draw using the DrawText method.

You set these properties as in the following example: LeadRasFxd1.Font.Name = "Arial".

The Font object has the following properties:

Property

Description

Bold

TRUE for bold text; FALSE for not bold.

Italic

TRUE for italic text; FALSE for not italic.

Name

Text string for name of the font. For example: "Times New Roman".

Size

Size of the font, in points. The maximum value s 2048 points.

StrikeThrough

TRUE for a line through the text; FALSE for no line.

Underline

TRUE for underlined text; FALSE for not underlined.

Weight

Possible runtime values are 400 for light and 700 for heavy.

See Also

Topics:

Drawing Effects:3D Drawing Special Effects