Am 05.06.2017 um 19:57 schrieb Chuck Davis:
My program has the following definitions:

     private PDFont font;
     font = PDType1Font.COURIER;
     stream.setFont(font, fontSize);

When I run the program (it was working fine last time I ran it) it is
throwing the following:

Caused by: java.lang.IllegalArgumentException: U+008F ('.notdef') is not
available in this font Courier encoding: WinAnsiEncoding
     at
org.apache.pdfbox.pdmodel.font.PDType1Font.encode(PDType1Font.java:425)
     at org.apache.pdfbox.pdmodel.font.PDFont.encode(PDFont.java:323)
     at
org.apache.pdfbox.pdmodel.PDPageContentStream.showText(PDPageContentStream.java:414)

I am running openSUSE Tumbleweed.  I am wondering if openSUSE has messed up
fonts since this worked in the recent past??

8F should be a bullet ("In WinAnsiEncoding, all unused codes greater than 40 map to the bullet character. However, only code 225 shall be specifically assigned to the bullet character; other codes are subject to future reassignment."). Maybe the courier font on your system doesn't have it?

Tilman



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to