TextAttribute.Size Property

Definition

Attribute key for the font size.

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

Property Value

Attributes

Remarks

Attribute key for the font size. Values are instances of <b>Number</b>. The default value is 12pt.

This corresponds to the size parameter to the Font constructor.

Very large or small sizes will impact rendering performance, and the rendering system might not render text at these sizes. Negative sizes are illegal and result in the default size.

Note that the appearance and metrics of a 12pt font with a 2x transform might be different than that of a 24 point font with no transform.

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

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