TextAttribute.Superscript Property

Definition

Attribute key for superscripting and subscripting.

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

Property Value

Attributes

Remarks

Attribute key for superscripting and subscripting. Values are instances of <b>Integer</b>. The default value is 0, which means that no superscript or subscript is used.

Two constant values are provided, see #SUPERSCRIPT_SUPER and #SUPERSCRIPT_SUB. These have the values 1 and -1 respectively. Values of greater magnitude define greater levels of superscript or subscripting, for example, 2 corresponds to super-superscript, 3 to super-super-superscript, and similarly for negative values and subscript, up to a level of 7 (or -7). Values beyond this range are reserved; behavior is platform-dependent.

SUPERSCRIPT can impact the ascent and descent of a font. The ascent and descent can never become negative, however.

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

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