RE: NoSuchMethod - CFFCIDFont.getProperty

Marc Kaufman <[email protected]>
Newsgroups gmane.text.xml.fop.user
Message-ID <BLUPR0201MB144326DFA2478B28042B15DCDC300@BLUPR0201MB1443.namprd02.prod.outlook.com>
fop-2.1.jar, fontbox-2.0.2.jar
No other version of fontbox around (I was getting class not found until I added fontbox)

From: Glenn Adams [mailto:[email protected]]
Sent: Tuesday, July 12, 2016 1:18 PM
To: FOP Users <[email protected]>
Subject: Re: NoSuchMethod - CFFCIDFont.getProperty

You should check to make sure your VM is loading fontbox-2.0.0.jar from the fop/lib directory.

On Tue, Jul 12, 2016 at 2:04 PM, Marc Kaufman <[email protected]<mailto:[email protected]>> wrote:
I’m trying to use an Adobe CFF font (KozGoPr6N-Regular.otf). During the font loading I get to:
OTFFile.readName() line 34: Object familyName = fileFont.getProperty(“FamilyName”);
But fileFont is a org.apache.fontbox.cff.CFFCIDFont, and there is no such method “getProperty”.

Stack:
OTFFile.readName() line: 134
OTFFile(OpenFont).readFont(FontFileReader, String, String) line: 740
OFFontLoader.read(String) line: 109
OFFontLoader.read() line: 93
OFFontLoader(FontLoader).getFont() line: 124
FontLoader.loadFont(FontUris, String, boolean, EmbeddingMode, EncodingMode, boolean, boolean, InternalResourceResolver) line: 108
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.