emf-converter 4.25.5 → 4.25.7
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/browser.js +1 -1
- package/dist/browser.mjs +1 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/dist/browser.js
CHANGED
|
@@ -54988,7 +54988,7 @@ function drawPlusStringWithEngine(rCtx, font, text, layoutX, layoutY, layoutW, l
|
|
|
54988
54988
|
if (alignment !== 0) return false;
|
|
54989
54989
|
const ttf = realized.ttf;
|
|
54990
54990
|
const exactAscent = emPx * ttf.winAscent / ttf.unitsPerEm;
|
|
54991
|
-
const clearTypeCell =
|
|
54991
|
+
const clearTypeCell = !realized.syntheticBold && !realized.syntheticItalic && emPx === realized.ppem && m[0] === 1 && m[3] === 1 && Number.isInteger(layoutY + m[5]) && (format?.lineAlignment ?? 0) === 0;
|
|
54992
54992
|
const ascent = unhinted ? Math.round(exactAscent) : clearTypeCell ? Math.max(Math.round(exactAscent), realized.ascent) : Math.ceil(exactAscent);
|
|
54993
54993
|
let x = m[0] * layoutX + m[4] + emPx * (format?.leadingMargin ?? PLUS_LEADING_EM);
|
|
54994
54994
|
if (!unhinted) x = Math.round(x);
|
package/dist/browser.mjs
CHANGED
|
@@ -54986,7 +54986,7 @@ function drawPlusStringWithEngine(rCtx, font, text, layoutX, layoutY, layoutW, l
|
|
|
54986
54986
|
if (alignment !== 0) return false;
|
|
54987
54987
|
const ttf = realized.ttf;
|
|
54988
54988
|
const exactAscent = emPx * ttf.winAscent / ttf.unitsPerEm;
|
|
54989
|
-
const clearTypeCell =
|
|
54989
|
+
const clearTypeCell = !realized.syntheticBold && !realized.syntheticItalic && emPx === realized.ppem && m[0] === 1 && m[3] === 1 && Number.isInteger(layoutY + m[5]) && (format?.lineAlignment ?? 0) === 0;
|
|
54990
54990
|
const ascent = unhinted ? Math.round(exactAscent) : clearTypeCell ? Math.max(Math.round(exactAscent), realized.ascent) : Math.ceil(exactAscent);
|
|
54991
54991
|
let x = m[0] * layoutX + m[4] + emPx * (format?.leadingMargin ?? PLUS_LEADING_EM);
|
|
54992
54992
|
if (!unhinted) x = Math.round(x);
|
package/dist/index.js
CHANGED
|
@@ -54989,7 +54989,7 @@ function drawPlusStringWithEngine(rCtx, font, text, layoutX, layoutY, layoutW, l
|
|
|
54989
54989
|
if (alignment !== 0) return false;
|
|
54990
54990
|
const ttf = realized.ttf;
|
|
54991
54991
|
const exactAscent = emPx * ttf.winAscent / ttf.unitsPerEm;
|
|
54992
|
-
const clearTypeCell =
|
|
54992
|
+
const clearTypeCell = !realized.syntheticBold && !realized.syntheticItalic && emPx === realized.ppem && m[0] === 1 && m[3] === 1 && Number.isInteger(layoutY + m[5]) && (format?.lineAlignment ?? 0) === 0;
|
|
54993
54993
|
const ascent = unhinted ? Math.round(exactAscent) : clearTypeCell ? Math.max(Math.round(exactAscent), realized.ascent) : Math.ceil(exactAscent);
|
|
54994
54994
|
let x = m[0] * layoutX + m[4] + emPx * (format?.leadingMargin ?? PLUS_LEADING_EM);
|
|
54995
54995
|
if (!unhinted) x = Math.round(x);
|
package/dist/index.mjs
CHANGED
|
@@ -54987,7 +54987,7 @@ function drawPlusStringWithEngine(rCtx, font, text, layoutX, layoutY, layoutW, l
|
|
|
54987
54987
|
if (alignment !== 0) return false;
|
|
54988
54988
|
const ttf = realized.ttf;
|
|
54989
54989
|
const exactAscent = emPx * ttf.winAscent / ttf.unitsPerEm;
|
|
54990
|
-
const clearTypeCell =
|
|
54990
|
+
const clearTypeCell = !realized.syntheticBold && !realized.syntheticItalic && emPx === realized.ppem && m[0] === 1 && m[3] === 1 && Number.isInteger(layoutY + m[5]) && (format?.lineAlignment ?? 0) === 0;
|
|
54991
54991
|
const ascent = unhinted ? Math.round(exactAscent) : clearTypeCell ? Math.max(Math.round(exactAscent), realized.ascent) : Math.ceil(exactAscent);
|
|
54992
54992
|
let x = m[0] * layoutX + m[4] + emPx * (format?.leadingMargin ?? PLUS_LEADING_EM);
|
|
54993
54993
|
if (!unhinted) x = Math.round(x);
|