TextStudioGlyphChangeSet
public readonly struct TextStudioGlyphChangeSetSemantic glyph correspondence for a text replacement. A changed glyph exits or enters; a retained glyph stays visually continuous across the replacement.
Methods
Section titled “Methods”
IsOutgoingGlyphChanged(int)
Section titled “IsOutgoingGlyphChanged(int)”public bool IsOutgoingGlyphChanged(int glyphIndex)Reports whether an old-text glyph should receive exit behavior.
Parameters
| Name | Type |
|---|---|
glyphIndex |
System.Int32 |
Returns
System.Boolean
IsIncomingGlyphChanged(int)
Section titled “IsIncomingGlyphChanged(int)”public bool IsIncomingGlyphChanged(int glyphIndex)Reports whether a new-text glyph should receive entry behavior.
Parameters
| Name | Type |
|---|---|
glyphIndex |
System.Int32 |
Returns
System.Boolean
GetIncomingGlyphForOutgoing(int)
Section titled “GetIncomingGlyphForOutgoing(int)”public int GetIncomingGlyphForOutgoing(int outgoingGlyphIndex)Returns the retained incoming glyph that corresponds to an outgoing glyph, or -1 when none exists.
Parameters
| Name | Type |
|---|---|
outgoingGlyphIndex |
System.Int32 |
Returns
System.Int32
GetOutgoingGlyphForIncoming(int)
Section titled “GetOutgoingGlyphForIncoming(int)”public int GetOutgoingGlyphForIncoming(int incomingGlyphIndex)Returns the retained outgoing glyph that corresponds to an incoming glyph, or -1 when none exists.
Parameters
| Name | Type |
|---|---|
incomingGlyphIndex |
System.Int32 |
Returns
System.Int32
Properties
Section titled “Properties”
OutgoingChangedGlyphCount
Section titled “OutgoingChangedGlyphCount”public int OutgoingChangedGlyphCount { get; }Number of glyphs from the old text that should receive exit behavior.
Returns
System.Int32
IncomingChangedGlyphCount
Section titled “IncomingChangedGlyphCount”public int IncomingChangedGlyphCount { get; }Number of glyphs from the new text that should receive entry behavior.
Returns
System.Int32
HasChanges
Section titled “HasChanges”public bool HasChanges { get; }Whether the replacement changes at least one semantic glyph.
Returns
System.Boolean
OutgoingGlyphCount
Section titled “OutgoingGlyphCount”public int OutgoingGlyphCount { get; }Returns
System.Int32
IncomingGlyphCount
Section titled “IncomingGlyphCount”public int IncomingGlyphCount { get; }Returns
System.Int32
IsDefined
Section titled “IsDefined”public bool IsDefined { get; }Returns
System.Boolean