Summary
Represents a sequence of glyphs from a single face of a single font at a single size, and with a single rendering style.
- Namespace
- Avalonia
.Media - Interfaces
-
- IDisposable
- Base Types
-
- object
graph BT
Type-->Base0["object"]
Type-.->Interface0["IDisposable"]
Type["GlyphRun"]
class Type type-node
Syntax
public sealed class GlyphRun : IDisposable
Constructors
Name | Summary |
---|---|
GlyphRun |
Initializes a new instance of the GlyphRun class.
|
GlyphRun |
Initializes a new instance of the GlyphRun class by specifying properties of the class.
|
Properties
Name | Value | Summary |
---|---|---|
BaselineOrigin | Point |
Gets or sets the baseline origin of the
GlyphRun .
|
BiDiLevel | int |
Gets or sets the bidirectional nesting level of the
GlyphRun .
|
Characters | ReadOnlySlice |
Gets or sets the list of UTF16 code points that represent the Unicode content of the
GlyphRun .
|
FontRenderingEmSize | double |
Gets or sets the em size used for rendering the
GlyphRun .
|
GlyphAdvances | ReadOnlySlice |
Gets or sets an array of
double values that represent the advances corresponding to the glyph indices.
|
GlyphClusters | ReadOnlySlice |
Gets or sets a list of
int values representing a mapping from character index to glyph index.
|
GlyphIndices | ReadOnlySlice |
Gets or sets an array of
ushort values that represent the glyph indices in the rendering physical font.
|
GlyphOffsets | ReadOnlySlice |
|
GlyphRunImpl | IGlyphRunImpl |
The platform implementation of the
GlyphRun .
|
GlyphTypeface | GlyphTypeface |
Gets or sets the
GlyphTypeface for the GlyphRun .
|
IsLeftToRight | bool |
Returns
true if the text direction is left-to-right. Otherwise, returns false .
|
Size | Size |
Gets or sets the conservative bounding box of the
GlyphRun .
|
Methods
Name | Value | Summary |
---|---|---|
FindGlyphIndex |
int |
Finds a glyph index for given character index.
|
Find |
CharacterHit |
Finds the nearest
CharacterHit at given index.
|
Get |
CharacterHit |
Retrieves the
CharacterHit value that represents the character hit of the caret of the GlyphRun .
|
Get |
double |
Retrieves the offset from the leading edge of the
GlyphRun
to the leading or trailing edge of a caret stop containing the specified character hit.
|
Get |
CharacterHit |
Retrieves the next valid caret character hit in the logical direction in the
GlyphRun .
|
Get |
CharacterHit |
Retrieves the previous valid caret character hit in the logical direction in the
GlyphRun .
|