[ https://issues.apache.org/jira/browse/PDFBOX-2714?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tilman Hausherr updated PDFBOX-2714: ------------------------------------ Component/s: FontBox > Type1Fonts working on one computer, not another > ----------------------------------------------- > > Key: PDFBOX-2714 > URL: https://issues.apache.org/jira/browse/PDFBOX-2714 > Project: PDFBox > Issue Type: Bug > Components: FontBox > Affects Versions: 2.0.0 > Environment: Win7 works, WinServer2012 doesn't > Reporter: Daniel Brownell > Assignee: John Hewson > Attachments: arialbd.ttf > > > Asked on SO, Tilman suggests I open a JIRA: > http://stackoverflow.com/questions/29111310/pdfbox-2-0-0-type1fonts-working-on-one-computer-not-another > I am trying to work out why I'm getting a bunch of > `java.lang.IllegalArgumentException: No glyph for U+0057 in font > Helvetica-Bold` errors on a Windows 2012 Server dev environment, but not on > my local Windows 7 environment. > I built the trunk from scratch, with: `mvn -DskipTests=true install` > on my machine (Win 7), collected the jars and made a very rudimentary test > package, by dumping all the jars into a subfolder libs/ and copying the > `org/apache/pdfbox/examples `class files to the same directory, to see if the > HelloWorld program works. > The [HelloWorld program][1] creates a file, called test.pdf with the message > "WHY" as requested, but when I run it on a new machine, I get the following: > > > C:\EAP-6.3.0\PDFBOXTESTING>java -cp ".;libs/*" > org.apache.pdfbox.examples.pdmodel.HelloWorld test.pdf WHY > Exception in thread "main" java.lang.IllegalArgumentException: No > glyph for U+0057 in font Helvetica-Bold > at > org.apache.pdfbox.pdmodel.font.PDType1Font.encode(PDType1Font.java:303) > at > org.apache.pdfbox.pdmodel.font.PDFont.encode(PDFont.java:268) > at > org.apache.pdfbox.pdmodel.PDPageContentStream.showText(PDPageContentStream.java:316) > at > org.apache.pdfbox.examples.pdmodel.HelloWorld.main(HelloWorld.java:59) > I installed Adobe Reader XI on that computer, in case it needed the fonts > from Adobe, installed on the system, or who knows. > It's not finding `U+0057`, which is a W, and in my testing, it wasn't finding > a bunch of stuff. It basically didn't find anything. so something is > fundamentally wrong, maybe the operating system has provided a bad font? > [1]: > https://github.com/apache/pdfbox/blob/trunk/examples/src/main/java/org/apache/pdfbox/examples/pdmodel/HelloWorld.java -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org