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

Tilman Hausherr updated PDFBOX-2262:
------------------------------------

    Attachment: test_1fd9a_test.pdf

The "GC overhead limit exceeded" exception still happens, with the attached 
file test_1fd9a_test.pdf

{code}
Exception in thread "AWT-EventQueue-0" java.lang.OutOfMemoryError: GC overhead 
limit exceeded
        at java.lang.Integer.valueOf(Unknown Source)
        at org.apache.fontbox.cmap.CMap.addCharMapping(CMap.java:227)
        at org.apache.fontbox.cmap.CMapParser.parse(CMapParser.java:219)
        at 
org.apache.pdfbox.pdmodel.font.CMapManager.parseCMap(CMapManager.java:76)
        at 
org.apache.pdfbox.pdmodel.font.CMapManager.parseCMap(CMapManager.java:61)
        at org.apache.pdfbox.pdmodel.font.PDFont.readCMap(PDFont.java:136)
{code}

> Remove usage of AWT fonts
> -------------------------
>
>                 Key: PDFBOX-2262
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-2262
>             Project: PDFBox
>          Issue Type: Improvement
>          Components: PDModel, Rendering
>    Affects Versions: 2.0.0
>            Reporter: John Hewson
>            Assignee: John Hewson
>         Attachments: ELVIA-Reiserucktritt-Vollschutz.pdf-1.png, 
> FreeSansTest.pdf, PDFBOX-1094-094730.pdf-1.png, PDFBOX-1770.pdf-1.png, 
> bugzilla886049.pdf, bugzilla886049.pdf-1.png, test_1fd9a_test.pdf
>
>
> We're still using AWT fonts to render the "standard 14" built-in fonts, which 
> causes rendering problems and encoding issues (see  PDFBOX-2140). We're also 
> using AWT for some fallback fonts.
> Removal of these AWT fonts isn't too difficult, we need to load the fonts 
> using the existing PDFFontManager mechanism which has recently been added. 
> All missing TrueType fonts loaded from disk have been using SystemFontManager 
> for a number of weeks now. 
> We should ship some sensible default fonts with PDFBox, such as the 
> Liberation fonts (see PDFBOX-2169, PDFBOX-2263), in case PDFFontManager can't 
> find anything suitable, rather than falling back to the default TTF font, but 
> by default we'll probe the system for suitable fonts.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to