IPresentationGlyphProvider
public interface IPresentationGlyphProviderAddon extension point for presentation glyph substitution. Terminal FX, Mechanical Displays, and custom addons implement this to substitute visual glyphs while preserving the canonical text model.
V1 ownership model: single provider per controller instance.
Methods
Section titled “Methods”
UpdatePresentation(PresentationGlyph[], int, float)
Section titled “UpdatePresentation(PresentationGlyph[], int, float)”void UpdatePresentation(PresentationGlyph[] glyphs, int glyphCount, float deltaTime)Process the presentation glyph array in-place. Called once per frame when the presentation layer is dirty.
Parameters
| Name | Type | Description |
|---|---|---|
glyphs |
TextStudio.PresentationGlyph[] | The glyph array to modify. Length matches visible glyph count. |
glyphCount |
System.Int32 | Number of valid glyphs in the array. |
deltaTime |
System.Single | Time since last update. |
OnTextChanged(int)
Section titled “OnTextChanged(int)”void OnTextChanged(int newGlyphCount)Called when the source text changes. Provider should reset its internal state.
Parameters
| Name | Type |
|---|---|
newGlyphCount |
System.Int32 |
Properties
Section titled “Properties”
IsDirty
Section titled “IsDirty”bool IsDirty { get; }Returns true if the provider has pending changes that need a presentation update.
Returns
System.Boolean