-
Notifications
You must be signed in to change notification settings - Fork 364
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #669 from danfickle/fix_641_fallback_font
Fixes #641 Support fallback fonts
- Loading branch information
Showing
14 changed files
with
957 additions
and
389 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 added
BIN
+7.56 KB
...tmltopdf-examples/src/main/resources/visualtest/expected/text/issue-641-font-fallback.pdf
Binary file not shown.
22 changes: 22 additions & 0 deletions
22
openhtmltopdf-examples/src/main/resources/visualtest/html/text/issue-641-font-fallback.html
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<html> | ||
<head> | ||
<style> | ||
@page { | ||
size: 200px 200px; | ||
margin: 10px; | ||
} | ||
</style> | ||
</head> | ||
<body style="font-family: 'no-exist'; font-weight: 400;"> | ||
|
||
<div style="font-family: 'SourceSans'; font-weight: 400;"> | ||
Text should look normal! | ||
</div> | ||
|
||
<!-- Using fallback font --> | ||
<div style="font-family: 'no-exist'; font-weight: 400;"> | ||
Text should look bold! | ||
</div> | ||
|
||
</body> | ||
</html> |
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.