[ 
https://issues.apache.org/jira/browse/PDFBOX-2166?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14077866#comment-14077866
 ] 

ASF subversion and git services commented on PDFBOX-2166:
---------------------------------------------------------

Commit 1614391 from [~tilman] in branch 'pdfbox/trunk'
[ https://svn.apache.org/r1614391 ]

PDFBOX-2166: Treat a font with only one with as monospaced even if fixedPitch 
flag isn't set

> AIOOBE with barcode ttf font
> ----------------------------
>
>                 Key: PDFBOX-2166
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-2166
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Writing
>    Affects Versions: 2.0.0
>            Reporter: Tilman Hausherr
>              Labels: 42, barcode, font, truetype
>         Attachments: free3of9.ttf
>
>
> Inspired by this complaint
> http://stackoverflow.com/a/24432822/535646
> I tried loading barcode fonts with PDFBox, with the command
> {code}
> PDTrueTypeFont.loadTTF()
> {code}
> With the file free3of9.ttf that I can get here 
> http://www.barcodesinc.com/free-barcode-font/
> I get this exception:
> {code}
> Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 42
>       at 
> org.apache.pdfbox.pdmodel.font.PDTrueTypeFont.makeFontDescriptor(PDTrueTypeFont.java:337)
>       at 
> org.apache.pdfbox.pdmodel.font.PDTrueTypeFont.<init>(PDTrueTypeFont.java:127)
>       at 
> org.apache.pdfbox.pdmodel.font.PDTrueTypeFont.loadTTF(PDTrueTypeFont.java:80)
> {code}



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

Reply via email to