-
-
Notifications
You must be signed in to change notification settings - Fork 198
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix text height rendering for PDF generation (#196)
* Update PDF generation to render text in correct position * MISC - UI logic updated to align fotn rendering with generated PDFs * MISC - variables names updated * MISC - heightOfFontAtSize method updated to include acent workaround for specific fonts * MISC - ascent value modifier removed * MISC - buffer package added to UI, fallback font safe guarding added to generator file * MISC - fallback font added to fontkit.create() if no custom fonts present * Test snapshots and pdf files updated to account for new changes to the generator * MISC - generator file structure updated based on feedback * MISC - generator file updated and console log removed * MISC - TextSchema updated to make use of fallback font * MISC - Test PDF files updated to only change ones that contain TextSchema --------- Co-authored-by: Jack Barton <jack@pennyblack.io>
- Loading branch information
1 parent
040e52b
commit 1bed97e
Showing
49 changed files
with
169 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+124 Bytes
(100%)
packages/generator/__tests__/assets/pdfs/assert/Aone72312宛名.pdf
Binary file not shown.
Binary file modified
BIN
+57 Bytes
(100%)
packages/generator/__tests__/assets/pdfs/assert/BASEロゴ入り1面.pdf
Binary file not shown.
Binary file modified
BIN
+90 Bytes
(100%)
packages/generator/__tests__/assets/pdfs/assert/BASEロゴ入り洋長3号封筒.pdf
Binary file not shown.
Binary file modified
BIN
+62 Bytes
(100%)
packages/generator/__tests__/assets/pdfs/assert/background.pdf
Binary file not shown.
Binary file modified
BIN
-7.67 KB
(99%)
packages/generator/__tests__/assets/pdfs/assert/canvasPdf.pdf
Binary file not shown.
Binary file modified
BIN
-414 Bytes
(100%)
packages/generator/__tests__/assets/pdfs/assert/connpass名札.pdf
Binary file not shown.
Binary file modified
BIN
+1 Byte
(100%)
packages/generator/__tests__/assets/pdfs/assert/fontColor.pdf
Binary file not shown.
Binary file modified
BIN
-52 Bytes
(100%)
packages/generator/__tests__/assets/pdfs/assert/fontSubset.pdf
Binary file not shown.
Binary file modified
BIN
+22 Bytes
(100%)
packages/generator/__tests__/assets/pdfs/assert/multiSchemasTemplate with multiInputs.pdf
Binary file not shown.
Binary file modified
BIN
+10 Bytes
(100%)
packages/generator/__tests__/assets/pdfs/assert/multiSchemasTemplate with singleInputs.pdf
Binary file not shown.
Binary file modified
BIN
+16 Bytes
(100%)
packages/generator/__tests__/assets/pdfs/assert/singleSchemaTemplate with multiInputs.pdf
Binary file not shown.
Binary file modified
BIN
+8 Bytes
(100%)
packages/generator/__tests__/assets/pdfs/assert/singleSchemaTemplate with singleInputs.pdf
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
-100 Bytes
(98%)
packages/generator/__tests__/assets/pdfs/assert/z97mmx210mm.pdf
Binary file not shown.
Binary file modified
BIN
+174 Bytes
(100%)
packages/generator/__tests__/assets/pdfs/assert/ゆうパケット.pdf
Binary file not shown.
Binary file modified
BIN
+416 Bytes
(100%)
packages/generator/__tests__/assets/pdfs/assert/シンプルラベル24面.pdf
Binary file not shown.
Binary file modified
BIN
+424 Bytes
(100%)
packages/generator/__tests__/assets/pdfs/assert/シンプルラベル24面BASE.pdf
Binary file not shown.
Binary file modified
BIN
+422 Bytes
(100%)
packages/generator/__tests__/assets/pdfs/assert/ストライプラベル24面.pdf
Binary file not shown.
Binary file modified
BIN
+40 Bytes
(100%)
packages/generator/__tests__/assets/pdfs/assert/スマートレター.pdf
Binary file not shown.
Binary file modified
BIN
+435 Bytes
(100%)
packages/generator/__tests__/assets/pdfs/assert/フレームラベル24面.pdf
Binary file not shown.
Binary file modified
BIN
+69 Bytes
(100%)
packages/generator/__tests__/assets/pdfs/assert/レターパック.pdf
Binary file not shown.
Binary file modified
BIN
+72 Bytes
(100%)
packages/generator/__tests__/assets/pdfs/assert/レターパックプラス.pdf
Binary file not shown.
Binary file modified
BIN
+69 Bytes
(100%)
packages/generator/__tests__/assets/pdfs/assert/レターパックライト.pdf
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
+168 Bytes
(100%)
packages/generator/__tests__/assets/pdfs/assert/名刺サイズの名札.pdf
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
+157 Bytes
(100%)
packages/generator/__tests__/assets/pdfs/assert/書類送付状.pdf
Binary file not shown.
Binary file modified
BIN
+81 Bytes
(100%)
packages/generator/__tests__/assets/pdfs/assert/洋長3号封筒.pdf
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
+552 Bytes
(110%)
packages/generator/__tests__/assets/pdfs/assert/装飾なしラベル24面.pdf
Binary file not shown.
Binary file modified
BIN
+550 Bytes
(110%)
packages/generator/__tests__/assets/pdfs/assert/装飾なしラベル24面中央揃え.pdf
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
+82 Bytes
(100%)
packages/generator/__tests__/assets/pdfs/assert/角形2号封筒.pdf
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
+59 Bytes
(100%)
packages/generator/__tests__/assets/pdfs/assert/郵便はがき横書き.pdf
Binary file not shown.
Binary file modified
BIN
+79 Bytes
(100%)
packages/generator/__tests__/assets/pdfs/assert/長形3号封筒.pdf
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
+246 Bytes
(100%)
packages/generator/__tests__/assets/pdfs/assert/領収書x4.pdf
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.