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 (JIRA)" <ji...@apache.org> on 2009/06/20 15:34:07 UTC

[jira] Resolved: (PDFBOX-487) Font size not rendered with the needed precision

     [ https://issues.apache.org/jira/browse/PDFBOX-487?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andreas Lehmkühler resolved PDFBOX-487.
---------------------------------------

       Resolution: Fixed
    Fix Version/s: 0.8.0-incubator

I've added your suggestion with version 786814. Works well.

@Volker
Thanks for the hint!!

> Font size not rendered with the needed precision
> ------------------------------------------------
>
>                 Key: PDFBOX-487
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-487
>             Project: PDFBox
>          Issue Type: Bug
>         Environment: windows xp and ubuntu linux 9.04 
> svn at revision 785921.
> hp laserjet 8150 & hp laserjet 1320
>            Reporter: Volker Bier
>             Fix For: 0.8.0-incubator
>
>         Attachments: pdf.pdf
>
>
> When previewing the attached file using the PDFReader, the font size is not correct. The last paragraph (the one with the huge hex string that is split over several lines) should be exactly as long as the 
> separator lines. See how the font size changes if the preview is resized, leaving a wider or narrower margin at the end of the page.
> This can be solved by adding
>         graphics.setRenderingHint(RenderingHints.KEY_FRACTIONALMETRICS, RenderingHints.VALUE_FRACTIONALMETRICS_ON);
> to the drawPage method of the PageDrawer. After applying the change, always fits the page exactly, independent of the preview window size.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.