Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change text operators to accept f64 instead of i64
According to the PDF Reference [0], Table 5.2, all text state operators accept numbers, that means reals or integers. Currently, printpdf only accepts integers (i64). This is not sufficient for all use cases. For example, for printing justified text, users will want to have fine-grained control over character and word spacing. Therefore, this patch changes all text operation methods to accept floats instead of integers (f64 instead of i64). [0] https://www.adobe.com/content/dam/acom/en/devnet/pdf/pdfs/pdf_reference_archives/PDFReference.pdf
- Loading branch information
1 parent
9a87586
commit 3d03597
Showing
3 changed files
with
21 additions
and
21 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