You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Arjohn Kampman (Created) (JIRA)" <ji...@apache.org> on 2011/10/17 16:23:10 UTC
[jira] [Created] (PDFBOX-1140) TTFDataStream.read32Fixed() discards
fractions
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
Priority: Minor
Attachments: TTFDataStream.patch
TTFDataStream.read32Fixed() tries to calculate its fracional 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
[jira] [Updated] (PDFBOX-1140) TTFDataStream.read32Fixed() discards
fractions
Posted by "Arjohn Kampman (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PDFBOX-1140?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Arjohn Kampman updated PDFBOX-1140:
-----------------------------------
Description: 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. (was: TTFDataStream.read32Fixed() tries to calculate its fracional 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.)
> 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
> Priority: Minor
> 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
[jira] [Resolved] (PDFBOX-1140) TTFDataStream.read32Fixed()
discards fractions
Posted by "Andreas Lehmkühler (Resolved JIRA)" <ji...@apache.org>.
[ 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
[jira] [Updated] (PDFBOX-1140) TTFDataStream.read32Fixed() discards
fractions
Posted by "Arjohn Kampman (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PDFBOX-1140?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Arjohn Kampman updated PDFBOX-1140:
-----------------------------------
Attachment: TTFDataStream.patch
> 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
> Priority: Minor
> Attachments: TTFDataStream.patch
>
>
> TTFDataStream.read32Fixed() tries to calculate its fracional 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