Inno.Text.Assets
Section titled “Inno.Text.Assets”
- Import OpenType containers into compact runtime metadata and immutable encoded font data.
FontImporter, registered as inno.text.font, integrates .ttf, .otf, .ttc and .otc sources with the existing asset pipeline. Runtime scripts consume FontAsset; they do not reference this authoring project.
Import contract
Section titled “Import contract”Import reads the supplied source bytes, validates an sfnt/OpenType signature or a collection header and stages two artifacts: runtime metadata and the original encoded font-data. Collection count must be positive, at most 65,535, and fit in the supplied header. Truncated or unrecognized containers fail with InvalidDataException.
Header acceptance does not validate every font table or guarantee that the native backend will accept a face. Runtime loading remains a separate failure boundary. The importer does not invent a blank fallback face when input is invalid.
Artifact writes observe cancellation through the pipeline’s writer. The enclosing asset transaction owns publication, identity, Missing transitions and deployment. Runtime loads use committed artifacts instead of rereading mutable project source files.
Use and reference
Section titled “Use and reference”Place a supported source under the project’s assets, let normal import complete and resolve its FontAsset inside the asset execution scope. Follow shape text and rasterize glyphs after the artifact is available.
FontImporter members include the supported extension list and protected import implementation.
Source project facts
Section titled “Source project facts”Project: Inno.Text.Assets
Source: src/services/text/Inno.Text.Assets/Inno.Text.Assets.csproj
| Type | API | Description |
|---|---|---|
| FontImporter | engine | Imports OpenType fonts into compact metadata and immutable encoded font artifacts. |