-
Notifications
You must be signed in to change notification settings - Fork 1.6k
ENH: Font: Initialise a Font from an embedded font file #3704
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
489ad1a
Extract the /FontFile and store it in the new FileDescriptor object
1b14e3e
ENH: Font: Enable initialisation from TrueType font file
PJBrs d64b5da
MAINT: Font: Refactor space width calculation
PJBrs 5555b9a
ENH: Font: Add character_map from embedded font
PJBrs 3b6b992
ENH: Font: More comprehensive detection of font flags
PJBrs 7c37436
ENH: tests/test_font.py: Test font from font file
PJBrs 9d88850
MAINT: Font: Factor out parsing font flags
PJBrs 3b07084
ENH: Tests: Add test that catches import error when fonttools not ins…
PJBrs fb520df
ENH: Tests: Add font file without capheight, xheight
PJBrs 2afe7c2
ENH: Tests: Add unit test for fonts to achieve full coverage
PJBrs 20e8cda
MAINT: Import annotations
PJBrs 2c4f9d3
ENH: Improve readability
PJBrs de7226d
Error message formatting
PJBrs 45bddfa
ENH: Add fonttools to requirements more sophisticatedly
PJBrs 5be22ea
ENH: test_font: Always import fonttools
PJBrs 639d9c9
ENH: Adapt _font.py to annotations
PJBrs cd67797
Final addition of fontTools requirement
PJBrs e0a958c
ENH: test_font.py: Adapt the test by mocking the environment, not HAS…
PJBrs 0816f50
MAINT: Fix spelling
PJBrs 8ca583c
MAINT: test_font.py: prefer isinstance over type
PJBrs 415ce6a
test_font_from_font_file_no_fonttools: Don't clobber environment
PJBrs File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,5 @@ | ||
| coverage | ||
| fonttools | ||
| fpdf2 | ||
| mypy | ||
| pillow | ||
|
|
||
This file contains hidden or 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
|
PJBrs marked this conversation as resolved.
|
Binary file not shown.
This file contains hidden or 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.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.