@pdfme/common 2.1.0 → 2.2.0

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.
Files changed (43) hide show
  1. package/dist/cjs/__tests__/font.test.js +44 -0
  2. package/dist/cjs/__tests__/font.test.js.map +1 -1
  3. package/dist/cjs/__tests__/helper.test.js +10 -0
  4. package/dist/cjs/__tests__/helper.test.js.map +1 -1
  5. package/dist/cjs/src/constants.js +5 -1
  6. package/dist/cjs/src/constants.js.map +1 -1
  7. package/dist/cjs/src/font.js +34 -11
  8. package/dist/cjs/src/font.js.map +1 -1
  9. package/dist/cjs/src/helper.js +5 -1
  10. package/dist/cjs/src/helper.js.map +1 -1
  11. package/dist/cjs/src/index.js +8 -2
  12. package/dist/cjs/src/index.js.map +1 -1
  13. package/dist/cjs/src/schema.js +9 -1
  14. package/dist/cjs/src/schema.js.map +1 -1
  15. package/dist/cjs/src/type.js.map +1 -1
  16. package/dist/esm/__tests__/font.test.js +45 -1
  17. package/dist/esm/__tests__/font.test.js.map +1 -1
  18. package/dist/esm/__tests__/helper.test.js +11 -1
  19. package/dist/esm/__tests__/helper.test.js.map +1 -1
  20. package/dist/esm/src/constants.js +4 -0
  21. package/dist/esm/src/constants.js.map +1 -1
  22. package/dist/esm/src/font.js +33 -11
  23. package/dist/esm/src/font.js.map +1 -1
  24. package/dist/esm/src/helper.js +4 -1
  25. package/dist/esm/src/helper.js.map +1 -1
  26. package/dist/esm/src/index.js +4 -4
  27. package/dist/esm/src/index.js.map +1 -1
  28. package/dist/esm/src/schema.js +8 -0
  29. package/dist/esm/src/schema.js.map +1 -1
  30. package/dist/esm/src/type.js.map +1 -1
  31. package/dist/types/src/constants.d.ts +4 -0
  32. package/dist/types/src/font.d.ts +6 -8
  33. package/dist/types/src/helper.d.ts +1 -0
  34. package/dist/types/src/index.d.ts +5 -5
  35. package/dist/types/src/schema.d.ts +71 -0
  36. package/dist/types/src/type.d.ts +8 -0
  37. package/package.json +1 -1
  38. package/src/constants.ts +4 -0
  39. package/src/font.ts +42 -18
  40. package/src/helper.ts +5 -1
  41. package/src/index.ts +15 -3
  42. package/src/schema.ts +9 -0
  43. package/src/type.ts +9 -0
@@ -417,4 +417,48 @@ describe('calculateDynamicFontSize with Custom font', () => {
417
417
  expect(result).toBe(5);
418
418
  }));
419
419
  });
420
+ describe('getFontDescentInPt test', () => {
421
+ test('it gets a descent size relative to the font size', () => {
422
+ expect((0, font_1.getFontDescentInPt)({ descent: -400, unitsPerEm: 1000 }, 12)).toBe(-4.800000000000001);
423
+ expect((0, font_1.getFontDescentInPt)({ descent: 54, unitsPerEm: 1000 }, 20)).toBe(1.08);
424
+ expect((0, font_1.getFontDescentInPt)({ descent: -512, unitsPerEm: 2048 }, 54)).toBe(-13.5);
425
+ });
426
+ });
427
+ describe('getBrowserVerticalFontAdjustments test', () => {
428
+ // Font with a base line-height of 1.349
429
+ const font = { ascent: 1037, descent: -312, unitsPerEm: 1000 };
430
+ test('it gets a top adjustment when vertically aligning top', () => {
431
+ expect((0, font_1.getBrowserVerticalFontAdjustments)(font, 12, 1.0, 'top')).toEqual({
432
+ topAdj: 2.791301999999999,
433
+ bottomAdj: 0,
434
+ });
435
+ expect((0, font_1.getBrowserVerticalFontAdjustments)(font, 36, 2.0, 'top')).toEqual({
436
+ topAdj: 8.373906,
437
+ bottomAdj: 0,
438
+ });
439
+ });
440
+ test('it gets a bottom adjustment when vertically aligning middle or bottom', () => {
441
+ expect((0, font_1.getBrowserVerticalFontAdjustments)(font, 12, 1.0, 'bottom')).toEqual({
442
+ topAdj: 0,
443
+ bottomAdj: 2.791302,
444
+ });
445
+ expect((0, font_1.getBrowserVerticalFontAdjustments)(font, 12, 1.15, 'middle')).toEqual({
446
+ topAdj: 0,
447
+ bottomAdj: 1.5916020000000004,
448
+ });
449
+ });
450
+ test('it does not get a bottom adjustment if the line height exceeds that of the font', () => {
451
+ expect((0, font_1.getBrowserVerticalFontAdjustments)(font, 12, 1.35, 'bottom')).toEqual({
452
+ topAdj: 0,
453
+ bottomAdj: 0,
454
+ });
455
+ });
456
+ test('it does not get a bottom adjustment if the font base line-height is 1.0 or less', () => {
457
+ const thisFont = { ascent: 900, descent: -50, unitsPerEm: 1000 };
458
+ expect((0, font_1.getBrowserVerticalFontAdjustments)(thisFont, 20, 1.0, 'bottom')).toEqual({
459
+ topAdj: 0,
460
+ bottomAdj: 0,
461
+ });
462
+ });
463
+ });
420
464
  //# sourceMappingURL=font.test.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"font.test.js","sourceRoot":"","sources":["../../../__tests__/font.test.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2BAAkC;AAClC,2CAA6B;AAE7B,sCAOoB;AAEpB,gCAAmC;AAEnC,MAAM,QAAQ,GAAG,IAAA,iBAAY,EAAC,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,kCAAkC,CAAC,CAAC,CAAC;AACxF,MAAM,SAAS,GAAG,IAAA,iBAAY,EAAC,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,mCAAmC,CAAC,CAAC,CAAC;AAE1F,MAAM,aAAa,GAAG,GAAS,EAAE,CAAC,CAAC;IACjC,cAAc,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE;IAClD,eAAe,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;CACrC,CAAC,CAAC;AAEH,MAAM,WAAW,GAAG,GAAa,EAAE,CAAC,CAAC;IACnC,OAAO,EAAE,eAAS;IAClB,OAAO,EAAE;QACP;YACE,CAAC,EAAE;gBACD,IAAI,EAAE,MAAM;gBACZ,QAAQ,EAAE,gBAAgB;gBAC1B,QAAQ,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE;gBACxB,KAAK,EAAE,GAAG;gBACV,MAAM,EAAE,GAAG;aACZ;YACD,CAAC,EAAE;gBACD,IAAI,EAAE,MAAM;gBACZ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QACjF,MAAM,CAAC,IAAA,wCAAiC,EAAC,IAAI,EAAE,EAAE,EAAE,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,OAAO,CAAC;YACzE,MAAM,EAAE,CAAC;YACT,SAAS,EAAE,QAAQ;SACpB,CAAC,CAAC;QACH,MAAM,CAAC,IAAA,wCAAiC,EAAC,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAC,OAAO,CAAC;YAC1E,MAAM,EAAE,CAAC;YACT,SAAS,EAAE,kBAAkB;SAC9B,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;IAEH,IAAI,CAAC,iFAAiF,EAAE,GAAG,EAAE;QAC3F,MAAM,CAAC,IAAA,wCAAiC,EAAC,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAC,OAAO,CAAC;YAC1E,MAAM,EAAE,CAAC;YACT,SAAS,EAAE,CAAC;SACb,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;IAEH,IAAI,CAAC,iFAAiF,EAAE,GAAG,EAAE;QAC3F,MAAM,QAAQ,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,OAAO,EAAE,CAAC,EAAE,EAAE,UAAU,EAAE,IAAI,EAAiB,CAAC;QAChF,MAAM,CAAC,IAAA,wCAAiC,EAAC,QAAQ,EAAE,EAAE,EAAE,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,OAAO,CAAC;YAC7E,MAAM,EAAE,CAAC;YACT,SAAS,EAAE,CAAC;SACb,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const helper_1 = require("../src/helper");
4
+ const src_1 = require("../src");
4
5
  describe('validateBarcodeInput test', () => {
5
6
  test('qrcode', () => {
6
7
  // 500文字以下
@@ -248,4 +249,13 @@ describe('pt2mm test', () => {
248
249
  expect((0, helper_1.pt2mm)(5322.98)).toEqual(1877.947344);
249
250
  });
250
251
  });
252
+ describe('pt2px test', () => {
253
+ it('converts points to pixels', () => {
254
+ expect((0, helper_1.pt2px)(1)).toEqual(src_1.PT_TO_PX_RATIO);
255
+ expect((0, helper_1.pt2px)(1)).toEqual(1.333);
256
+ expect((0, helper_1.pt2px)(2.8346)).toEqual(3.7785218);
257
+ expect((0, helper_1.pt2px)(10)).toEqual(13.33);
258
+ expect((0, helper_1.pt2px)(5322.98)).toEqual(7095.532339999999);
259
+ });
260
+ });
251
261
  //# sourceMappingURL=helper.test.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"helper.test.js","sourceRoot":"","sources":["../../../__tests__/helper.test.ts"],"names":[],"mappings":";;AAAA,0CAAmE;AAEnE,QAAQ,CAAC,2BAA2B,EAAE,GAAG,EAAE;IACzC,IAAI,CAAC,QAAQ,EAAE,GAAG,EAAE;QAClB,UAAU;QACV,MAAM,IAAI,GAAG,QAAQ,CAAC;QAEtB,MAAM,KAAK,GAAG,yBAAyB,CAAC;QACxC,MAAM,MAAM,GAAG,UAAU,CAAC;QAC1B,MAAM,QAAQ,GACZ,kkDAAkkD,CAAC;QACrkD,MAAM,KAAK,GAAG,EAAE,CAAC;QACjB,MAAM,CAAC,IAAA,6BAAoB,EAAC,IAAI,EAAE,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QACxD,MAAM,CAAC,IAAA,6BAAoB,EAAC,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QACzD,MAAM,CAAC,IAAA,6BAAoB,EAAC,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;QAC5D,MAAM,CAAC,IAAA,6BAAoB,EAAC,IAAI,EAAE,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;IAC3D,CAAC,CAAC,CAAC;IACH,IAAI,C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iB,CAAC,CAAC;IACpD,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
@@ -1,9 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DEFAULT_FONT_VALUE = exports.BLANK_PDF = exports.MM_TO_PT_RATIO = exports.PT_TO_MM_RATIO = exports.PT_TO_PX_RATIO = exports.FONT_SIZE_ADJUSTMENT = exports.DEFAULT_DYNAMIC_FIT = exports.DYNAMIC_FIT_HORIZONTAL = exports.DYNAMIC_FIT_VERTICAL = exports.DEFAULT_FONT_COLOR = exports.DEFAULT_CHARACTER_SPACING = exports.DEFAULT_LINE_HEIGHT = exports.DEFAULT_ALIGNMENT = exports.DEFAULT_FONT_SIZE = exports.DEFAULT_FONT_NAME = void 0;
3
+ exports.DEFAULT_FONT_VALUE = exports.BLANK_PDF = exports.MM_TO_PT_RATIO = exports.PT_TO_MM_RATIO = exports.PT_TO_PX_RATIO = exports.FONT_SIZE_ADJUSTMENT = exports.DEFAULT_DYNAMIC_FIT = exports.DYNAMIC_FIT_HORIZONTAL = exports.DYNAMIC_FIT_VERTICAL = exports.DEFAULT_FONT_COLOR = exports.DEFAULT_CHARACTER_SPACING = exports.DEFAULT_LINE_HEIGHT = exports.DEFAULT_VERTICAL_ALIGNMENT = exports.VERTICAL_ALIGN_BOTTOM = exports.VERTICAL_ALIGN_MIDDLE = exports.VERTICAL_ALIGN_TOP = exports.DEFAULT_ALIGNMENT = exports.DEFAULT_FONT_SIZE = exports.DEFAULT_FONT_NAME = void 0;
4
4
  exports.DEFAULT_FONT_NAME = 'Roboto';
5
5
  exports.DEFAULT_FONT_SIZE = 13;
6
6
  exports.DEFAULT_ALIGNMENT = 'left';
7
+ exports.VERTICAL_ALIGN_TOP = 'top';
8
+ exports.VERTICAL_ALIGN_MIDDLE = 'middle';
9
+ exports.VERTICAL_ALIGN_BOTTOM = 'bottom';
10
+ exports.DEFAULT_VERTICAL_ALIGNMENT = exports.VERTICAL_ALIGN_TOP;
7
11
  exports.DEFAULT_LINE_HEIGHT = 1;
8
12
  exports.DEFAULT_CHARACTER_SPACING = 0;
9
13
  exports.DEFAULT_FONT_COLOR = '#000';
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/constants.ts"],"names":[],"mappings":";;;AAAa,QAAA,iBAAiB,GAAG,QAAQ,CAAC;AAC7B,QAAA,iBAAiB,GAAG,EAAE,CAAC;AACvB,QAAA,iBAAiB,GAAG,MAAM,CAAC;AAC3B,QAAA,mBAAmB,GAAG,CAAC,CAAC;AACxB,QAAA,yBAAyB,GAAG,CAAC,CAAC;AAC9B,QAAA,kBAAkB,GAAG,MAAM,CAAC;AAC5B,QAAA,oBAAoB,GAAG,UAAU,CAAC;AAClC,QAAA,sBAAsB,GAAG,YAAY,CAAC;AACtC,QAAA,mBAAmB,GAAG,4BAAoB,CAAC;AAC3C,QAAA,oBAAoB,GAAG,IAAI,CAAC;AAC5B,QAAA,cAAc,GAAG,KAAK,CAAC;AACvB,QAAA,cAAc,GAAG,MAAM,CAAC;AACxB,QAAA,cAAc,GAAG,MAAM,CAAC,CAAC,2DAA2D;AAEpF,QAAA,SAAS,GACpB,8kCAA8kC,CAAC;AAEpkC,QAAA,kBAAkB,GAC7B,mwxKAAmwxK,CAAC"}
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/constants.ts"],"names":[],"mappings":";;;AAAa,QAAA,iBAAiB,GAAG,QAAQ,CAAC;AAC7B,QAAA,iBAAiB,GAAG,EAAE,CAAC;AACvB,QAAA,iBAAiB,GAAG,MAAM,CAAC;AAC3B,QAAA,kBAAkB,GAAG,KAAK,CAAC;AAC3B,QAAA,qBAAqB,GAAG,QAAQ,CAAC;AACjC,QAAA,qBAAqB,GAAG,QAAQ,CAAC;AACjC,QAAA,0BAA0B,GAAG,0BAAkB,CAAC;AAChD,QAAA,mBAAmB,GAAG,CAAC,CAAC;AACxB,QAAA,yBAAyB,GAAG,CAAC,CAAC;AAC9B,QAAA,kBAAkB,GAAG,MAAM,CAAC;AAC5B,QAAA,oBAAoB,GAAG,UAAU,CAAC;AAClC,QAAA,sBAAsB,GAAG,YAAY,CAAC;AACtC,QAAA,mBAAmB,GAAG,4BAAoB,CAAC;AAC3C,QAAA,oBAAoB,GAAG,IAAI,CAAC;AAC5B,QAAA,cAAc,GAAG,KAAK,CAAC;AACvB,QAAA,cAAc,GAAG,MAAM,CAAC;AACxB,QAAA,cAAc,GAAG,MAAM,CAAC,CAAC,2DAA2D;AAEpF,QAAA,SAAS,GACpB,8kCAA8kC,CAAC;AAEpkC,QAAA,kBAAkB,GAC7B,mwxKAAmwxK,CAAC"}
@@ -32,7 +32,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
32
32
  });
33
33
  };
34
34
  Object.defineProperty(exports, "__esModule", { value: true });
35
- exports.calculateDynamicFontSize = exports.getSplittedLines = exports.getFontKitFont = exports.widthOfTextAtSize = exports.heightOfFontAtSize = exports.getFontAlignmentValue = exports.checkFont = exports.getDefaultFont = exports.getFallbackFontName = void 0;
35
+ exports.calculateDynamicFontSize = exports.getSplittedLines = exports.getFontKitFont = exports.widthOfTextAtSize = exports.heightOfFontAtSize = exports.getFontDescentInPt = exports.getBrowserVerticalFontAdjustments = exports.checkFont = exports.getDefaultFont = exports.getFallbackFontName = void 0;
36
36
  const fontkit = __importStar(require("fontkit"));
37
37
  const type_1 = require("./type");
38
38
  const buffer_1 = require("buffer");
@@ -83,18 +83,41 @@ const checkFont = (arg) => {
83
83
  }
84
84
  };
85
85
  exports.checkFont = checkFont;
86
- const getFontAlignmentValue = (fontKitFont, fontSize) => {
86
+ const getBrowserVerticalFontAdjustments = (fontKitFont, fontSize, lineHeight, verticalAlignment) => {
87
87
  const { ascent, descent, unitsPerEm } = fontKitFont;
88
- const fontSizeInPx = fontSize * constants_1.PT_TO_PX_RATIO;
89
- // Convert ascent and descent to px values
90
- const ascentInPixels = (ascent / unitsPerEm) * fontSizeInPx;
91
- const descentInPixels = (descent / unitsPerEm) * fontSizeInPx;
92
- // Calculate the single line height in px
93
- const singleLineHeight = ((ascentInPixels + Math.abs(descentInPixels)) / fontSizeInPx);
94
- // Calculate the top margin/padding in px
95
- return ((singleLineHeight * fontSizeInPx) - fontSizeInPx) / 2;
88
+ // Fonts have a designed line height that the browser renders when using `line-height: normal`
89
+ const fontBaseLineHeight = (ascent - descent) / unitsPerEm;
90
+ // For vertical alignment top
91
+ // To achieve consistent positioning between browser and PDF, we apply the difference between
92
+ // the font's actual height and the font size in pixels.
93
+ // Browsers middle the font within this height, so we only need half of it to apply to the top.
94
+ // This means the font renders a bit lower in the browser, but achieves PDF alignment
95
+ const topAdjustment = (fontBaseLineHeight * fontSize - fontSize) / 2;
96
+ if (verticalAlignment === constants_1.VERTICAL_ALIGN_TOP) {
97
+ return { topAdj: (0, helper_1.pt2px)(topAdjustment), bottomAdj: 0 };
98
+ }
99
+ // For vertical alignment bottom and middle
100
+ // When browsers render text in a non-form element (such as a <div>), some of the text may be
101
+ // lowered below and outside the containing element if the line height used is less than
102
+ // the base line-height of the font.
103
+ // This behaviour does not happen in a <textarea> though, so we need to adjust the positioning
104
+ // for consistency between editing and viewing to stop text jumping up and down.
105
+ // This portion of text is half of the difference between the base line height and the used
106
+ // line height. If using the same or higher line-height than the base font, then line-height
107
+ // takes over in the browser and this adjustment is not needed.
108
+ // Unlike the top adjustment - this is only driven by browser behaviour, not PDF alignment.
109
+ let bottomAdjustment = 0;
110
+ if (lineHeight < fontBaseLineHeight) {
111
+ bottomAdjustment = ((fontBaseLineHeight - lineHeight) * fontSize) / 2;
112
+ }
113
+ return { topAdj: 0, bottomAdj: (0, helper_1.pt2px)(bottomAdjustment) };
114
+ };
115
+ exports.getBrowserVerticalFontAdjustments = getBrowserVerticalFontAdjustments;
116
+ const getFontDescentInPt = (fontKitFont, fontSize) => {
117
+ const { descent, unitsPerEm } = fontKitFont;
118
+ return (descent / unitsPerEm) * fontSize;
96
119
  };
97
- exports.getFontAlignmentValue = getFontAlignmentValue;
120
+ exports.getFontDescentInPt = getFontDescentInPt;
98
121
  const heightOfFontAtSize = (fontKitFont, fontSize) => {
99
122
  const { ascent, descent, bbox, unitsPerEm } = fontKitFont;
100
123
  const scale = 1000 / unitsPerEm;
@@ -1 +1 @@
1
- {"version":3,"file":"font.js","sourceRoot":"","sources":["../../../src/font.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,iDAAmC;AAEnC,iCAA0E;AAC1E,mCAAgC;AAChC,2CAWqB;AACrB,qCAAwC;AACxC,wBAAmC;AAE5B,MAAM,mBAAmB,GAAG,CAAC,IAAU,EAAE,EAAE;IAChD,MAAM,OAAO,GAAG,EAAE,CAAC;IACnB,MAAM,gBAAgB,GAAG,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE;QAChE,MAAM,CAAC,QAAQ,EAAE,SAAS,CAAC,GAAG,GAAG,CAAC;QAElC,OAAO,CAAC,GAAG,IAAI,SAAS,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,GAAG,CAAC;IACrD,CAAC,EAAE,OAAO,CAAC,CAAC;IACZ,IAAI,gBAAgB,KAAK,OAAO,EAAE;QAChC,MAAM,KAAK,CAAC,0EAA0E,CAAC,CAAC;KACzF;IAED,OAAO,gBAAgB,CAAC;AAC1B,CAAC,CAAC;AAZW,QAAA,mBAAmB,uBAY9B;AAEF,MAAM,eAAe,GAAG,CAAC,IAAU,EAAE,EAAE;IACrC,MAAM,gBAAgB,GAAG,IAAA,2BAAmB,EAAC,IAAI,CAAC,CAAC;IACnD,OAAO,IAAI,CAAC,gBAAgB,CAAC,CAAC;AAChC,CAAC,CAAC;AAEK,MAAM,cAAc,GAAG,GAAS,EAAE,CAAC,CAAC;IACzC,CAAC,6BAAiB,CAAC,EAAE,EAAE,IAAI,EAAE,I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CAAC;AACzB,CAAC,CAAA,CAAC;AA/GW,QAAA,wBAAwB,4BA+GnC"}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.validateBarcodeInput = exports.checkGenerateProps = exports.checkDesignerProps = exports.checkPreviewProps = exports.checkUIProps = exports.checkTemplate = exports.checkUIOptions = exports.checkInputs = exports.b64toUint8Array = exports.getB64BasePdf = exports.pt2mm = exports.mm2pt = void 0;
3
+ exports.validateBarcodeInput = exports.checkGenerateProps = exports.checkDesignerProps = exports.checkPreviewProps = exports.checkUIProps = exports.checkTemplate = exports.checkUIOptions = exports.checkInputs = exports.b64toUint8Array = exports.getB64BasePdf = exports.pt2px = exports.pt2mm = exports.mm2pt = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const buffer_1 = require("buffer");
6
6
  const schema_1 = require("./schema");
@@ -14,6 +14,10 @@ const pt2mm = (pt) => {
14
14
  return pt * constants_1.PT_TO_MM_RATIO;
15
15
  };
16
16
  exports.pt2mm = pt2mm;
17
+ const pt2px = (pt) => {
18
+ return pt * constants_1.PT_TO_PX_RATIO;
19
+ };
20
+ exports.pt2px = pt2px;
17
21
  const blob2Base64Pdf = (blob) => {
18
22
  return new Promise((resolve, reject) => {
19
23
  const reader = new FileReader();
@@ -1 +1 @@
1
- {"version":3,"file":"helper.js","sourceRoot":"","sources":["../../../src/helper.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,mCAAgC;AAEhC,qCAQkB;AAClB,2CAA6D;AAC7D,iCAAmC;AAE5B,MAAM,KAAK,GAAG,CAAC,EAAU,EAAU,EAAE;IAC1C,OAAO,UAAU,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,GAAG,0BAAc,CAAC;AACjD,CAAC,CAAC;AAFW,QAAA,KAAK,SAEhB;AAEK,MAAM,KAAK,GAAG,CAAC,EAAU,EAAU,EAAE;IAC1C,OAAO,EAAE,GAAG,0BAAc,CAAC;AAC7B,CAAC,CA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AAC,IAAI,CAAC,KAAK,CAAC,IAAI,kBAAkB,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;KAC5D;IACD,IAAI,IAAI,KAAK,MAAM,EAAE;QACnB,kDAAkD;QAClD,kCAAkC;QAClC,MAAM,MAAM,GAAG,mBAAmB,CAAC;QAEnC,OAAO,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,kBAAkB,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC;KAC3D;IACD,IAAI,IAAI,KAAK,eAAe,EAAE;QAC5B,IAAI,GAAG,GAAG,KAAK,CAAC;QAChB,mGAAmG;QACnG,MAAM,MAAM,GAAG,qBAAqB,CAAC;QACrC,IAAI,GAAG,GAAG,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;QAC9B,IACE,GAAG,IAAI,IAAI;YACX,GAAG,CAAC,CAAC,CAAC,KAAK,IAAI;YACf,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,MAAM,KAAK,EAAE,IAAI,GAAG,CAAC,CAAC,CAAC,CAAC,MAAM,KAAK,CAAC,IAAI,GAAG,CAAC,CAAC,CAAC,CAAC,MAAM,KAAK,EAAE,IAAI,GAAG,CAAC,CAAC,CAAC,CAAC,MAAM,KAAK,EAAE,CAAC,EAC7F;YACA,IAAI,IAAI,GAAG,GAAG,CAAC,CAAC,CAAC,CAAC;YAClB,GAAG,GAAG,kBAAkB,CAAC,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC;SAC7C;QAED,OAAO,GAAG,CAAC;KACZ;IAED,OAAO,KAAK,CAAC;AACf,CAAC,CAAC;AAjFW,QAAA,oBAAoB,wBAiF/B"}
@@ -1,10 +1,14 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.calculateDynamicFontSize = exports.validateBarcodeInput = exports.checkGenerateProps = exports.checkDesignerProps = exports.checkPreviewProps = exports.checkUIProps = exports.checkTemplate = exports.checkUIOptions = exports.checkInputs = exports.getFontAlignmentValue = exports.getFontKitFont = exports.checkFont = exports.mm2pt = exports.widthOfTextAtSize = exports.heightOfFontAtSize = exports.getSplittedLines = exports.getDefaultFont = exports.getFallbackFontName = exports.b64toUint8Array = exports.getB64BasePdf = exports.isBarcodeSchema = exports.isImageSchema = exports.isTextSchema = exports.schemaTypes = exports.DEFAULT_FONT_VALUE = exports.BLANK_PDF = exports.PT_TO_PX_RATIO = exports.PT_TO_MM_RATIO = exports.MM_TO_PT_RATIO = exports.FONT_SIZE_ADJUSTMENT = exports.DEFAULT_DYNAMIC_FIT = exports.DYNAMIC_FIT_HORIZONTAL = exports.DYNAMIC_FIT_VERTICAL = exports.DEFAULT_FONT_COLOR = exports.DEFAULT_CHARACTER_SPACING = exports.DEFAULT_LINE_HEIGHT = exports.DEFAULT_ALIGNMENT = exports.DEFAULT_FONT_SIZE = exports.DEFAULT_FONT_NAME = void 0;
3
+ exports.calculateDynamicFontSize = exports.validateBarcodeInput = exports.checkGenerateProps = exports.checkDesignerProps = exports.checkPreviewProps = exports.checkUIProps = exports.checkTemplate = exports.checkUIOptions = exports.checkInputs = exports.getFontKitFont = exports.getFontDescentInPt = exports.getBrowserVerticalFontAdjustments = exports.checkFont = exports.pt2px = exports.mm2pt = exports.widthOfTextAtSize = exports.heightOfFontAtSize = exports.getSplittedLines = exports.getDefaultFont = exports.getFallbackFontName = exports.b64toUint8Array = exports.getB64BasePdf = exports.isBarcodeSchema = exports.isImageSchema = exports.isTextSchema = exports.schemaTypes = exports.DEFAULT_FONT_VALUE = exports.BLANK_PDF = exports.PT_TO_PX_RATIO = exports.PT_TO_MM_RATIO = exports.MM_TO_PT_RATIO = exports.FONT_SIZE_ADJUSTMENT = exports.DEFAULT_DYNAMIC_FIT = exports.DYNAMIC_FIT_HORIZONTAL = exports.DYNAMIC_FIT_VERTICAL = exports.DEFAULT_FONT_COLOR = exports.DEFAULT_CHARACTER_SPACING = exports.DEFAULT_LINE_HEIGHT = exports.DEFAULT_VERTICAL_ALIGNMENT = exports.VERTICAL_ALIGN_BOTTOM = exports.VERTICAL_ALIGN_MIDDLE = exports.VERTICAL_ALIGN_TOP = exports.DEFAULT_ALIGNMENT = exports.DEFAULT_FONT_SIZE = exports.DEFAULT_FONT_NAME = void 0;
4
4
  const constants_js_1 = require("./constants.js");
5
5
  Object.defineProperty(exports, "DEFAULT_FONT_NAME", { enumerable: true, get: function () { return constants_js_1.DEFAULT_FONT_NAME; } });
6
6
  Object.defineProperty(exports, "DEFAULT_FONT_SIZE", { enumerable: true, get: function () { return constants_js_1.DEFAULT_FONT_SIZE; } });
7
7
  Object.defineProperty(exports, "DEFAULT_ALIGNMENT", { enumerable: true, get: function () { return constants_js_1.DEFAULT_ALIGNMENT; } });
8
+ Object.defineProperty(exports, "VERTICAL_ALIGN_TOP", { enumerable: true, get: function () { return constants_js_1.VERTICAL_ALIGN_TOP; } });
9
+ Object.defineProperty(exports, "VERTICAL_ALIGN_MIDDLE", { enumerable: true, get: function () { return constants_js_1.VERTICAL_ALIGN_MIDDLE; } });
10
+ Object.defineProperty(exports, "VERTICAL_ALIGN_BOTTOM", { enumerable: true, get: function () { return constants_js_1.VERTICAL_ALIGN_BOTTOM; } });
11
+ Object.defineProperty(exports, "DEFAULT_VERTICAL_ALIGNMENT", { enumerable: true, get: function () { return constants_js_1.DEFAULT_VERTICAL_ALIGNMENT; } });
8
12
  Object.defineProperty(exports, "DEFAULT_LINE_HEIGHT", { enumerable: true, get: function () { return constants_js_1.DEFAULT_LINE_HEIGHT; } });
9
13
  Object.defineProperty(exports, "DEFAULT_CHARACTER_SPACING", { enumerable: true, get: function () { return constants_js_1.DEFAULT_CHARACTER_SPACING; } });
10
14
  Object.defineProperty(exports, "DEFAULT_FONT_COLOR", { enumerable: true, get: function () { return constants_js_1.DEFAULT_FONT_COLOR; } });
@@ -33,6 +37,7 @@ Object.defineProperty(exports, "checkPreviewProps", { enumerable: true, get: fun
33
37
  Object.defineProperty(exports, "checkDesignerProps", { enumerable: true, get: function () { return helper_js_1.checkDesignerProps; } });
34
38
  Object.defineProperty(exports, "checkGenerateProps", { enumerable: true, get: function () { return helper_js_1.checkGenerateProps; } });
35
39
  Object.defineProperty(exports, "mm2pt", { enumerable: true, get: function () { return helper_js_1.mm2pt; } });
40
+ Object.defineProperty(exports, "pt2px", { enumerable: true, get: function () { return helper_js_1.pt2px; } });
36
41
  Object.defineProperty(exports, "validateBarcodeInput", { enumerable: true, get: function () { return helper_js_1.validateBarcodeInput; } });
37
42
  const font_js_1 = require("./font.js");
38
43
  Object.defineProperty(exports, "calculateDynamicFontSize", { enumerable: true, get: function () { return font_js_1.calculateDynamicFontSize; } });
@@ -42,6 +47,7 @@ Object.defineProperty(exports, "heightOfFontAtSize", { enumerable: true, get: fu
42
47
  Object.defineProperty(exports, "widthOfTextAtSize", { enumerable: true, get: function () { return font_js_1.widthOfTextAtSize; } });
43
48
  Object.defineProperty(exports, "checkFont", { enumerable: true, get: function () { return font_js_1.checkFont; } });
44
49
  Object.defineProperty(exports, "getFontKitFont", { enumerable: true, get: function () { return font_js_1.getFontKitFont; } });
45
- Object.defineProperty(exports, "getFontAlignmentValue", { enumerable: true, get: function () { return font_js_1.getFontAlignmentValue; } });
50
+ Object.defineProperty(exports, "getBrowserVerticalFontAdjustments", { enumerable: true, get: function () { return font_js_1.getBrowserVerticalFontAdjustments; } });
51
+ Object.defineProperty(exports, "getFontDescentInPt", { enumerable: true, get: function () { return font_js_1.getFontDescentInPt; } });
46
52
  Object.defineProperty(exports, "getSplittedLines", { enumerable: true, get: function () { return font_js_1.getSplittedLines; } });
47
53
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":";;;AAAA,iDAgBwB;AAsDtB,kGArEA,gCAAiB,OAqEA;AACjB,kGArEA,gCAAiB,OAqEA;AACjB,kGArEA,gCAAiB,OAqEA;AACjB,oGArEA,kCAAmB,OAqEA;AACnB,0GArEA,wCAAyB,OA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,mGAvCA,4BAAkB,OAuCA;AAPlB,iGA/BA,0BAAgB,OA+BA"}
@@ -1,13 +1,20 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DesignerReactProps = exports.DesignerProps = exports.PreviewReactProps = exports.PreviewProps = exports.UIProps = exports.UIOptions = exports.SchemaInputs = exports.GenerateProps = exports.GeneratorOptions = exports.CommonProps = exports.Inputs = exports.Template = exports.BasePdf = exports.Font = exports.SchemaForUI = exports.Schema = exports.BarcodeSchema = exports.ImageSchema = exports.TextSchema = exports.CommonSchema = exports.SchemaType = exports.BarcodeSchemaType = exports.schemaTypes = exports.barcodeSchemaTypes = exports.Alignment = exports.Size = exports.Lang = void 0;
3
+ exports.DesignerReactProps = exports.DesignerProps = exports.PreviewReactProps = exports.PreviewProps = exports.UIProps = exports.UIOptions = exports.SchemaInputs = exports.GenerateProps = exports.GeneratorOptions = exports.CommonProps = exports.Inputs = exports.Template = exports.BasePdf = exports.Font = exports.SchemaForUI = exports.Schema = exports.BarcodeSchema = exports.ImageSchema = exports.TextSchema = exports.CommonSchema = exports.SchemaType = exports.BarcodeSchemaType = exports.schemaTypes = exports.barcodeSchemaTypes = exports.VerticalAlignment = exports.Alignment = exports.Size = exports.Lang = void 0;
4
4
  /* eslint dot-notation: "off"*/
5
5
  const zod_1 = require("zod");
6
+ const constants_1 = require("./constants");
6
7
  const langs = ['en', 'ja', 'ar', 'th', 'pl'];
7
8
  exports.Lang = zod_1.z.enum(langs);
8
9
  exports.Size = zod_1.z.object({ height: zod_1.z.number(), width: zod_1.z.number() });
9
10
  const alignments = ['left', 'center', 'right'];
10
11
  exports.Alignment = zod_1.z.enum(alignments);
12
+ const verticalAlignments = [
13
+ constants_1.VERTICAL_ALIGN_TOP,
14
+ constants_1.VERTICAL_ALIGN_MIDDLE,
15
+ constants_1.VERTICAL_ALIGN_BOTTOM,
16
+ ];
17
+ exports.VerticalAlignment = zod_1.z.enum(verticalAlignments);
11
18
  // prettier-ignore
12
19
  exports.barcodeSchemaTypes = ['qrcode', 'japanpost', 'ean13', 'ean8', 'code39', 'code128', 'nw7', 'itf14', 'upca', 'upce', 'gs1datamatrix'];
13
20
  const notBarcodeSchemaTypes = ['text', 'image'];
@@ -24,6 +31,7 @@ exports.CommonSchema = zod_1.z.object({
24
31
  exports.TextSchema = exports.CommonSchema.extend({
25
32
  type: zod_1.z.literal(exports.SchemaType.Enum.text),
26
33
  alignment: exports.Alignment.optional(),
34
+ verticalAlignment: exports.VerticalAlignment.optional(),
27
35
  fontSize: zod_1.z.number().optional(),
28
36
  fontName: zod_1.z.string().optional(),
29
37
  fontColor: zod_1.z.string().optional(),
@@ -1 +1 @@
1
- {"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../src/schema.ts"],"names":[],"mappings":";;;AAAA,+BAA+B;AAC/B,6BAAwB;AAExB,MAAM,KAAK,GAAG,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAU,CAAC;AACzC,QAAA,IAAI,GAAG,OAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;AAErB,QAAA,IAAI,GAAG,OAAC,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,EAAE,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;AAExE,MAAM,UAAU,GAAG,CAAC,MAAM,EAAE,QAAQ,EAAE,OAAO,CAAU,CAAC;AAC3C,QAAA,SAAS,GAAG,OAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;AAE5C,kBAAkB;AACL,QAAA,kBAAkB,GAAG,CAAC,QAAQ,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,SAAS,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,eAAe,CAAU,CAAC;AAC1J,MAAM,qBAAqB,GAAG,CAAC,MAAM,EAAE,OAAO,CAAU,CAAC;A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,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;SACzE,OAAO,CAAC,OAAC,CAAC,IAAI,EAAE,CAAC;SACjB,QAAQ,EAAE;IACb,IAAI,EAAE,YAAI;CACX,CAAC,CAAC;AAEH,yCAAyC;AAE5B,QAAA,aAAa,GAAG,eAAO,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC;AAC5C,QAAA,kBAAkB,GAAG,qBAAa,CAAC,IAAI,CAAC,EAAE,YAAY,EAAE,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC;IAClF,cAAc,EAAE,OAAC,CAAC,QAAQ,EAAE,CAAC,IAAI,CAAC,gBAAQ,CAAC,CAAC,OAAO,CAAC,OAAC,CAAC,IAAI,EAAE,CAAC;IAC7D,IAAI,EAAE,YAAI;CACX,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"type.js","sourceRoot":"","sources":["../../../src/type.ts"],"names":[],"mappings":";;;AACA,2CA2BqB;AAGR,QAAA,WAAW,GAAG,uBAAY,CAAC;AACjC,MAAM,YAAY,GAAG,CAAC,GAAiB,EAAqB,EAAE,CAAC,GAAG,CAAC,IAAI,KAAK,MAAM,CAAC;AAA7E,QAAA,YAAY,gBAAiE;AACnF,MAAM,aAAa,GAAG,CAAC,GAAiB,EAAsB,EAAE,CAAC,GAAG,CAAC,IAAI,KAAK,OAAO,CAAC;AAAhF,QAAA,aAAa,iBAAmE;AACtF,MAAM,eAAe,GAAG,CAAC,GAAiB,EAAwB,EAAE,CACzE,8BAAkB,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAW,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;AADnD,QAAA,eAAe,mBACoC"}
1
+ {"version":3,"file":"type.js","sourceRoot":"","sources":["../../../src/type.ts"],"names":[],"mappings":";;;AAGA,2CA2BqB;AAUR,QAAA,WAAW,GAAG,uBAAY,CAAC;AACjC,MAAM,YAAY,GAAG,CAAC,GAAiB,EAAqB,EAAE,CAAC,GAAG,CAAC,IAAI,KAAK,MAAM,CAAC;AAA7E,QAAA,YAAY,gBAAiE;AACnF,MAAM,aAAa,GAAG,CAAC,GAAiB,EAAsB,EAAE,CAAC,GAAG,CAAC,IAAI,KAAK,OAAO,CAAC;AAAhF,QAAA,aAAa,iBAAmE;AACtF,MAAM,eAAe,GAAG,CAAC,GAAiB,EAAwB,EAAE,CACzE,8BAAkB,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAW,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;AADnD,QAAA,eAAe,mBACoC"}
@@ -9,7 +9,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
9
9
  };
10
10
  import { readFileSync } from 'fs';
11
11
  import * as path from 'path';
12
- import { calculateDynamicFontSize, checkFont, getDefaultFont, getFontKitFont, getSplittedLines, } from '../src/font';
12
+ import { calculateDynamicFontSize, checkFont, getBrowserVerticalFontAdjustments, getDefaultFont, getFontDescentInPt, getFontKitFont, getSplittedLines, } from '../src/font';
13
13
  import { BLANK_PDF } from '../src';
14
14
  const sansData = readFileSync(path.join(__dirname, `/assets/fonts/SauceHanSansJP.ttf`));
15
15
  const serifData = readFileSync(path.join(__dirname, `/assets/fonts/SauceHanSerifJP.ttf`));
@@ -392,4 +392,48 @@ describe('calculateDynamicFontSize with Custom font', () => {
392
392
  expect(result).toBe(5);
393
393
  }));
394
394
  });
395
+ describe('getFontDescentInPt test', () => {
396
+ test('it gets a descent size relative to the font size', () => {
397
+ expect(getFontDescentInPt({ descent: -400, unitsPerEm: 1000 }, 12)).toBe(-4.800000000000001);
398
+ expect(getFontDescentInPt({ descent: 54, unitsPerEm: 1000 }, 20)).toBe(1.08);
399
+ expect(getFontDescentInPt({ descent: -512, unitsPerEm: 2048 }, 54)).toBe(-13.5);
400
+ });
401
+ });
402
+ describe('getBrowserVerticalFontAdjustments test', () => {
403
+ // Font with a base line-height of 1.349
404
+ const font = { ascent: 1037, descent: -312, unitsPerEm: 1000 };
405
+ test('it gets a top adjustment when vertically aligning top', () => {
406
+ expect(getBrowserVerticalFontAdjustments(font, 12, 1.0, 'top')).toEqual({
407
+ topAdj: 2.791301999999999,
408
+ bottomAdj: 0,
409
+ });
410
+ expect(getBrowserVerticalFontAdjustments(font, 36, 2.0, 'top')).toEqual({
411
+ topAdj: 8.373906,
412
+ bottomAdj: 0,
413
+ });
414
+ });
415
+ test('it gets a bottom adjustment when vertically aligning middle or bottom', () => {
416
+ expect(getBrowserVerticalFontAdjustments(font, 12, 1.0, 'bottom')).toEqual({
417
+ topAdj: 0,
418
+ bottomAdj: 2.791302,
419
+ });
420
+ expect(getBrowserVerticalFontAdjustments(font, 12, 1.15, 'middle')).toEqual({
421
+ topAdj: 0,
422
+ bottomAdj: 1.5916020000000004,
423
+ });
424
+ });
425
+ test('it does not get a bottom adjustment if the line height exceeds that of the font', () => {
426
+ expect(getBrowserVerticalFontAdjustments(font, 12, 1.35, 'bottom')).toEqual({
427
+ topAdj: 0,
428
+ bottomAdj: 0,
429
+ });
430
+ });
431
+ test('it does not get a bottom adjustment if the font base line-height is 1.0 or less', () => {
432
+ const thisFont = { ascent: 900, descent: -50, unitsPerEm: 1000 };
433
+ expect(getBrowserVerticalFontAdjustments(thisFont, 20, 1.0, 'bottom')).toEqual({
434
+ topAdj: 0,
435
+ bottomAdj: 0,
436
+ });
437
+ });
438
+ });
395
439
  //# sourceMappingURL=font.test.js.map