emf-converter 4.23.0 → 4.23.1

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/README.md CHANGED
@@ -226,9 +226,9 @@ See [How it works](docs/how-it-works.md) for the pipeline, the Windows-parity de
226
226
 
227
227
  ## Limitations
228
228
 
229
- Everything is measured against output painted by Windows itself, and a few areas still differ from it: some image effects, text with ClearType and EMF+ antialiasing, diagonal and curved glyph hinting, the last 0.26% of CMYK JPEG values, and rotated high-quality `DrawImage` sampling (within one level). Metric WMF map modes assume a 96 dpi device unless you pass `wmfReferenceDpi`.
229
+ Output is tested pixel for pixel against what Windows itself paints: 885 of 910 test pictures match exactly. The rest differ by a few pixels, mostly in ClearType and EMF+ text, a few EMF+ pens and gradients, and one-level image sampling differences. Text matches Windows only when the metafile's fonts are passed in `fonts`.
230
230
 
231
- See [Limitations](docs/limitations.md) for the details and [Outstanding work](docs/outstanding-work.md) for what is still open.
231
+ See [Limitations](docs/limitations.md) for the list, [Parity notes](docs/parity-notes.md) for the measurements and [Outstanding work](docs/outstanding-work.md) for what is still open.
232
232
 
233
233
  ## License
234
234
 
package/dist/browser.js CHANGED
@@ -28173,7 +28173,7 @@ var HintedSize = class _HintedSize {
28173
28173
  * rounding, the cut-in, the minimum distance and the link recording (`ctFlag`). GDI+ text of installed fonts uses the
28174
28174
  * DirectWrite rule (`dwrite`, below); GDI+ text of private fonts keeps the earlier test, "the vector points mostly along
28175
28175
  * x". Round 11 measured the flag rule for GDI+ (installed, private, both) on the combined tree against every pinned
28176
- * capture and fixture: not one pixel differs from the DirectWrite rule / the earlier test (docs/outstanding-work.md, R11-C).
28176
+ * capture and fixture: not one pixel differs from the DirectWrite rule / the earlier test (docs/parity-log.md, R11-C).
28177
28177
  */
28178
28178
  ctDirection() {
28179
28179
  const gs = this.gs;
@@ -28366,7 +28366,7 @@ var HintedSize = class _HintedSize {
28366
28366
  /**
28367
28367
  * GDI+ grayscale text (`shpixX`): which SHPIX shifts along x native honours. Measured with prefix copies of Arial Bold
28368
28368
  * `y` (40 ppem), Arial `W` (12), Times New Roman Italic `T` (22) and Courier New `R` (22) and the 31,584 real glyphs
28369
- * (see docs/outstanding-work.md): a shift made by a function call (not a generic per-size helper, `inSizeTweak`)
28369
+ * (see docs/parity-log.md): a shift made by a function call (not a generic per-size helper, `inSizeTweak`)
28370
28370
  * applies; one made inline in the glyph program applies to a point touched in exactly one direction, or in both once
28371
28371
  * both IUPs have run, or in neither once both have run when it moves at least 32/64 px (Arial Bold `2`); smaller
28372
28372
  * shifts of untouched points (Courier New `R` 22) and points touched in both before the IUPs (Times New Roman Italic
package/dist/browser.mjs CHANGED
@@ -28171,7 +28171,7 @@ var HintedSize = class _HintedSize {
28171
28171
  * rounding, the cut-in, the minimum distance and the link recording (`ctFlag`). GDI+ text of installed fonts uses the
28172
28172
  * DirectWrite rule (`dwrite`, below); GDI+ text of private fonts keeps the earlier test, "the vector points mostly along
28173
28173
  * x". Round 11 measured the flag rule for GDI+ (installed, private, both) on the combined tree against every pinned
28174
- * capture and fixture: not one pixel differs from the DirectWrite rule / the earlier test (docs/outstanding-work.md, R11-C).
28174
+ * capture and fixture: not one pixel differs from the DirectWrite rule / the earlier test (docs/parity-log.md, R11-C).
28175
28175
  */
28176
28176
  ctDirection() {
28177
28177
  const gs = this.gs;
@@ -28364,7 +28364,7 @@ var HintedSize = class _HintedSize {
28364
28364
  /**
28365
28365
  * GDI+ grayscale text (`shpixX`): which SHPIX shifts along x native honours. Measured with prefix copies of Arial Bold
28366
28366
  * `y` (40 ppem), Arial `W` (12), Times New Roman Italic `T` (22) and Courier New `R` (22) and the 31,584 real glyphs
28367
- * (see docs/outstanding-work.md): a shift made by a function call (not a generic per-size helper, `inSizeTweak`)
28367
+ * (see docs/parity-log.md): a shift made by a function call (not a generic per-size helper, `inSizeTweak`)
28368
28368
  * applies; one made inline in the glyph program applies to a point touched in exactly one direction, or in both once
28369
28369
  * both IUPs have run, or in neither once both have run when it moves at least 32/64 px (Arial Bold `2`); smaller
28370
28370
  * shifts of untouched points (Courier New `R` 22) and points touched in both before the IUPs (Times New Roman Italic
package/dist/index.js CHANGED
@@ -28174,7 +28174,7 @@ var HintedSize = class _HintedSize {
28174
28174
  * rounding, the cut-in, the minimum distance and the link recording (`ctFlag`). GDI+ text of installed fonts uses the
28175
28175
  * DirectWrite rule (`dwrite`, below); GDI+ text of private fonts keeps the earlier test, "the vector points mostly along
28176
28176
  * x". Round 11 measured the flag rule for GDI+ (installed, private, both) on the combined tree against every pinned
28177
- * capture and fixture: not one pixel differs from the DirectWrite rule / the earlier test (docs/outstanding-work.md, R11-C).
28177
+ * capture and fixture: not one pixel differs from the DirectWrite rule / the earlier test (docs/parity-log.md, R11-C).
28178
28178
  */
28179
28179
  ctDirection() {
28180
28180
  const gs = this.gs;
@@ -28367,7 +28367,7 @@ var HintedSize = class _HintedSize {
28367
28367
  /**
28368
28368
  * GDI+ grayscale text (`shpixX`): which SHPIX shifts along x native honours. Measured with prefix copies of Arial Bold
28369
28369
  * `y` (40 ppem), Arial `W` (12), Times New Roman Italic `T` (22) and Courier New `R` (22) and the 31,584 real glyphs
28370
- * (see docs/outstanding-work.md): a shift made by a function call (not a generic per-size helper, `inSizeTweak`)
28370
+ * (see docs/parity-log.md): a shift made by a function call (not a generic per-size helper, `inSizeTweak`)
28371
28371
  * applies; one made inline in the glyph program applies to a point touched in exactly one direction, or in both once
28372
28372
  * both IUPs have run, or in neither once both have run when it moves at least 32/64 px (Arial Bold `2`); smaller
28373
28373
  * shifts of untouched points (Courier New `R` 22) and points touched in both before the IUPs (Times New Roman Italic
package/dist/index.mjs CHANGED
@@ -28172,7 +28172,7 @@ var HintedSize = class _HintedSize {
28172
28172
  * rounding, the cut-in, the minimum distance and the link recording (`ctFlag`). GDI+ text of installed fonts uses the
28173
28173
  * DirectWrite rule (`dwrite`, below); GDI+ text of private fonts keeps the earlier test, "the vector points mostly along
28174
28174
  * x". Round 11 measured the flag rule for GDI+ (installed, private, both) on the combined tree against every pinned
28175
- * capture and fixture: not one pixel differs from the DirectWrite rule / the earlier test (docs/outstanding-work.md, R11-C).
28175
+ * capture and fixture: not one pixel differs from the DirectWrite rule / the earlier test (docs/parity-log.md, R11-C).
28176
28176
  */
28177
28177
  ctDirection() {
28178
28178
  const gs = this.gs;
@@ -28365,7 +28365,7 @@ var HintedSize = class _HintedSize {
28365
28365
  /**
28366
28366
  * GDI+ grayscale text (`shpixX`): which SHPIX shifts along x native honours. Measured with prefix copies of Arial Bold
28367
28367
  * `y` (40 ppem), Arial `W` (12), Times New Roman Italic `T` (22) and Courier New `R` (22) and the 31,584 real glyphs
28368
- * (see docs/outstanding-work.md): a shift made by a function call (not a generic per-size helper, `inSizeTweak`)
28368
+ * (see docs/parity-log.md): a shift made by a function call (not a generic per-size helper, `inSizeTweak`)
28369
28369
  * applies; one made inline in the glyph program applies to a point touched in exactly one direction, or in both once
28370
28370
  * both IUPs have run, or in neither once both have run when it moves at least 32/64 px (Arial Bold `2`); smaller
28371
28371
  * shifts of untouched points (Courier New `R` 22) and points touched in both before the IUPs (Times New Roman Italic
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "emf-converter",
3
- "version": "4.23.0",
3
+ "version": "4.23.1",
4
4
  "description": "Convert EMF/WMF metafile binaries to PNG or JPEG data URLs, or SVG (markup, data URL, React/JSX)",
5
5
  "keywords": [
6
6
  "canvas",