TextRunShaper.ShapeTextRun Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
ShapeTextRun(ICharSequence, Int32, Int32, Int32, Int32, Single, Single, Boolean, Paint) |
Shape non-styled text. |
ShapeTextRun(Char[], Int32, Int32, Int32, Int32, Single, Single, Boolean, Paint) |
Shape non-styled text. |
ShapeTextRun(String, Int32, Int32, Int32, Int32, Single, Single, Boolean, Paint) |
Shape non-styled text. |
ShapeTextRun(ICharSequence, Int32, Int32, Int32, Int32, Single, Single, Boolean, Paint)
Shape non-styled text.
[Android.Runtime.Register("shapeTextRun", "(Ljava/lang/CharSequence;IIIIFFZLandroid/graphics/Paint;)Landroid/graphics/text/PositionedGlyphs;", "", ApiSince=31)]
public static Android.Graphics.Text.PositionedGlyphs ShapeTextRun (Java.Lang.ICharSequence text, int start, int count, int contextStart, int contextCount, float xOffset, float yOffset, bool isRtl, Android.Graphics.Paint paint);
[<Android.Runtime.Register("shapeTextRun", "(Ljava/lang/CharSequence;IIIIFFZLandroid/graphics/Paint;)Landroid/graphics/text/PositionedGlyphs;", "", ApiSince=31)>]
static member ShapeTextRun : Java.Lang.ICharSequence * int * int * int * int * single * single * bool * Android.Graphics.Paint -> Android.Graphics.Text.PositionedGlyphs
Parameters
- text
- ICharSequence
a text buffer to be shaped. Any styled spans stored in this text are ignored.
- start
- Int32
a start index of shaping target in the buffer.
- count
- Int32
a length of shaping target in the buffer.
- contextStart
- Int32
a start index of context used for shaping in the buffer.
- contextCount
- Int32
a length of context used for shaping in the buffer.
- xOffset
- Single
an additional amount of x offset of the result glyphs.
- yOffset
- Single
an additional amount of y offset of the result glyphs.
- isRtl
- Boolean
true if this text is shaped for RTL direction, false otherwise.
- paint
- Paint
a paint used for shaping text.
Returns
a shape result
- Attributes
Remarks
Shape non-styled text.
This function shapes the text of the given range under the context of given context range. Some script, e.g. Arabic or Devanagari, changes letter shape based on its location or surrounding characters.
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
ShapeTextRun(Char[], Int32, Int32, Int32, Int32, Single, Single, Boolean, Paint)
Shape non-styled text.
[Android.Runtime.Register("shapeTextRun", "([CIIIIFFZLandroid/graphics/Paint;)Landroid/graphics/text/PositionedGlyphs;", "", ApiSince=31)]
public static Android.Graphics.Text.PositionedGlyphs ShapeTextRun (char[] text, int start, int count, int contextStart, int contextCount, float xOffset, float yOffset, bool isRtl, Android.Graphics.Paint paint);
[<Android.Runtime.Register("shapeTextRun", "([CIIIIFFZLandroid/graphics/Paint;)Landroid/graphics/text/PositionedGlyphs;", "", ApiSince=31)>]
static member ShapeTextRun : char[] * int * int * int * int * single * single * bool * Android.Graphics.Paint -> Android.Graphics.Text.PositionedGlyphs
Parameters
- text
- Char[]
a text buffer to be shaped
- start
- Int32
a start index of shaping target in the buffer.
- count
- Int32
a length of shaping target in the buffer.
- contextStart
- Int32
a start index of context used for shaping in the buffer.
- contextCount
- Int32
a length of context used for shaping in the buffer.
- xOffset
- Single
an additional amount of x offset of the result glyphs.
- yOffset
- Single
an additional amount of y offset of the result glyphs.
- isRtl
- Boolean
true if this text is shaped for RTL direction, false otherwise.
- paint
- Paint
a paint used for shaping text.
Returns
a shape result.
- Attributes
Remarks
Shape non-styled text.
This function shapes the text of the given range under the context of given context range. Some script, e.g. Arabic or Devanagari, changes letter shape based on its location or surrounding characters.
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
ShapeTextRun(String, Int32, Int32, Int32, Int32, Single, Single, Boolean, Paint)
Shape non-styled text.
public static Android.Graphics.Text.PositionedGlyphs ShapeTextRun (string text, int start, int count, int contextStart, int contextCount, float xOffset, float yOffset, bool isRtl, Android.Graphics.Paint paint);
static member ShapeTextRun : string * int * int * int * int * single * single * bool * Android.Graphics.Paint -> Android.Graphics.Text.PositionedGlyphs
Parameters
- text
- String
a text buffer to be shaped. Any styled spans stored in this text are ignored.
- start
- Int32
a start index of shaping target in the buffer.
- count
- Int32
a length of shaping target in the buffer.
- contextStart
- Int32
a start index of context used for shaping in the buffer.
- contextCount
- Int32
a length of context used for shaping in the buffer.
- xOffset
- Single
an additional amount of x offset of the result glyphs.
- yOffset
- Single
an additional amount of y offset of the result glyphs.
- isRtl
- Boolean
true if this text is shaped for RTL direction, false otherwise.
- paint
- Paint
a paint used for shaping text.
Returns
a shape result
Remarks
Shape non-styled text.
This function shapes the text of the given range under the context of given context range. Some script, e.g. Arabic or Devanagari, changes letter shape based on its location or surrounding characters.
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.