SKShaper.Shape 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
| Name | Description |
|---|---|
| Shape(Buffer, SKFont) |
Shapes the text in the specified buffer using the font. |
| Shape(Buffer, SKPaint) |
Obsolete.
Shapes the text in the specified buffer using the properties from the paint. |
| Shape(String, SKFont) |
Shapes the specified text using the font. |
| Shape(String, SKPaint) |
Obsolete.
Shapes the specified text using the properties from the paint. |
| Shape(Buffer, Single, Single, SKFont) |
Shapes the text in the specified buffer using the font, with the specified offset. |
| Shape(Buffer, Single, Single, SKPaint) |
Obsolete.
Shapes the text in the specified buffer using the properties from the paint, with the specified offset. |
| Shape(String, Single, Single, SKFont) |
Shapes the specified text using the font, with the specified offset. |
| Shape(String, Single, Single, SKPaint) |
Obsolete.
Shapes the specified text using the properties from the paint. |
Shape(Buffer, SKFont)
Shapes the text in the specified buffer using the font.
public SkiaSharp.HarfBuzz.SKShaper.Result Shape(HarfBuzzSharp.Buffer buffer, SkiaSharp.SKFont font);
Parameters
- buffer
- Buffer
The HarfBuzz buffer containing the text to shape.
- font
- SKFont
The font to use for shaping.
Returns
Returns the results of the shaping operation.
Applies to
Shape(Buffer, SKPaint)
Caution
Use Shape(Buffer buffer, SKFont font) instead.
Shapes the text in the specified buffer using the properties from the paint.
public SkiaSharp.HarfBuzz.SKShaper.Result Shape(HarfBuzzSharp.Buffer buffer, SkiaSharp.SKPaint paint);
[System.Obsolete("Use Shape(Buffer buffer, SKFont font) instead.")]
public SkiaSharp.HarfBuzz.SKShaper.Result Shape(HarfBuzzSharp.Buffer buffer, SkiaSharp.SKPaint paint);
Parameters
- buffer
- Buffer
The HarfBuzz buffer containing the text to shape.
- paint
- SKPaint
The paint to use for shaping.
Returns
Returns the results of the shaping operation.
- Attributes
Applies to
Shape(String, SKPaint)
Caution
Use Shape(string text, SKFont font) instead.
Shapes the specified text using the properties from the paint.
public SkiaSharp.HarfBuzz.SKShaper.Result Shape(string text, SkiaSharp.SKPaint paint);
[System.Obsolete("Use Shape(string text, SKFont font) instead.")]
public SkiaSharp.HarfBuzz.SKShaper.Result Shape(string text, SkiaSharp.SKPaint paint);
Parameters
- text
- String
The text to shape.
- paint
- SKPaint
The paint to use.
Returns
Returns the results of the shaping operation.
- Attributes
Applies to
Shape(Buffer, Single, Single, SKFont)
Shapes the text in the specified buffer using the font, with the specified offset.
public SkiaSharp.HarfBuzz.SKShaper.Result Shape(HarfBuzzSharp.Buffer buffer, float xOffset, float yOffset, SkiaSharp.SKFont font);
Parameters
- buffer
- Buffer
The HarfBuzz buffer containing the text to shape.
- xOffset
- Single
The x-offset to apply to the glyph positions.
- yOffset
- Single
The y-offset to apply to the glyph positions.
- font
- SKFont
The font to use for shaping.
Returns
Returns the results of the shaping operation.
Applies to
Shape(Buffer, Single, Single, SKPaint)
Caution
Use Shape(Buffer buffer, float xOffset, float yOffset, SKFont font) instead.
Shapes the text in the specified buffer using the properties from the paint, with the specified offset.
public SkiaSharp.HarfBuzz.SKShaper.Result Shape(HarfBuzzSharp.Buffer buffer, float xOffset, float yOffset, SkiaSharp.SKPaint paint);
[System.Obsolete("Use Shape(Buffer buffer, float xOffset, float yOffset, SKFont font) instead.")]
public SkiaSharp.HarfBuzz.SKShaper.Result Shape(HarfBuzzSharp.Buffer buffer, float xOffset, float yOffset, SkiaSharp.SKPaint paint);
Parameters
- buffer
- Buffer
The HarfBuzz buffer containing the text to shape.
- xOffset
- Single
The x-offset to apply to the glyph positions.
- yOffset
- Single
The y-offset to apply to the glyph positions.
- paint
- SKPaint
The paint to use for shaping.
Returns
Returns the results of the shaping operation.
- Attributes
Applies to
Shape(String, Single, Single, SKFont)
Shapes the specified text using the font, with the specified offset.
public SkiaSharp.HarfBuzz.SKShaper.Result Shape(string text, float xOffset, float yOffset, SkiaSharp.SKFont font);
Parameters
- text
- String
The text to shape.
- xOffset
- Single
The x-offset to apply to the glyph positions.
- yOffset
- Single
The y-offset to apply to the glyph positions.
- font
- SKFont
The font to use for shaping.
Returns
Returns the results of the shaping operation.
Applies to
Shape(String, Single, Single, SKPaint)
Caution
Use Shape(string text, float xOffset, float yOffset, SKFont font) instead.
Shapes the specified text using the properties from the paint.
public SkiaSharp.HarfBuzz.SKShaper.Result Shape(string text, float xOffset, float yOffset, SkiaSharp.SKPaint paint);
[System.Obsolete("Use Shape(string text, float xOffset, float yOffset, SKFont font) instead.")]
public SkiaSharp.HarfBuzz.SKShaper.Result Shape(string text, float xOffset, float yOffset, SkiaSharp.SKPaint paint);
Parameters
- text
- String
The text to shape.
- xOffset
- Single
The x-offset to use when creating the shaping result.
- yOffset
- Single
The y-offset to use when creating the shaping result.
- paint
- SKPaint
The paint to use.
Returns
Returns the results of the shaping operation.
- Attributes