emf-converter 4.25.5 → 4.25.6
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 +2 -2
- package/dist/browser.mjs +2 -2
- package/dist/index.js +2 -2
- package/dist/index.mjs +2 -2
- package/package.json +1 -1
package/dist/browser.js
CHANGED
|
@@ -54988,10 +54988,10 @@ 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
|
-
if (!unhinted) x = Math.round(x);
|
|
54994
|
+
if (!unhinted) x = realized.mode === "mono" ? Math.ceil(x - 0.5) : Math.round(x);
|
|
54995
54995
|
const y = m[3] * layoutY + m[5] + ascent;
|
|
54996
54996
|
const tracking = format?.tracking ?? PLUS_DEFAULT_TRACKING;
|
|
54997
54997
|
const ctGrid = !unhinted && realized.mode === "cleartype" && !!realized.ctGridAdvance && !realized.syntheticItalic && tracking > 1;
|
package/dist/browser.mjs
CHANGED
|
@@ -54986,10 +54986,10 @@ 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
|
-
if (!unhinted) x = Math.round(x);
|
|
54992
|
+
if (!unhinted) x = realized.mode === "mono" ? Math.ceil(x - 0.5) : Math.round(x);
|
|
54993
54993
|
const y = m[3] * layoutY + m[5] + ascent;
|
|
54994
54994
|
const tracking = format?.tracking ?? PLUS_DEFAULT_TRACKING;
|
|
54995
54995
|
const ctGrid = !unhinted && realized.mode === "cleartype" && !!realized.ctGridAdvance && !realized.syntheticItalic && tracking > 1;
|
package/dist/index.js
CHANGED
|
@@ -54989,10 +54989,10 @@ 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
|
-
if (!unhinted) x = Math.round(x);
|
|
54995
|
+
if (!unhinted) x = realized.mode === "mono" ? Math.ceil(x - 0.5) : Math.round(x);
|
|
54996
54996
|
const y = m[3] * layoutY + m[5] + ascent;
|
|
54997
54997
|
const tracking = format?.tracking ?? PLUS_DEFAULT_TRACKING;
|
|
54998
54998
|
const ctGrid = !unhinted && realized.mode === "cleartype" && !!realized.ctGridAdvance && !realized.syntheticItalic && tracking > 1;
|
package/dist/index.mjs
CHANGED
|
@@ -54987,10 +54987,10 @@ 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
|
-
if (!unhinted) x = Math.round(x);
|
|
54993
|
+
if (!unhinted) x = realized.mode === "mono" ? Math.ceil(x - 0.5) : Math.round(x);
|
|
54994
54994
|
const y = m[3] * layoutY + m[5] + ascent;
|
|
54995
54995
|
const tracking = format?.tracking ?? PLUS_DEFAULT_TRACKING;
|
|
54996
54996
|
const ctGrid = !unhinted && realized.mode === "cleartype" && !!realized.ctGridAdvance && !realized.syntheticItalic && tracking > 1;
|