TextShaper.

ShapeText(ReadOnlySlice<char>, Typeface, double, CultureInfo) Method

Summary

Shapes the specified region within the text and returns a resulting glyph run.
Namespace
Avalonia.Media.TextFormatting
Containing Type
TextShaper

Syntax

public GlyphRun ShapeText(ReadOnlySlice<char> text, Typeface typeface, double fontRenderingEmSize, CultureInfo culture)

Parameters

Name Type Description
text ReadOnlySlice<char> The text.
typeface Typeface The typeface.
fontRenderingEmSize double The font rendering em size.
culture CultureInfo The culture.

Return Value

Type Description
GlyphRun A shaped glyph run.