Contents

textBaseline

A string that specifies how the bounding box aligns vertically relative to the y-coordinate.

Declaration

attribute DOMString textBaseline;

Discussion

The y-coordinate of a line of text corresponds to the point on the text glyphs specified by textBaseline. Possible values are top, hanging, middle, alphabetic (default), ideographic, and bottom. The position of each value on the text glyphs is illustrated in Figure 1.

[Image]

See textBaseline Constants for descriptions of the constants.

See Also

Drawing Text