-
Notifications
You must be signed in to change notification settings - Fork 359
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes #342 - Fixed text-justification and letter-spacing when fallbac…
…k fonts are used. With tests. Thanks for reporting @daliuss!
- Loading branch information
Showing
11 changed files
with
63 additions
and
5 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
Binary file added
BIN
+36.6 KB
openhtmltopdf-examples/src/main/resources/visualtest/expected/text/letter-spacing-bidi.pdf
Binary file not shown.
Binary file added
BIN
+11.6 KB
...df-examples/src/main/resources/visualtest/expected/text/letter-spacing-fallback-fonts.pdf
Binary file not shown.
Binary file added
BIN
+19.1 KB
...opdf-examples/src/main/resources/visualtest/expected/text/text-justify-fallback-fonts.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
20 changes: 20 additions & 0 deletions
20
...mltopdf-examples/src/main/resources/visualtest/html/text/text-justify-fallback-fonts.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,20 @@ | ||
<html> | ||
<head> | ||
<style> | ||
@page { | ||
size: 400px 400px; | ||
} | ||
* { | ||
font-family: 'TestFont', 'ExtraFont'; | ||
font-size: 20px; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<p style="text-align: justify;"> | ||
The quick brown fox fell over the zoo. | ||
ABCČ ĆDĐEFG HIJKL MNOPQ RSŠTU VWXY ZŽabc čćdđe fghij klmnop qrsšt uvwx yzžА БВГҐД ЂЕЁЄ | ||
ЖЗЅИІ ЇЙЈ КЛ ЉМНЊОП РСТЋ УЎФХ ЦЧЏШ ЩЪЫЬЭ ЮЯабв гґдђ еёє ж | ||
</p> | ||
</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
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