You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Andreas Lehmkühler (Resolved JIRA)" <ji...@apache.org> on 2011/10/25 07:10:32 UTC
[jira] [Resolved] (PDFBOX-1140) TTFDataStream.read32Fixed()
discards fractions
[ https://issues.apache.org/jira/browse/PDFBOX-1140?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andreas Lehmkühler resolved PDFBOX-1140.
----------------------------------------
Resolution: Fixed
Fix Version/s: 1.7.0
Assignee: Andreas Lehmkühler
I added the patch as proposed by Arjohn in revision 1188514.
Thanks for the contribution!
> TTFDataStream.read32Fixed() discards fractions
> ----------------------------------------------
>
> Key: PDFBOX-1140
> URL: https://issues.apache.org/jira/browse/PDFBOX-1140
> Project: PDFBox
> Issue Type: Bug
> Components: FontBox
> Affects Versions: 1.6.0
> Reporter: Arjohn Kampman
> Assignee: Andreas Lehmkühler
> Priority: Minor
> Fix For: 1.7.0
>
> Attachments: TTFDataStream.patch
>
>
> TTFDataStream.read32Fixed() tries to calculate its fractional part by dividing an unsigned short with 65536. But because this method uses an integer division, the fractional value will always be 0. I've attached a simple patch that fixes this.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira