@utsp/types 0.9.0-nightly.20251210150441.b1cbb1e → 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.d.ts +11 -0
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -783,6 +783,17 @@ interface IRenderer {
783
783
  * @param cellHeight - Cell height in pixels (includes spacing)
784
784
  */
785
785
  setBitmapFont(font: Map<number, Uint8Array>, charWidth: number, charHeight: number, cellWidth: number, cellHeight: number): void;
786
+ /**
787
+ * Set image font (PNG atlas) for extended character rendering
788
+ * @param imageData - PNG image data as Uint8Array
789
+ * @param glyphWidth - Glyph width in pixels
790
+ * @param glyphHeight - Glyph height in pixels
791
+ * @param cellWidth - Cell width in pixels (includes spacing)
792
+ * @param cellHeight - Cell height in pixels (includes spacing)
793
+ * @param atlasBlocks - Number of 256-char blocks (1, 4, or 16)
794
+ * @returns Promise that resolves when font is loaded
795
+ */
796
+ setImageFont?(imageData: Uint8Array, glyphWidth: number, glyphHeight: number, cellWidth: number, cellHeight: number, atlasBlocks: 1 | 4 | 16): Promise<void>;
786
797
  /**
787
798
  * Set color palette
788
799
  * @param palette - Array of 256 RGB colors
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@utsp/types",
3
- "version": "0.9.0-nightly.20251210150441.b1cbb1e",
3
+ "version": "0.9.0",
4
4
  "description": "Type definitions and interfaces for UTSP (Universal Text Stream Protocol)",
5
5
  "author": "THP Software",
6
6
  "license": "MIT",