You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Marc Kaufman <ma...@adobe.com> on 2016/07/12 20:04:43 UTC
NoSuchMethod - CFFCIDFont.getProperty
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
RE: NoSuchMethod - CFFCIDFont.getProperty
Posted by Marc Kaufman <ma...@adobe.com>.
That fixed it. Thanks.
From: Simon Steiner [mailto:simonsteiner1984@gmail.com]
Sent: Tuesday, July 12, 2016 1:49 PM
To: fop-users@xmlgraphics.apache.org
Subject: RE: NoSuchMethod - CFFCIDFont.getProperty
Hi,
You should use fontbox 1.8 with fop 2.1
http://svn.apache.org/viewvc/xmlgraphics/fop/branches/fop-2_1/lib/
Thanks
From: Marc Kaufman [mailto:marckauf@adobe.com]
Sent: 12 July 2016 21:26
To: fop-users@xmlgraphics.apache.org<ma...@xmlgraphics.apache.org>
Subject: RE: NoSuchMethod - CFFCIDFont.getProperty
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:glenn@skynav.com]
Sent: Tuesday, July 12, 2016 1:18 PM
To: FOP Users <fo...@xmlgraphics.apache.org>>
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 <ma...@adobe.com>> 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
RE: NoSuchMethod - CFFCIDFont.getProperty
Posted by Simon Steiner <si...@gmail.com>.
Hi,
You should use fontbox 1.8 with fop 2.1
http://svn.apache.org/viewvc/xmlgraphics/fop/branches/fop-2_1/lib/
Thanks
From: Marc Kaufman [mailto:marckauf@adobe.com]
Sent: 12 July 2016 21:26
To: fop-users@xmlgraphics.apache.org
Subject: RE: NoSuchMethod - CFFCIDFont.getProperty
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:glenn@skynav.com]
Sent: Tuesday, July 12, 2016 1:18 PM
To: FOP Users <fop-users@xmlgraphics.apache.org <ma...@xmlgraphics.apache.org> >
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 <marckauf@adobe.com <ma...@adobe.com> > 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
RE: NoSuchMethod - CFFCIDFont.getProperty
Posted by Marc Kaufman <ma...@adobe.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:glenn@skynav.com]
Sent: Tuesday, July 12, 2016 1:18 PM
To: FOP Users <fo...@xmlgraphics.apache.org>
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 <ma...@adobe.com>> 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
Re: NoSuchMethod - CFFCIDFont.getProperty
Posted by Glenn Adams <gl...@skynav.com>.
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 <ma...@adobe.com> 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
>
>
>
RE: NoSuchMethod - CFFCIDFont.getProperty
Posted by Simon Steiner <si...@gmail.com>.
Hi,
What fop version, maybe you have wrong version of fontbox jar?
Thanks
From: Marc Kaufman [mailto:marckauf@adobe.com]
Sent: 12 July 2016 21:05
To: fop-users@xmlgraphics.apache.org
Subject: NoSuchMethod - CFFCIDFont.getProperty
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