TextAttribute.CharReplacement Property

Definition

Attribute key for a user-defined glyph to display in lieu of the font's standard glyph for a character.

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

Property Value

Attributes

Remarks

Attribute key for a user-defined glyph to display in lieu of the font's standard glyph for a character. Values are intances of GraphicAttribute. The default value is null, indicating that the standard glyphs provided by the font should be used.

This attribute is used to reserve space for a graphic or other component embedded in a line of text. It is required for correct positioning of 'inline' components within a line when bidirectional reordering (see java.text.Bidi) is performed. Each character (Unicode code point) will be rendered using the provided GraphicAttribute. Typically, the characters to which this attribute is applied should be &#92;uFFFC.

The GraphicAttribute determines the logical and visual bounds of the text; the actual Font values are ignored.

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

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