Closed cweiske closed 6 months ago
Cherry picked the whole bunch to my fork, looked ok to me so I've merged it to bash0/cewe2pdf. Might as well have the best version available in the most obvious place :-). I'm vaguely interested to know how you identified the somewhat exotic list of fonts that were affected by having Regular in their normal name? By hand, or do you actually have a test that uses all the fonts?
On Sun, 5 May 2024 at 15:12, Christian Weiske @.***> wrote:
Assorted collection of patches I deem helpful. The last one resolves #134 https://github.com/bash0/cewe2pdf/issues/134.
Feel free to only cherry pick the ones you like.
You can view, comment on, or merge this pull request online at:
https://github.com/bash0/cewe2pdf/pull/135 Commit Summary
- abe2c59 https://github.com/bash0/cewe2pdf/pull/135/commits/abe2c596976c84868dd67f6b47075b906620635e Ignore cewe_folder.txt
- 6067f45 https://github.com/bash0/cewe2pdf/pull/135/commits/6067f45fafb5f96be3733e19527440dc05b85606 Update installation instructions for Linux and python3
- bcc1bdb https://github.com/bash0/cewe2pdf/pull/135/commits/bcc1bdbef32a1cf15cdd2dc47b58cddba82c241e Mark cewe2pdf.py executable and use python3
- eb9cd0b https://github.com/bash0/cewe2pdf/pull/135/commits/eb9cd0b0f1ce838844458eadfecdd392828534c9 Do not use PIL.Image.ANTIALIAS with pil >= 9.1.0
- e7cd59e https://github.com/bash0/cewe2pdf/pull/135/commits/e7cd59eefe4c211cd9fd58e704a8b492e702e505 Mention .mcfx in multiple places
- 2c34c2f https://github.com/bash0/cewe2pdf/pull/135/commits/2c34c2fad2e8fb5a2b14f0bc12d12e07d28bb020 Also use first .mcfx file, not only first .mcf file in folder
- 2a346a9 https://github.com/bash0/cewe2pdf/pull/135/commits/2a346a93b5fc26b893baef8049dee12bf71af368 Search cewe_folder.txt and additional_fonts.txt in cewe2pdf.py dir, too
- 3499ed5 https://github.com/bash0/cewe2pdf/pull/135/commits/3499ed556926f81f0c376d089fc0b861089e779a Remove " Regular" from full font names
File Changes
(3 files https://github.com/bash0/cewe2pdf/pull/135/files)
- M .gitignore https://github.com/bash0/cewe2pdf/pull/135/files#diff-bc37d034bad564583790a46f19d807abfe519c5671395fd494d8cce506c42947 (2)
- M README.md https://github.com/bash0/cewe2pdf/pull/135/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5 (18)
- M cewe2pdf.py https://github.com/bash0/cewe2pdf/pull/135/files#diff-28df504fdb3f34d0f9c68102e9b1665d672ceed4a682cdc6f6da3d64d172de6b (115)
Patch Links:
— Reply to this email directly, view it on GitHub https://github.com/bash0/cewe2pdf/pull/135, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADBIDKMBS3GSYD6CIYBG5B3ZAYV5BAVCNFSM6AAAAABHHW74LCVHI2DSMVQWIX3LMV43ASLTON2WKOZSGI3TSNJSGY3DQMY . You are receiving this because you are subscribed to this thread.Message ID: @.***>
I'm vaguely interested to know how you identified the somewhat exotic list of fonts that were affected by having Regular in their normal name
During development of the patch I simply print()
ed the names affected by my if statement.
Of course. Getting the fonts "right" is not exactly straightforward so I think it would be useful to notify the special cases we have found and handled as we go past them! Perhaps we should leave the output in place as an info level log entry.
On Sun, 5 May 2024 at 21:26, Christian Weiske @.***> wrote:
I'm vaguely interested to know how you identified the somewhat exotic list of fonts that were affected by having Regular in their normal name
During development of the patch I simply print()ed the names affected by my if statement.
— Reply to this email directly, view it on GitHub https://github.com/bash0/cewe2pdf/pull/135#issuecomment-2094920617, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADBIDKOXGQYFGHQTRDETSTDZA2BUHAVCNFSM6AAAAABHHW74LCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOJUHEZDANRRG4 . You are receiving this because you modified the open/close state.Message ID: @.***>
Assorted collection of patches I deem helpful.
Notable commits:
--tmp-dir
option makes it faster to develop cewe2pdf with .mcfx filesFeel free to only cherry pick the ones you like.