You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@pdfbox.apache.org by Marc Kaufman <ma...@adobe.com> on 2016/07/12 19:53:53 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 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>.
Turns out fop 2.1 needs fontbox 1.8
Marc
-----Original Message-----
From: Marc Kaufman [mailto:marckauf@adobe.com]
Sent: Tuesday, July 12, 2016 1:28 PM
To: users@pdfbox.apache.org
Subject: RE: NoSuchMethod - CFFCIDFont.getProperty
I've opened a conversation on the fop mailing list. I think it's partially that fop doesn't do a very good job with .otf fonts, yet.
Marc
-----Original Message-----
From: Tilman Hausherr [mailto:THausherr@t-online.de]
Sent: Tuesday, July 12, 2016 1:25 PM
To: users@pdfbox.apache.org
Subject: Re: NoSuchMethod - CFFCIDFont.getProperty
Am 12.07.2016 um 22:00 schrieb Marc Kaufman:
> Ah. Good point. I missed the package header. Thanks But the CFFCIDFont
> class is in org.apache.fontbox.cff.
> Some miscommunication somewhere...
Still don't know what we could do. If a class external to PDFBox calls a method in PDFBox that doesn't exist, what should we do?
Tilman
>
> Marc
>
> -----Original Message-----
> From: Tilman Hausherr [mailto:THausherr@t-online.de]
> Sent: Tuesday, July 12, 2016 12:57 PM
> To: users@pdfbox.apache.org
> Subject: Re: NoSuchMethod - CFFCIDFont.getProperty
>
> I suspect you wanted to post on a FOP mailing list. PDFBox doesn't have a file OTFFile.java.
>
> Tilman
>
> Am 12.07.2016 um 21:53 schrieb Marc Kaufman:
>> 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 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
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
> For additional commands, e-mail: users-help@pdfbox.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
> For additional commands, e-mail: users-help@pdfbox.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: users-help@pdfbox.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: users-help@pdfbox.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: users-help@pdfbox.apache.org
RE: NoSuchMethod - CFFCIDFont.getProperty
Posted by Marc Kaufman <ma...@adobe.com>.
I've opened a conversation on the fop mailing list. I think it's partially that fop doesn't do a very good job with .otf fonts, yet.
Marc
-----Original Message-----
From: Tilman Hausherr [mailto:THausherr@t-online.de]
Sent: Tuesday, July 12, 2016 1:25 PM
To: users@pdfbox.apache.org
Subject: Re: NoSuchMethod - CFFCIDFont.getProperty
Am 12.07.2016 um 22:00 schrieb Marc Kaufman:
> Ah. Good point. I missed the package header. Thanks But the CFFCIDFont
> class is in org.apache.fontbox.cff.
> Some miscommunication somewhere...
Still don't know what we could do. If a class external to PDFBox calls a method in PDFBox that doesn't exist, what should we do?
Tilman
>
> Marc
>
> -----Original Message-----
> From: Tilman Hausherr [mailto:THausherr@t-online.de]
> Sent: Tuesday, July 12, 2016 12:57 PM
> To: users@pdfbox.apache.org
> Subject: Re: NoSuchMethod - CFFCIDFont.getProperty
>
> I suspect you wanted to post on a FOP mailing list. PDFBox doesn't have a file OTFFile.java.
>
> Tilman
>
> Am 12.07.2016 um 21:53 schrieb Marc Kaufman:
>> 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 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
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
> For additional commands, e-mail: users-help@pdfbox.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
> For additional commands, e-mail: users-help@pdfbox.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: users-help@pdfbox.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: users-help@pdfbox.apache.org
Re: NoSuchMethod - CFFCIDFont.getProperty
Posted by Tilman Hausherr <TH...@t-online.de>.
Am 12.07.2016 um 22:00 schrieb Marc Kaufman:
> Ah. Good point. I missed the package header. Thanks
> But the CFFCIDFont class is in org.apache.fontbox.cff.
> Some miscommunication somewhere...
Still don't know what we could do. If a class external to PDFBox calls a
method in PDFBox that doesn't exist, what should we do?
Tilman
>
> Marc
>
> -----Original Message-----
> From: Tilman Hausherr [mailto:THausherr@t-online.de]
> Sent: Tuesday, July 12, 2016 12:57 PM
> To: users@pdfbox.apache.org
> Subject: Re: NoSuchMethod - CFFCIDFont.getProperty
>
> I suspect you wanted to post on a FOP mailing list. PDFBox doesn't have a file OTFFile.java.
>
> Tilman
>
> Am 12.07.2016 um 21:53 schrieb Marc Kaufman:
>> 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 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
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
> For additional commands, e-mail: users-help@pdfbox.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
> For additional commands, e-mail: users-help@pdfbox.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: users-help@pdfbox.apache.org
RE: NoSuchMethod - CFFCIDFont.getProperty
Posted by Marc Kaufman <ma...@adobe.com>.
Ah. Good point. I missed the package header. Thanks
But the CFFCIDFont class is in org.apache.fontbox.cff.
Some miscommunication somewhere...
Marc
-----Original Message-----
From: Tilman Hausherr [mailto:THausherr@t-online.de]
Sent: Tuesday, July 12, 2016 12:57 PM
To: users@pdfbox.apache.org
Subject: Re: NoSuchMethod - CFFCIDFont.getProperty
I suspect you wanted to post on a FOP mailing list. PDFBox doesn't have a file OTFFile.java.
Tilman
Am 12.07.2016 um 21:53 schrieb Marc Kaufman:
> 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 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
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: users-help@pdfbox.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: users-help@pdfbox.apache.org
Re: NoSuchMethod - CFFCIDFont.getProperty
Posted by Tilman Hausherr <TH...@t-online.de>.
I suspect you wanted to post on a FOP mailing list. PDFBox doesn't have
a file OTFFile.java.
Tilman
Am 12.07.2016 um 21:53 schrieb Marc Kaufman:
> 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 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
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: users-help@pdfbox.apache.org