@windoc/core 0.2.10 → 0.2.11

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.mjs CHANGED
@@ -21533,8 +21533,8 @@ var Draw = class {
21533
21533
  ctx,
21534
21534
  element.font
21535
21535
  );
21536
- metrics.boundingBoxAscent = basisMetrics.actualBoundingBoxAscent * scale;
21537
- metrics.boundingBoxDescent = basisMetrics.actualBoundingBoxDescent * scale;
21536
+ metrics.boundingBoxAscent = basisMetrics.fontBoundingBoxAscent * scale;
21537
+ metrics.boundingBoxDescent = basisMetrics.fontBoundingBoxDescent * scale;
21538
21538
  if (element.type === "superscript" /* SUPERSCRIPT */) {
21539
21539
  metrics.boundingBoxAscent += metrics.height / 2;
21540
21540
  } else if (element.type === "subscript" /* SUBSCRIPT */) {