@mlightcad/mtext-renderer 0.10.8 → 0.10.9

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.
@@ -132,6 +132,16 @@ export declare class MTextProcessor {
132
132
  * Font size of current character
133
133
  */
134
134
  get currentFontSize(): number;
135
+ /**
136
+ * The drawing-space text height used for layout calculations.
137
+ *
138
+ * `currentFontSize` includes a font-specific scale factor so glyph outlines
139
+ * from different font formats render at comparable visual sizes. That scale
140
+ * must not leak into CAD layout metrics such as line height and attachment
141
+ * offsets, otherwise middle/bottom aligned text shifts vertically depending
142
+ * on the active font.
143
+ */
144
+ get currentLayoutFontSize(): number;
135
145
  /**
136
146
  * The height of current line of texts
137
147
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mlightcad/mtext-renderer",
3
- "version": "0.10.8",
3
+ "version": "0.10.9",
4
4
  "description": "AutoCAD MText renderer based on Three.js",
5
5
  "license": "MIT",
6
6
  "author": "MLight Lee <mlight.lee@outlook.com>",