FontMetrics.overhang

Overview | Methods | Fields | This Package | All Packages

FontMetrics.overhang

Specifies the extra width per string that may be added to some synthesized fonts.

Syntax

public int overhang;

Remarks

When synthesizing some attributes, such as bold or italic, a graphics device interface (GDI) or a device may have to add width to a string on both a per-character and per-string basis. For example, GDI makes a string bold by expanding the spacing of each character and overstriking by an offset value; it italicizes a font by shearing the string. In either case, there is an overhang past the basic string. For bold strings, the overhang is the distance by which the overstrike is offset. For italic strings, the overhang is the amount the top of the font is sheared past the bottom of the font.