ShapedBuffer Class
Definition
public class ShapedBuffer
Constructors
| Name | Description |
|---|---|
| ShapedBuffer | No summary available. |
ShapedBuffer Constructor
public ShapedBuffer(ReadOnlyMemory<char> text, int bufferLength, Avalonia.Media.GlyphTypeface glyphTypeface, double fontRenderingEmSize, sbyte bidiLevel)
Parameters
text ReadOnlyMemory<char>
bufferLength int
glyphTypeface Avalonia.Media.GlyphTypeface
fontRenderingEmSize double
bidiLevel sbyte
Methods
| Name | Description |
|---|---|
| Dispose | No summary available. |
| GetEnumerator | No summary available. |
| Split | Splits the Avalonia.Media.TextFormatting.TextRun at specified length. |
Dispose Method
public void Dispose()
GetEnumerator Method
public System.Collections.Generic.IEnumerator<Avalonia.Media.TextFormatting.GlyphInfo> GetEnumerator()
Returns
System.Collections.Generic.IEnumerator<Avalonia.Media.TextFormatting.GlyphInfo>
Split Method
Splits the Avalonia.Media.TextFormatting.TextRun at specified length.
public Avalonia.Media.TextFormatting.SplitResult<T><Avalonia.Media.TextFormatting.ShapedBuffer> Split(int textLength)
Parameters
textLength int
The text length.
Returns
Avalonia.Media.TextFormatting.SplitResult<T><Avalonia.Media.TextFormatting.ShapedBuffer>
The split result.
Properties
| Name | Description |
|---|---|
| BidiLevel | The buffer's bidi level. |
| FontRenderingEmSize | The buffers font rendering em size. |
| GlyphIndices | Contiguous view of the glyph indices for this buffer, kept in sync with Avalonia.Media.TextFormatting.ShapedBuffer.GlyphInfos by the indexer setter. Consumers needing a ReadOnlySpan<T> of glyph IDs (e.g. for GlyphTypeface.TryGetGlyphBounds or SKFont.GetGlyphWidths) can use this directly without allocating a parallel array. |
| GlyphTypeface | The buffer's glyph typeface. |
| IsLeftToRight | The buffer's reading direction. |
| Item | No summary available. |
| Length | The buffer's length. |
| Text | The text that is represended by this buffer. |
BidiLevel Property
The buffer's bidi level.
public sbyte BidiLevel { get; set; }
FontRenderingEmSize Property
The buffers font rendering em size.
public double FontRenderingEmSize { get; set; }
GlyphIndices Property
Contiguous view of the glyph indices for this buffer, kept in sync with
Avalonia.Media.TextFormatting.ShapedBuffer.GlyphInfos by the indexer setter. Consumers needing a
ReadOnlySpan<T> of glyph IDs (e.g. for
GlyphTypeface.TryGetGlyphBounds or
SKFont.GetGlyphWidths) can use this directly without allocating
a parallel array.
public ReadOnlySpan<ushort> GlyphIndices { get; set; }