@mlightcad/mtext-renderer 0.12.3 → 0.12.4

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.
@@ -146,9 +146,10 @@ export declare class MeshFont extends BaseFont {
146
146
  * Gets the shape to display when a character is not found in the font.
147
147
  * Uses "?" as a replacement character.
148
148
  * @param size - The desired size of the not found shape
149
- * @returns The shape data for the not found indicator
149
+ * @returns The shape data for the not found indicator, or undefined if "?"
150
+ * cannot be loaded from this font
150
151
  */
151
- getNotFoundTextShape(size: number): MeshTextShape;
152
+ getNotFoundTextShape(size: number): MeshTextShape | undefined;
152
153
  /**
153
154
  * Estimates memory used by this mesh font (parsed opentype + glyphs + geometry cache).
154
155
  */
@@ -7,7 +7,8 @@ import * as THREE from 'three';
7
7
  */
8
8
  export interface MTextDrawOptions {
9
9
  /**
10
- * Wait for fonts referenced by the content/style to finish loading before
10
+ * Wait for fonts referenced by the content/style and, when awaiting, the
11
+ * configured default/symbol fallback chains — to finish loading before
11
12
  * building geometry.
12
13
  *
13
14
  * Defaults to `true` when {@link FontManager.lazyFontLoading} is false, or
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mlightcad/mtext-renderer",
3
- "version": "0.12.3",
3
+ "version": "0.12.4",
4
4
  "description": "AutoCAD MText renderer based on Three.js",
5
5
  "license": "MIT",
6
6
  "author": "MLight Lee <mlight.lee@outlook.com>",