NumericShaper.GetContextualShaper Method

Definition

Overloads

GetContextualShaper(Ranges)

Returns a contextual shaper for the provided unicode range(s).

GetContextualShaper(Ranges, Int32)

Returns a contextual shaper for the provided unicode range(s).

GetContextualShaper(Ranges)

Returns a contextual shaper for the provided unicode range(s).

[Android.Runtime.Register("getContextualShaper", "(I)Ljava/awt/font/NumericShaper;", "")]
public static Java.Awt.Font.NumericShaper? GetContextualShaper (Java.Awt.Font.Ranges ranges);
[<Android.Runtime.Register("getContextualShaper", "(I)Ljava/awt/font/NumericShaper;", "")>]
static member GetContextualShaper : Java.Awt.Font.Ranges -> Java.Awt.Font.NumericShaper

Parameters

ranges
Ranges

the specified Unicode ranges

Returns

a shaper for the specified ranges

Attributes

Remarks

Returns a contextual shaper for the provided unicode range(s). Latin-1 (EUROPEAN) digits are converted to the decimal digits corresponding to the range of the preceding text, if the range is one of the provided ranges. Multiple ranges are represented by or-ing the values together, such as, NumericShaper.ARABIC | NumericShaper.THAI. The shaper assumes EUROPEAN as the starting context, that is, if EUROPEAN digits are encountered before any strong directional text in the string, the context is presumed to be EUROPEAN, and so the digits will not shape.

Java documentation for java.awt.font.NumericShaper.getContextualShaper(int).

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

GetContextualShaper(Ranges, Int32)

Returns a contextual shaper for the provided unicode range(s).

[Android.Runtime.Register("getContextualShaper", "(II)Ljava/awt/font/NumericShaper;", "")]
public static Java.Awt.Font.NumericShaper? GetContextualShaper (Java.Awt.Font.Ranges ranges, int defaultContext);
[<Android.Runtime.Register("getContextualShaper", "(II)Ljava/awt/font/NumericShaper;", "")>]
static member GetContextualShaper : Java.Awt.Font.Ranges * int -> Java.Awt.Font.NumericShaper

Parameters

ranges
Ranges

the specified Unicode ranges

defaultContext
Int32

the starting context, such as NumericShaper.EUROPEAN

Returns

a shaper for the specified Unicode ranges.

Attributes

Remarks

Returns a contextual shaper for the provided unicode range(s). Latin-1 (EUROPEAN) digits will be converted to the decimal digits corresponding to the range of the preceding text, if the range is one of the provided ranges. Multiple ranges are represented by or-ing the values together, for example, NumericShaper.ARABIC | NumericShaper.THAI. The shaper uses defaultContext as the starting context.

Java documentation for java.awt.font.NumericShaper.getContextualShaper(int, int).

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