TextAttribute.Posture Property

Definition

Attribute key for the posture of a font.

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

Property Value

Attributes

Remarks

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

Two constant values are provided, #POSTURE_REGULAR and #POSTURE_OBLIQUE. The value POSTURE_OBLIQUE corresponds to the style value Font.ITALIC as passed to the Font constructor.

The value is roughly the slope of the stems of the font, expressed as the run over the rise. Positive values lean right.

The system can interpolate the provided value.

This will affect the font's italic angle as returned by Font.getItalicAngle.

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

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