emf-converter 4.8.10 → 4.8.12
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
|
@@ -27507,7 +27507,7 @@ var RealizedFont = class {
|
|
|
27507
27507
|
xs[i] = Math.round(m[0] * x - m[2] * y + subX);
|
|
27508
27508
|
ys[i] = Math.round(-(m[1] * x - m[3] * y) - subY);
|
|
27509
27509
|
} else {
|
|
27510
|
-
xs[i] = Math.round(x + subX);
|
|
27510
|
+
xs[i] = this.gdiPlus && this.mode === "cleartype" ? x + subX : Math.round(x + subX);
|
|
27511
27511
|
ys[i] = y - subY;
|
|
27512
27512
|
}
|
|
27513
27513
|
}
|
|
@@ -33788,7 +33788,7 @@ function layoutGdiRun(font, run) {
|
|
|
33788
33788
|
const origin = at(along, down);
|
|
33789
33789
|
const fractionalX = !font.gridFit || font.fractionalOrigins;
|
|
33790
33790
|
const ox = fractionalX ? Math.floor(origin.x) : Math.round(origin.x);
|
|
33791
|
-
const subX = !fractionalX ? 0 : font.fractionalOrigins === "xy" ? Math.round((origin.x - ox) * 4) * 16 : Math.round((origin.x - ox) * 64);
|
|
33791
|
+
const subX = !fractionalX ? 0 : font.fractionalOrigins === "xy" ? Math.round((origin.x - ox) * 4) * 16 : font.fractionalOrigins === "x" ? Math.round((origin.x - ox) * 6) * (64 / 6) : Math.round((origin.x - ox) * 64);
|
|
33792
33792
|
const oy = font.fractionalOrigins === "xy" ? Math.floor(origin.y) : Math.round(origin.y);
|
|
33793
33793
|
const subY = font.fractionalOrigins === "xy" ? Math.round((origin.y - oy) * 4) * 16 : 0;
|
|
33794
33794
|
origins.push({ x: ox + subX / 64, y: oy + subY / 64, along, down });
|
package/dist/browser.mjs
CHANGED
|
@@ -27505,7 +27505,7 @@ var RealizedFont = class {
|
|
|
27505
27505
|
xs[i] = Math.round(m[0] * x - m[2] * y + subX);
|
|
27506
27506
|
ys[i] = Math.round(-(m[1] * x - m[3] * y) - subY);
|
|
27507
27507
|
} else {
|
|
27508
|
-
xs[i] = Math.round(x + subX);
|
|
27508
|
+
xs[i] = this.gdiPlus && this.mode === "cleartype" ? x + subX : Math.round(x + subX);
|
|
27509
27509
|
ys[i] = y - subY;
|
|
27510
27510
|
}
|
|
27511
27511
|
}
|
|
@@ -33786,7 +33786,7 @@ function layoutGdiRun(font, run) {
|
|
|
33786
33786
|
const origin = at(along, down);
|
|
33787
33787
|
const fractionalX = !font.gridFit || font.fractionalOrigins;
|
|
33788
33788
|
const ox = fractionalX ? Math.floor(origin.x) : Math.round(origin.x);
|
|
33789
|
-
const subX = !fractionalX ? 0 : font.fractionalOrigins === "xy" ? Math.round((origin.x - ox) * 4) * 16 : Math.round((origin.x - ox) * 64);
|
|
33789
|
+
const subX = !fractionalX ? 0 : font.fractionalOrigins === "xy" ? Math.round((origin.x - ox) * 4) * 16 : font.fractionalOrigins === "x" ? Math.round((origin.x - ox) * 6) * (64 / 6) : Math.round((origin.x - ox) * 64);
|
|
33790
33790
|
const oy = font.fractionalOrigins === "xy" ? Math.floor(origin.y) : Math.round(origin.y);
|
|
33791
33791
|
const subY = font.fractionalOrigins === "xy" ? Math.round((origin.y - oy) * 4) * 16 : 0;
|
|
33792
33792
|
origins.push({ x: ox + subX / 64, y: oy + subY / 64, along, down });
|
package/dist/index.js
CHANGED
|
@@ -27508,7 +27508,7 @@ var RealizedFont = class {
|
|
|
27508
27508
|
xs[i] = Math.round(m[0] * x - m[2] * y + subX);
|
|
27509
27509
|
ys[i] = Math.round(-(m[1] * x - m[3] * y) - subY);
|
|
27510
27510
|
} else {
|
|
27511
|
-
xs[i] = Math.round(x + subX);
|
|
27511
|
+
xs[i] = this.gdiPlus && this.mode === "cleartype" ? x + subX : Math.round(x + subX);
|
|
27512
27512
|
ys[i] = y - subY;
|
|
27513
27513
|
}
|
|
27514
27514
|
}
|
|
@@ -33789,7 +33789,7 @@ function layoutGdiRun(font, run) {
|
|
|
33789
33789
|
const origin = at(along, down);
|
|
33790
33790
|
const fractionalX = !font.gridFit || font.fractionalOrigins;
|
|
33791
33791
|
const ox = fractionalX ? Math.floor(origin.x) : Math.round(origin.x);
|
|
33792
|
-
const subX = !fractionalX ? 0 : font.fractionalOrigins === "xy" ? Math.round((origin.x - ox) * 4) * 16 : Math.round((origin.x - ox) * 64);
|
|
33792
|
+
const subX = !fractionalX ? 0 : font.fractionalOrigins === "xy" ? Math.round((origin.x - ox) * 4) * 16 : font.fractionalOrigins === "x" ? Math.round((origin.x - ox) * 6) * (64 / 6) : Math.round((origin.x - ox) * 64);
|
|
33793
33793
|
const oy = font.fractionalOrigins === "xy" ? Math.floor(origin.y) : Math.round(origin.y);
|
|
33794
33794
|
const subY = font.fractionalOrigins === "xy" ? Math.round((origin.y - oy) * 4) * 16 : 0;
|
|
33795
33795
|
origins.push({ x: ox + subX / 64, y: oy + subY / 64, along, down });
|
package/dist/index.mjs
CHANGED
|
@@ -27506,7 +27506,7 @@ var RealizedFont = class {
|
|
|
27506
27506
|
xs[i] = Math.round(m[0] * x - m[2] * y + subX);
|
|
27507
27507
|
ys[i] = Math.round(-(m[1] * x - m[3] * y) - subY);
|
|
27508
27508
|
} else {
|
|
27509
|
-
xs[i] = Math.round(x + subX);
|
|
27509
|
+
xs[i] = this.gdiPlus && this.mode === "cleartype" ? x + subX : Math.round(x + subX);
|
|
27510
27510
|
ys[i] = y - subY;
|
|
27511
27511
|
}
|
|
27512
27512
|
}
|
|
@@ -33787,7 +33787,7 @@ function layoutGdiRun(font, run) {
|
|
|
33787
33787
|
const origin = at(along, down);
|
|
33788
33788
|
const fractionalX = !font.gridFit || font.fractionalOrigins;
|
|
33789
33789
|
const ox = fractionalX ? Math.floor(origin.x) : Math.round(origin.x);
|
|
33790
|
-
const subX = !fractionalX ? 0 : font.fractionalOrigins === "xy" ? Math.round((origin.x - ox) * 4) * 16 : Math.round((origin.x - ox) * 64);
|
|
33790
|
+
const subX = !fractionalX ? 0 : font.fractionalOrigins === "xy" ? Math.round((origin.x - ox) * 4) * 16 : font.fractionalOrigins === "x" ? Math.round((origin.x - ox) * 6) * (64 / 6) : Math.round((origin.x - ox) * 64);
|
|
33791
33791
|
const oy = font.fractionalOrigins === "xy" ? Math.floor(origin.y) : Math.round(origin.y);
|
|
33792
33792
|
const subY = font.fractionalOrigins === "xy" ? Math.round((origin.y - oy) * 4) * 16 : 0;
|
|
33793
33793
|
origins.push({ x: ox + subX / 64, y: oy + subY / 64, along, down });
|