My favorites | English | Sign in

o3d.CanvasFontMetrics Class Reference

List of all members.


Detailed Description

CanvasFontMetrics is used to return values, measured in pixels, describing the properties of a font used by the CanvasPaint objects. All the properties of CanvasFontMetrics are read-only.

Public Properties

number ascent o3d.CanvasFontMetrics
number bottom o3d.CanvasFontMetrics
number descent o3d.CanvasFontMetrics
number leading o3d.CanvasFontMetrics
number top o3d.CanvasFontMetrics

Member Property Documentation

number CanvasFontMetrics.ascent

The recommended distance above the baseline (will be <= 0) This property is read-only.

number CanvasFontMetrics.bottom

The greatest distance below the baseline for any glyph (will be >= 0) This property is read-only.

number CanvasFontMetrics.descent

The recommended distance below the baseline (will be >= 0) This property is read-only.

number CanvasFontMetrics.leading

The recommended distance to add between lines of text (will be >= 0) This property is read-only.

number CanvasFontMetrics.top

The greatest distance above the baseline for any glyph (will be <= 0) This property is read-only.