TextAttribute.Width Property

Definition

Attribute key for the width of a font.

[Android.Runtime.Register("WIDTH")]
public static Java.Awt.Font.TextAttribute? Width { get; }
[<Android.Runtime.Register("WIDTH")>]
static member Width : Java.Awt.Font.TextAttribute

Property Value

Attributes

Remarks

Attribute key for the width of a font. Values are instances of <b>Number</b>. The default value is WIDTH_REGULAR.

Several constant values are provided, see #WIDTH_CONDENSED, #WIDTH_SEMI_CONDENSED, #WIDTH_REGULAR, #WIDTH_SEMI_EXTENDED, #WIDTH_EXTENDED.

The value is roughly the ratio of the advance width to that of the regular width.

The system can interpolate the provided value.

Java documentation for java.awt.font.TextAttribute.WIDTH.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to