Chapter 20: fontitem object, Fontitem.bitmap, Fontitem object – Adobe Extending Flash Professional CS4 User Manual

Page 297

Advertising
background image

275

Chapter 20: fontItem object

Inheritance

Item object

> fontItem object

Availability
Flash MX 2004.

Description
The fontItem object is a subclass of the Item object (see

Item object

).

Property summary
In addition to the Item object properties, the following properties are available for the fontItem object:

fontItem.bitmap

Availability
Flash CS4 Professional.

Usage

fontItem.bitmap

Description
Property; a Boolean value that specifies whether the Font item is bitmapped (

true

) or not (

false

).

Example
Assuming that the first item in the Library is a Font item, the following code displays

true

in the Output panel if it is

bitmapped,

false

if it is not:

var theItem = fl.getDocumentDOM().library.items[0];
fl.trace("bitmap: "+ theItem.bitmap);

Property

Description

fontItem.bitmap

Specifies whether the Font item is bitmapped.

fontItem.bold

Specifies whether the Font item is bold.

fontItem.font

The name of the device font associated with the Font item.

fontItem.italic

Specifies whether the Font item is italic.

fontItem.size

The size of the Font item, in points.

Advertising