@navaramap/font 0.0.2 → 0.0.3

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.
package/dist/index.d.ts CHANGED
@@ -489,8 +489,10 @@ export declare type ParseCssFontFamilyOptions = CssFontFaceFilter & {
489
489
  * Parse a CSS `unicode-range` descriptor value (e.g. `"U+0-7F, U+131, U+4??"`)
490
490
  * into inclusive codepoint ranges. Supports single codepoints (`U+26`),
491
491
  * intervals (`U+0102-0103`) and wildcards (`U+4??`).
492
+ *
493
+ * Backed by WASM, so it resolves once `@navaramap/engine-api` has initialized.
492
494
  */
493
- export declare function parseCssUnicodeRange(value: string): UnicodeRange[];
495
+ export declare function parseCssUnicodeRange(value: string): Promise<UnicodeRange[]>;
494
496
 
495
497
  /**
496
498
  * Build a {@link FontFamily} from CSS `@font-face` rules, so faces and their
@@ -507,11 +509,14 @@ export declare function parseCssUnicodeRange(value: string): UnicodeRange[];
507
509
  * codepoints no face covers — same semantics as a hand-written
508
510
  * {@link FontFamily}.
509
511
  *
512
+ * The parsing runs in WASM (`@navaramap/engine-api`), so this resolves once
513
+ * that module has initialized.
514
+ *
510
515
  * @param family Family name to register the faces under.
511
516
  * @param cssText Stylesheet text containing `@font-face` rules.
512
517
  * @param options Optional block filters and a `baseUrl` for relative URLs.
513
518
  */
514
- export declare function parseFontFamilyFromCss(family: string, cssText: string, options?: ParseCssFontFamilyOptions): FontFamily;
519
+ export declare function parseFontFamilyFromCss(family: string, cssText: string, options?: ParseCssFontFamilyOptions): Promise<FontFamily>;
515
520
 
516
521
  /** A single shaped glyph with positioning info. */
517
522
  export declare type ShapedGlyph = {