Edit

CanvasExtensions.DrawShapedText Method

Definition

Overloads

Name Description
DrawShapedText(SKCanvas, String, SKPoint, SKPaint)
Obsolete.

Draws shaped text on the canvas at the specified point.

DrawShapedText(SKCanvas, SKShaper, String, SKPoint, SKPaint)
Obsolete.

Draws shaped text on the canvas at the specified point using the provided shaper.

DrawShapedText(SKCanvas, String, SKPoint, SKFont, SKPaint)
Obsolete.

Draws shaped text on the canvas at the specified point.

DrawShapedText(SKCanvas, String, Single, Single, SKPaint)
Obsolete.

Draws shaped text on the canvas at the specified coordinates.

DrawShapedText(SKCanvas, SKShaper, String, SKPoint, SKFont, SKPaint)
Obsolete.

Draws shaped text on the canvas at the specified point using the provided shaper.

DrawShapedText(SKCanvas, SKShaper, String, Single, Single, SKPaint)
Obsolete.

Draws shaped text on the canvas at the specified coordinates.

DrawShapedText(SKCanvas, String, SKPoint, SKTextAlign, SKFont, SKPaint)

Draws shaped text on the canvas at the specified point with the specified alignment.

DrawShapedText(SKCanvas, String, Single, Single, SKFont, SKPaint)
Obsolete.

Draws shaped text on the canvas at the specified coordinates.

DrawShapedText(SKCanvas, SKShaper, String, SKPoint, SKTextAlign, SKFont, SKPaint)

Draws shaped text on the canvas at the specified point with the specified alignment using the provided shaper.

DrawShapedText(SKCanvas, SKShaper, String, Single, Single, SKFont, SKPaint)
Obsolete.

Draws shaped text on the canvas at the specified coordinates using the provided shaper.

DrawShapedText(SKCanvas, String, Single, Single, SKTextAlign, SKFont, SKPaint)

Draws shaped text on the canvas at the specified coordinates with the specified alignment.

DrawShapedText(SKCanvas, SKShaper, String, Single, Single, SKTextAlign, SKFont, SKPaint)

Draws shaped text on the canvas at the specified coordinates with the specified alignment using the provided shaper.

DrawShapedText(SKCanvas, String, SKPoint, SKPaint)

Caution

Use DrawShapedText(string text, SKPoint p, SKTextAlign textAlign, SKFont font, SKPaint paint) instead.

Draws shaped text on the canvas at the specified point.

[System.Obsolete("Use DrawShapedText(string text, SKPoint p, SKTextAlign textAlign, SKFont font, SKPaint paint) instead.", true)]
public static void DrawShapedText(this SkiaSharp.SKCanvas canvas, string text, SkiaSharp.SKPoint p, SkiaSharp.SKPaint paint);

Parameters

canvas
SKCanvas

The canvas to draw on.

text
String

The text to draw.

p
SKPoint

The point at which to draw the text.

paint
SKPaint

The paint to use when drawing the text.

Attributes

Applies to

DrawShapedText(SKCanvas, SKShaper, String, SKPoint, SKPaint)

Caution

Use DrawShapedText(SKShaper shaper, string text, SKPoint p, SKTextAlign textAlign, SKFont font, SKPaint paint) instead.

Draws shaped text on the canvas at the specified point using the provided shaper.

[System.Obsolete("Use DrawShapedText(SKShaper shaper, string text, SKPoint p, SKTextAlign textAlign, SKFont font, SKPaint paint) instead.", true)]
public static void DrawShapedText(this SkiaSharp.SKCanvas canvas, SkiaSharp.HarfBuzz.SKShaper shaper, string text, SkiaSharp.SKPoint p, SkiaSharp.SKPaint paint);

Parameters

canvas
SKCanvas

The canvas to draw on.

shaper
SKShaper

The text shaper to use when shaping the text.

text
String

The text to draw.

p
SKPoint

The point at which to draw the text.

paint
SKPaint

The paint to use when drawing the text.

Attributes

Applies to

DrawShapedText(SKCanvas, String, SKPoint, SKFont, SKPaint)

Caution

Use the overload with SKTextAlign parameter instead.

Draws shaped text on the canvas at the specified point.

[System.Obsolete("Use the overload with SKTextAlign parameter instead.")]
public static void DrawShapedText(this SkiaSharp.SKCanvas canvas, string text, SkiaSharp.SKPoint p, SkiaSharp.SKFont font, SkiaSharp.SKPaint paint);

Parameters

canvas
SKCanvas

The canvas to draw on.

text
String

The text to draw.

p
SKPoint

The point at which to draw the text.

font
SKFont

The font to use when shaping and drawing the text.

paint
SKPaint

The paint to use when drawing the text.

Attributes

Applies to

DrawShapedText(SKCanvas, String, Single, Single, SKPaint)

Caution

Use DrawShapedText(string text, float x, float y, SKTextAlign textAlign, SKFont font, SKPaint paint) instead.

Draws shaped text on the canvas at the specified coordinates.

[System.Obsolete("Use DrawShapedText(string text, float x, float y, SKTextAlign textAlign, SKFont font, SKPaint paint) instead.", true)]
public static void DrawShapedText(this SkiaSharp.SKCanvas canvas, string text, float x, float y, SkiaSharp.SKPaint paint);

Parameters

canvas
SKCanvas

The canvas to draw on.

text
String

The text to draw.

x
Single

The x-coordinate of the origin of the text being drawn.

y
Single

The y-coordinate of the origin of the text being drawn.

paint
SKPaint

The paint to use when drawing the text.

Attributes

Applies to

DrawShapedText(SKCanvas, SKShaper, String, SKPoint, SKFont, SKPaint)

Caution

Use the overload with SKTextAlign parameter instead.

Draws shaped text on the canvas at the specified point using the provided shaper.

[System.Obsolete("Use the overload with SKTextAlign parameter instead.")]
public static void DrawShapedText(this SkiaSharp.SKCanvas canvas, SkiaSharp.HarfBuzz.SKShaper shaper, string text, SkiaSharp.SKPoint p, SkiaSharp.SKFont font, SkiaSharp.SKPaint paint);

Parameters

canvas
SKCanvas

The canvas to draw on.

shaper
SKShaper

The text shaper to use when shaping the text.

text
String

The text to draw.

p
SKPoint

The point at which to draw the text.

font
SKFont

The font to use when shaping and drawing the text.

paint
SKPaint

The paint to use when drawing the text.

Attributes

Applies to

DrawShapedText(SKCanvas, SKShaper, String, Single, Single, SKPaint)

Caution

Use DrawShapedText(SKShaper shaper, string text, float x, float y, SKTextAlign textAlign, SKFont font, SKPaint paint) instead.

Draws shaped text on the canvas at the specified coordinates.

[System.Obsolete("Use DrawShapedText(SKShaper shaper, string text, float x, float y, SKTextAlign textAlign, SKFont font, SKPaint paint) instead.", true)]
public static void DrawShapedText(this SkiaSharp.SKCanvas canvas, SkiaSharp.HarfBuzz.SKShaper shaper, string text, float x, float y, SkiaSharp.SKPaint paint);

Parameters

canvas
SKCanvas

The canvas to draw on.

shaper
SKShaper

The text shaper to use when shaping the text.

text
String

The text to draw.

x
Single

The x-coordinate of the origin of the text being drawn.

y
Single

The y-coordinate of the origin of the text being drawn.

paint
SKPaint

The paint to use when drawing the text.

Attributes

Applies to

DrawShapedText(SKCanvas, String, SKPoint, SKTextAlign, SKFont, SKPaint)

Draws shaped text on the canvas at the specified point with the specified alignment.

public static void DrawShapedText(this SkiaSharp.SKCanvas canvas, string text, SkiaSharp.SKPoint p, SkiaSharp.SKTextAlign textAlign, SkiaSharp.SKFont font, SkiaSharp.SKPaint paint);

Parameters

canvas
SKCanvas

The canvas to draw on.

text
String

The text to draw.

p
SKPoint

The point at which to draw the text.

textAlign
SKTextAlign

The text alignment to use when drawing the text.

font
SKFont

The font to use when shaping and drawing the text.

paint
SKPaint

The paint to use when drawing the text.

Applies to

DrawShapedText(SKCanvas, String, Single, Single, SKFont, SKPaint)

Caution

Use the overload with SKTextAlign parameter instead.

Draws shaped text on the canvas at the specified coordinates.

[System.Obsolete("Use the overload with SKTextAlign parameter instead.")]
public static void DrawShapedText(this SkiaSharp.SKCanvas canvas, string text, float x, float y, SkiaSharp.SKFont font, SkiaSharp.SKPaint paint);

Parameters

canvas
SKCanvas

The canvas to draw on.

text
String

The text to draw.

x
Single

The x-coordinate of the origin of the text being drawn.

y
Single

The y-coordinate of the origin of the text being drawn.

font
SKFont

The font to use when shaping and drawing the text.

paint
SKPaint

The paint to use when drawing the text.

Attributes

Applies to

DrawShapedText(SKCanvas, SKShaper, String, SKPoint, SKTextAlign, SKFont, SKPaint)

Draws shaped text on the canvas at the specified point with the specified alignment using the provided shaper.

public static void DrawShapedText(this SkiaSharp.SKCanvas canvas, SkiaSharp.HarfBuzz.SKShaper shaper, string text, SkiaSharp.SKPoint p, SkiaSharp.SKTextAlign textAlign, SkiaSharp.SKFont font, SkiaSharp.SKPaint paint);

Parameters

canvas
SKCanvas

The canvas to draw on.

shaper
SKShaper

The text shaper to use when shaping the text.

text
String

The text to draw.

p
SKPoint

The point at which to draw the text.

textAlign
SKTextAlign

The text alignment to use when drawing the text.

font
SKFont

The font to use when shaping and drawing the text.

paint
SKPaint

The paint to use when drawing the text.

Applies to

DrawShapedText(SKCanvas, SKShaper, String, Single, Single, SKFont, SKPaint)

Caution

Use the overload with SKTextAlign parameter instead.

Draws shaped text on the canvas at the specified coordinates using the provided shaper.

[System.Obsolete("Use the overload with SKTextAlign parameter instead.")]
public static void DrawShapedText(this SkiaSharp.SKCanvas canvas, SkiaSharp.HarfBuzz.SKShaper shaper, string text, float x, float y, SkiaSharp.SKFont font, SkiaSharp.SKPaint paint);

Parameters

canvas
SKCanvas

The canvas to draw on.

shaper
SKShaper

The text shaper to use when shaping the text.

text
String

The text to draw.

x
Single

The x-coordinate of the origin of the text being drawn.

y
Single

The y-coordinate of the origin of the text being drawn.

font
SKFont

The font to use when shaping and drawing the text.

paint
SKPaint

The paint to use when drawing the text.

Attributes

Applies to

DrawShapedText(SKCanvas, String, Single, Single, SKTextAlign, SKFont, SKPaint)

Draws shaped text on the canvas at the specified coordinates with the specified alignment.

public static void DrawShapedText(this SkiaSharp.SKCanvas canvas, string text, float x, float y, SkiaSharp.SKTextAlign textAlign, SkiaSharp.SKFont font, SkiaSharp.SKPaint paint);

Parameters

canvas
SKCanvas

The canvas to draw on.

text
String

The text to draw.

x
Single

The x-coordinate of the origin of the text being drawn.

y
Single

The y-coordinate of the origin of the text being drawn.

textAlign
SKTextAlign

The text alignment to use when drawing the text.

font
SKFont

The font to use when shaping and drawing the text.

paint
SKPaint

The paint to use when drawing the text.

Applies to

DrawShapedText(SKCanvas, SKShaper, String, Single, Single, SKTextAlign, SKFont, SKPaint)

Draws shaped text on the canvas at the specified coordinates with the specified alignment using the provided shaper.

public static void DrawShapedText(this SkiaSharp.SKCanvas canvas, SkiaSharp.HarfBuzz.SKShaper shaper, string text, float x, float y, SkiaSharp.SKTextAlign textAlign, SkiaSharp.SKFont font, SkiaSharp.SKPaint paint);

Parameters

canvas
SKCanvas

The canvas to draw on.

shaper
SKShaper

The text shaper to use when shaping the text.

text
String

The text to draw.

x
Single

The x-coordinate of the origin of the text being drawn.

y
Single

The y-coordinate of the origin of the text being drawn.

textAlign
SKTextAlign

The text alignment to use when drawing the text.

font
SKFont

The font to use when shaping and drawing the text.

paint
SKPaint

The paint to use when drawing the text.

Applies to