Condividi tramite


TextAttribute.Transform Property

Definition

Attribute key for the transform of a font.

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

Property Value

Attributes

Remarks

Attribute key for the transform of a font. Values are instances of <b>TransformAttribute</b>. The default value is TransformAttribute.IDENTITY.

The primary intent is to support scaling and skewing, though other effects are possible.

Some transforms will cause the baseline to be rotated and/or shifted. The text and the baseline are transformed together so that the text follows the new baseline. For example, with text on a horizontal baseline, the new baseline follows the direction of the unit x vector passed through the transform. Text metrics are measured against this new baseline. So, for example, with other things being equal, text rendered with a rotated TRANSFORM and an unrotated TRANSFORM will measure as having the same ascent, descent, and advance.

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

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