beautypg.com

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

Page 301

background image

279

Last updated 5/2/2011

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.embeddedCharacters

Specifies characters to embed.

fontItem.embedRanges

Specifies items that can be selected in the Font Embedding dialog.

fontItem.embedVariantGlyphs

Specifies whether variant glyphs should be output in the font when publishing a SWF file.

fontItem.font

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

fontItem.isDefineFont4Symbol

Specifies the format of the font that is output when publishing a SWF filem.

fontItem.italic

Specifies whether the Font item is italic.

fontItem.size

The size of the Font item, in points.

This manual is related to the following products: