-
Notifications
You must be signed in to change notification settings - Fork 536
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix encoding for encoding dictionary without Type item. (#500)
* Font::decodeContent() fixes to support Encoding dictionates without Type header. * Pass $unicode by reference in Font::decodeContentByEncoding(). * Add encoding initialization. * Font's initialized encoding in private property. * Add "ext-iconv" to "require" in composer.json * Delete unnecessary unicode string test for #95 test. * Fix misprint. * Add comments + small refactoring. * Run dev-tools/vendor/bin/php-cs-fixer fix Fixed all files in 0.018 seconds, 12.000 MB memory used * Fixes by @k00ni suggestions. * Add test (with pdf file) for issue in PR #500. * Add pdf-file for test. * Add comments to Font class methods. * Apply suggestions from code review Co-authored-by: Konrad Abicht <[email protected]> * Delete trows in phpDoc for test. * Fixes according to @k00ni suggestions. - Add return types to tests methods. - Fix todos in phpDocs. * Apply suggestions from code review Co-authored-by: Konrad Abicht <[email protected]> * Update test file (which opens without error in Adobe Acrobat Reader). * CS-fixer fix. * Avoid throwing error when encoding isn't found (previous behavior) Co-authored-by: Konrad Abicht <[email protected]> Co-authored-by: Jeremy Benoist <[email protected]>
- Loading branch information
1 parent
43ca68f
commit 4551cd0
Showing
6 changed files
with
241 additions
and
76 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
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 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