Discussion:
[jira] [Created] (FOP-2704) Using the Google fonts Roboto font (updated 2017), java.lang.UnsupportedOperationException: coverage set class table not yet supported
(too old to reply)
Dan Caprioara (JIRA)
2017-05-08 11:55:04 UTC
Permalink
Dan Caprioara created FOP-2704:
----------------------------------

Summary: Using the Google fonts Roboto font (updated 2017), java.lang.UnsupportedOperationException: coverage set class table not yet supported
Key: FOP-2704
URL: https://issues.apache.org/jira/browse/FOP-2704
Project: FOP
Issue Type: Bug
Components: font/opentype
Affects Versions: 2.2, 2.1
Reporter: Dan Caprioara
Attachments: Roboto-Regular.ttf, Roboto-Thin.ttf

Steps:
# Download the Roboto TTF font from Google Fonts.
# Create a configuration file with a triplet pointing to the "roboto-regular" or "roboto-thin" TTF file.
You get:
{code}
java.lang.UnsupportedOperationException: coverage set class table not yet supported
at org.apache.fop.complexscripts.fonts.GlyphClassTable$CoverageSetClassTable.<init>(GlyphClassTable.java:262)
at org.apache.fop.complexscripts.fonts.GlyphClassTable.createClassTable(GlyphClassTable.java:88)
at org.apache.fop.complexscripts.fonts.OTFAdvancedTypographicTableReader_Original.readGDEFMarkGlyphsTableFormat1(OTFAdvancedTypographicTableReader_Original.java:3344)
at org.apache.fop.complexscripts.fonts.OTFAdvancedTypographicTableReader.readGDEFMarkGlyphsTableFormat1(OTFAdvancedTypographicTableReader.java:69)
at org.apache.fop.complexscripts.fonts.OTFAdvancedTypographicTableReader_Original.readGDEFMarkGlyphsTable(OTFAdvancedTypographicTableReader_Original.java:3357)
at org.apache.fop.complexscripts.fonts.OTFAdvancedTypographicTableReader_Original.readGDEF(OTFAdvancedTypographicTableReader_Original.java:3427)
at org.apache.fop.complexscripts.fonts.OTFAdvancedTypographicTableReader_Original.readAll(OTFAdvancedTypographicTableReader_Original.java:80)
at org.apache.fop.fonts.truetype.OpenFont.handleCharacterSpacing(OpenFont.java:786)
at org.apache.fop.fonts.truetype.OpenFont.readFont(OpenFont.java:755)
at org.apache.fop.fonts.truetype.OFFontLoader.read(OFFontLoader.java:109)
at org.apache.fop.fonts.truetype.OFFontLoader.read(OFFontLoader.java:93)
{code}

There are two changes that should be done to the {{OTFAdvancedTypographicTableReader}}.
# The method {{readGDEFMarkGlyphsTableFormat1}} should catch this exception
# The method {{constructLookupsLanguage}} should check if the {{languages}} parameter is null.

After these changes, the PDF is produced and it looks good. I am not sure what are the side effects on the font that is embedded into the PDF..



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
simon steiner (JIRA)
2018-01-09 15:26:00 UTC
Permalink
[ https://issues.apache.org/jira/browse/FOP-2704?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16318591#comment-16318591 ]

simon steiner commented on FOP-2704:
------------------------------------

Workaround is to add <complex-scripts disabled="true" /> to fop.xconf
Post by Dan Caprioara (JIRA)
Using the Google fonts Roboto font (updated 2017), java.lang.UnsupportedOperationException: coverage set class table not yet supported
---------------------------------------------------------------------------------------------------------------------------------------
Key: FOP-2704
URL: https://issues.apache.org/jira/browse/FOP-2704
Project: FOP
Issue Type: Bug
Components: font/opentype
Affects Versions: 2.1, 2.2
Reporter: Dan Caprioara
Attachments: Roboto-Regular.ttf, Roboto-Thin.ttf
# Download the Roboto TTF font from Google Fonts.
# Create a configuration file with a triplet pointing to the "roboto-regular" or "roboto-thin" TTF file.
{code}
java.lang.UnsupportedOperationException: coverage set class table not yet supported
at org.apache.fop.complexscripts.fonts.GlyphClassTable$CoverageSetClassTable.<init>(GlyphClassTable.java:262)
at org.apache.fop.complexscripts.fonts.GlyphClassTable.createClassTable(GlyphClassTable.java:88)
at org.apache.fop.complexscripts.fonts.OTFAdvancedTypographicTableReader_Original.readGDEFMarkGlyphsTableFormat1(OTFAdvancedTypographicTableReader_Original.java:3344)
at org.apache.fop.complexscripts.fonts.OTFAdvancedTypographicTableReader.readGDEFMarkGlyphsTableFormat1(OTFAdvancedTypographicTableReader.java:69)
at org.apache.fop.complexscripts.fonts.OTFAdvancedTypographicTableReader_Original.readGDEFMarkGlyphsTable(OTFAdvancedTypographicTableReader_Original.java:3357)
at org.apache.fop.complexscripts.fonts.OTFAdvancedTypographicTableReader_Original.readGDEF(OTFAdvancedTypographicTableReader_Original.java:3427)
at org.apache.fop.complexscripts.fonts.OTFAdvancedTypographicTableReader_Original.readAll(OTFAdvancedTypographicTableReader_Original.java:80)
at org.apache.fop.fonts.truetype.OpenFont.handleCharacterSpacing(OpenFont.java:786)
at org.apache.fop.fonts.truetype.OpenFont.readFont(OpenFont.java:755)
at org.apache.fop.fonts.truetype.OFFontLoader.read(OFFontLoader.java:109)
at org.apache.fop.fonts.truetype.OFFontLoader.read(OFFontLoader.java:93)
{code}
There are two changes that should be done to the {{OTFAdvancedTypographicTableReader}}.
# The method {{readGDEFMarkGlyphsTableFormat1}} should catch this exception
# The method {{constructLookupsLanguage}} should check if the {{languages}} parameter is null.
After these changes, the PDF is produced and it looks good. I am not sure what are the side effects on the font that is embedded into the PDF..
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)
simon steiner (JIRA)
2018-01-09 15:27:00 UTC
Permalink
[ https://issues.apache.org/jira/browse/FOP-2704?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

simon steiner updated FOP-2704:
-------------------------------
Summary: Using the Google fonts Roboto font (updated 2017), UnsupportedOperationException: coverage set class table not yet supported (was: Using the Google fonts Roboto font (updated 2017), java.lang.UnsupportedOperationException: coverage set class table not yet supported)
Using the Google fonts Roboto font (updated 2017), UnsupportedOperationException: coverage set class table not yet supported
-----------------------------------------------------------------------------------------------------------------------------
Key: FOP-2704
URL: https://issues.apache.org/jira/browse/FOP-2704
Project: FOP
Issue Type: Bug
Components: font/opentype
Affects Versions: 2.1, 2.2
Reporter: Dan Caprioara
Attachments: Roboto-Regular.ttf, Roboto-Thin.ttf
# Download the Roboto TTF font from Google Fonts.
# Create a configuration file with a triplet pointing to the "roboto-regular" or "roboto-thin" TTF file.
{code}
java.lang.UnsupportedOperationException: coverage set class table not yet supported
at org.apache.fop.complexscripts.fonts.GlyphClassTable$CoverageSetClassTable.<init>(GlyphClassTable.java:262)
at org.apache.fop.complexscripts.fonts.GlyphClassTable.createClassTable(GlyphClassTable.java:88)
at org.apache.fop.complexscripts.fonts.OTFAdvancedTypographicTableReader_Original.readGDEFMarkGlyphsTableFormat1(OTFAdvancedTypographicTableReader_Original.java:3344)
at org.apache.fop.complexscripts.fonts.OTFAdvancedTypographicTableReader.readGDEFMarkGlyphsTableFormat1(OTFAdvancedTypographicTableReader.java:69)
at org.apache.fop.complexscripts.fonts.OTFAdvancedTypographicTableReader_Original.readGDEFMarkGlyphsTable(OTFAdvancedTypographicTableReader_Original.java:3357)
at org.apache.fop.complexscripts.fonts.OTFAdvancedTypographicTableReader_Original.readGDEF(OTFAdvancedTypographicTableReader_Original.java:3427)
at org.apache.fop.complexscripts.fonts.OTFAdvancedTypographicTableReader_Original.readAll(OTFAdvancedTypographicTableReader_Original.java:80)
at org.apache.fop.fonts.truetype.OpenFont.handleCharacterSpacing(OpenFont.java:786)
at org.apache.fop.fonts.truetype.OpenFont.readFont(OpenFont.java:755)
at org.apache.fop.fonts.truetype.OFFontLoader.read(OFFontLoader.java:109)
at org.apache.fop.fonts.truetype.OFFontLoader.read(OFFontLoader.java:93)
{code}
There are two changes that should be done to the {{OTFAdvancedTypographicTableReader}}.
# The method {{readGDEFMarkGlyphsTableFormat1}} should catch this exception
# The method {{constructLookupsLanguage}} should check if the {{languages}} parameter is null.
After these changes, the PDF is produced and it looks good. I am not sure what are the side effects on the font that is embedded into the PDF..
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)
simon steiner (JIRA)
2018-01-09 15:27:00 UTC
Permalink
[ https://issues.apache.org/jira/browse/FOP-2704?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

simon steiner updated FOP-2704:
-------------------------------
Summary: Google fonts Roboto font (updated 2017) UnsupportedOperationException: coverage set class table not yet supported (was: Using the Google fonts Roboto font (updated 2017), UnsupportedOperationException: coverage set class table not yet supported)
Google fonts Roboto font (updated 2017) UnsupportedOperationException: coverage set class table not yet supported
-----------------------------------------------------------------------------------------------------------------
Key: FOP-2704
URL: https://issues.apache.org/jira/browse/FOP-2704
Project: FOP
Issue Type: Bug
Components: font/opentype
Affects Versions: 2.1, 2.2
Reporter: Dan Caprioara
Attachments: Roboto-Regular.ttf, Roboto-Thin.ttf
# Download the Roboto TTF font from Google Fonts.
# Create a configuration file with a triplet pointing to the "roboto-regular" or "roboto-thin" TTF file.
{code}
java.lang.UnsupportedOperationException: coverage set class table not yet supported
at org.apache.fop.complexscripts.fonts.GlyphClassTable$CoverageSetClassTable.<init>(GlyphClassTable.java:262)
at org.apache.fop.complexscripts.fonts.GlyphClassTable.createClassTable(GlyphClassTable.java:88)
at org.apache.fop.complexscripts.fonts.OTFAdvancedTypographicTableReader_Original.readGDEFMarkGlyphsTableFormat1(OTFAdvancedTypographicTableReader_Original.java:3344)
at org.apache.fop.complexscripts.fonts.OTFAdvancedTypographicTableReader.readGDEFMarkGlyphsTableFormat1(OTFAdvancedTypographicTableReader.java:69)
at org.apache.fop.complexscripts.fonts.OTFAdvancedTypographicTableReader_Original.readGDEFMarkGlyphsTable(OTFAdvancedTypographicTableReader_Original.java:3357)
at org.apache.fop.complexscripts.fonts.OTFAdvancedTypographicTableReader_Original.readGDEF(OTFAdvancedTypographicTableReader_Original.java:3427)
at org.apache.fop.complexscripts.fonts.OTFAdvancedTypographicTableReader_Original.readAll(OTFAdvancedTypographicTableReader_Original.java:80)
at org.apache.fop.fonts.truetype.OpenFont.handleCharacterSpacing(OpenFont.java:786)
at org.apache.fop.fonts.truetype.OpenFont.readFont(OpenFont.java:755)
at org.apache.fop.fonts.truetype.OFFontLoader.read(OFFontLoader.java:109)
at org.apache.fop.fonts.truetype.OFFontLoader.read(OFFontLoader.java:93)
{code}
There are two changes that should be done to the {{OTFAdvancedTypographicTableReader}}.
# The method {{readGDEFMarkGlyphsTableFormat1}} should catch this exception
# The method {{constructLookupsLanguage}} should check if the {{languages}} parameter is null.
After these changes, the PDF is produced and it looks good. I am not sure what are the side effects on the font that is embedded into the PDF..
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)
Meindert-Jan Kroese (JIRA)
2018-05-30 11:48:00 UTC
Permalink
[ https://issues.apache.org/jira/browse/FOP-2704?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16495062#comment-16495062 ]

Meindert-Jan Kroese commented on FOP-2704:
------------------------------------------

Above workaround only seems to work after recompiling.
Post by simon steiner (JIRA)
Google fonts Roboto font (updated 2017) UnsupportedOperationException: coverage set class table not yet supported
-----------------------------------------------------------------------------------------------------------------
Key: FOP-2704
URL: https://issues.apache.org/jira/browse/FOP-2704
Project: FOP
Issue Type: Bug
Components: font/opentype
Affects Versions: 2.1, 2.2
Reporter: Dan Caprioara
Priority: Major
Attachments: Roboto-Regular.ttf, Roboto-Thin.ttf
# Download the Roboto TTF font from Google Fonts.
# Create a configuration file with a triplet pointing to the "roboto-regular" or "roboto-thin" TTF file.
{code}
java.lang.UnsupportedOperationException: coverage set class table not yet supported
at org.apache.fop.complexscripts.fonts.GlyphClassTable$CoverageSetClassTable.<init>(GlyphClassTable.java:262)
at org.apache.fop.complexscripts.fonts.GlyphClassTable.createClassTable(GlyphClassTable.java:88)
at org.apache.fop.complexscripts.fonts.OTFAdvancedTypographicTableReader_Original.readGDEFMarkGlyphsTableFormat1(OTFAdvancedTypographicTableReader_Original.java:3344)
at org.apache.fop.complexscripts.fonts.OTFAdvancedTypographicTableReader.readGDEFMarkGlyphsTableFormat1(OTFAdvancedTypographicTableReader.java:69)
at org.apache.fop.complexscripts.fonts.OTFAdvancedTypographicTableReader_Original.readGDEFMarkGlyphsTable(OTFAdvancedTypographicTableReader_Original.java:3357)
at org.apache.fop.complexscripts.fonts.OTFAdvancedTypographicTableReader_Original.readGDEF(OTFAdvancedTypographicTableReader_Original.java:3427)
at org.apache.fop.complexscripts.fonts.OTFAdvancedTypographicTableReader_Original.readAll(OTFAdvancedTypographicTableReader_Original.java:80)
at org.apache.fop.fonts.truetype.OpenFont.handleCharacterSpacing(OpenFont.java:786)
at org.apache.fop.fonts.truetype.OpenFont.readFont(OpenFont.java:755)
at org.apache.fop.fonts.truetype.OFFontLoader.read(OFFontLoader.java:109)
at org.apache.fop.fonts.truetype.OFFontLoader.read(OFFontLoader.java:93)
{code}
There are two changes that should be done to the {{OTFAdvancedTypographicTableReader}}.
# The method {{readGDEFMarkGlyphsTableFormat1}} should catch this exception
# The method {{constructLookupsLanguage}} should check if the {{languages}} parameter is null.
After these changes, the PDF is produced and it looks good. I am not sure what are the side effects on the font that is embedded into the PDF..
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
Jeroen van der Grift (JIRA)
2018-06-14 07:45:00 UTC
Permalink
[ https://issues.apache.org/jira/browse/FOP-2704?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16512100#comment-16512100 ]

Jeroen van der Grift commented on FOP-2704:
-------------------------------------------

I'm facing the same exception when I try to use Google Noto font (NotoSans-Light.ttf).

Adding <complex-scripts disabled="true" /> doesn't seem to work.

 
Post by simon steiner (JIRA)
Google fonts Roboto font (updated 2017) UnsupportedOperationException: coverage set class table not yet supported
-----------------------------------------------------------------------------------------------------------------
Key: FOP-2704
URL: https://issues.apache.org/jira/browse/FOP-2704
Project: FOP
Issue Type: Bug
Components: font/opentype
Affects Versions: 2.1, 2.2
Reporter: Dan Caprioara
Priority: Major
Attachments: Roboto-Regular.ttf, Roboto-Thin.ttf
# Download the Roboto TTF font from Google Fonts.
# Create a configuration file with a triplet pointing to the "roboto-regular" or "roboto-thin" TTF file.
{code}
java.lang.UnsupportedOperationException: coverage set class table not yet supported
at org.apache.fop.complexscripts.fonts.GlyphClassTable$CoverageSetClassTable.<init>(GlyphClassTable.java:262)
at org.apache.fop.complexscripts.fonts.GlyphClassTable.createClassTable(GlyphClassTable.java:88)
at org.apache.fop.complexscripts.fonts.OTFAdvancedTypographicTableReader_Original.readGDEFMarkGlyphsTableFormat1(OTFAdvancedTypographicTableReader_Original.java:3344)
at org.apache.fop.complexscripts.fonts.OTFAdvancedTypographicTableReader.readGDEFMarkGlyphsTableFormat1(OTFAdvancedTypographicTableReader.java:69)
at org.apache.fop.complexscripts.fonts.OTFAdvancedTypographicTableReader_Original.readGDEFMarkGlyphsTable(OTFAdvancedTypographicTableReader_Original.java:3357)
at org.apache.fop.complexscripts.fonts.OTFAdvancedTypographicTableReader_Original.readGDEF(OTFAdvancedTypographicTableReader_Original.java:3427)
at org.apache.fop.complexscripts.fonts.OTFAdvancedTypographicTableReader_Original.readAll(OTFAdvancedTypographicTableReader_Original.java:80)
at org.apache.fop.fonts.truetype.OpenFont.handleCharacterSpacing(OpenFont.java:786)
at org.apache.fop.fonts.truetype.OpenFont.readFont(OpenFont.java:755)
at org.apache.fop.fonts.truetype.OFFontLoader.read(OFFontLoader.java:109)
at org.apache.fop.fonts.truetype.OFFontLoader.read(OFFontLoader.java:93)
{code}
There are two changes that should be done to the {{OTFAdvancedTypographicTableReader}}.
# The method {{readGDEFMarkGlyphsTableFormat1}} should catch this exception
# The method {{constructLookupsLanguage}} should check if the {{languages}} parameter is null.
After these changes, the PDF is produced and it looks good. I am not sure what are the side effects on the font that is embedded into the PDF..
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
Jeroen van der Grift (JIRA)
2018-06-14 07:47:00 UTC
Permalink
[ https://issues.apache.org/jira/browse/FOP-2704?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16512100#comment-16512100 ]

Jeroen van der Grift edited comment on FOP-2704 at 6/14/18 7:46 AM:
--------------------------------------------------------------------

I'm facing the same exception when I try to use Google Noto font (NotoSans-Light.ttf).

Adding <complex-scripts disabled="true" /> doesn't seem to work.

I'm using fop 2.3

 


was (Author: jvdgrift):
I'm facing the same exception when I try to use Google Noto font (NotoSans-Light.ttf).

Adding <complex-scripts disabled="true" /> doesn't seem to work.

 
Post by simon steiner (JIRA)
Google fonts Roboto font (updated 2017) UnsupportedOperationException: coverage set class table not yet supported
-----------------------------------------------------------------------------------------------------------------
Key: FOP-2704
URL: https://issues.apache.org/jira/browse/FOP-2704
Project: FOP
Issue Type: Bug
Components: font/opentype
Affects Versions: 2.1, 2.2
Reporter: Dan Caprioara
Priority: Major
Attachments: Roboto-Regular.ttf, Roboto-Thin.ttf
# Download the Roboto TTF font from Google Fonts.
# Create a configuration file with a triplet pointing to the "roboto-regular" or "roboto-thin" TTF file.
{code}
java.lang.UnsupportedOperationException: coverage set class table not yet supported
at org.apache.fop.complexscripts.fonts.GlyphClassTable$CoverageSetClassTable.<init>(GlyphClassTable.java:262)
at org.apache.fop.complexscripts.fonts.GlyphClassTable.createClassTable(GlyphClassTable.java:88)
at org.apache.fop.complexscripts.fonts.OTFAdvancedTypographicTableReader_Original.readGDEFMarkGlyphsTableFormat1(OTFAdvancedTypographicTableReader_Original.java:3344)
at org.apache.fop.complexscripts.fonts.OTFAdvancedTypographicTableReader.readGDEFMarkGlyphsTableFormat1(OTFAdvancedTypographicTableReader.java:69)
at org.apache.fop.complexscripts.fonts.OTFAdvancedTypographicTableReader_Original.readGDEFMarkGlyphsTable(OTFAdvancedTypographicTableReader_Original.java:3357)
at org.apache.fop.complexscripts.fonts.OTFAdvancedTypographicTableReader_Original.readGDEF(OTFAdvancedTypographicTableReader_Original.java:3427)
at org.apache.fop.complexscripts.fonts.OTFAdvancedTypographicTableReader_Original.readAll(OTFAdvancedTypographicTableReader_Original.java:80)
at org.apache.fop.fonts.truetype.OpenFont.handleCharacterSpacing(OpenFont.java:786)
at org.apache.fop.fonts.truetype.OpenFont.readFont(OpenFont.java:755)
at org.apache.fop.fonts.truetype.OFFontLoader.read(OFFontLoader.java:109)
at org.apache.fop.fonts.truetype.OFFontLoader.read(OFFontLoader.java:93)
{code}
There are two changes that should be done to the {{OTFAdvancedTypographicTableReader}}.
# The method {{readGDEFMarkGlyphsTableFormat1}} should catch this exception
# The method {{constructLookupsLanguage}} should check if the {{languages}} parameter is null.
After these changes, the PDF is produced and it looks good. I am not sure what are the side effects on the font that is embedded into the PDF..
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
Neil Smeby (JIRA)
2018-06-14 19:14:00 UTC
Permalink
[ https://issues.apache.org/jira/browse/FOP-2704?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16512895#comment-16512895 ]

Neil Smeby commented on FOP-2704:
---------------------------------

[https://xmlgraphics.apache.org/fop/2.0/complexscripts.html] explains some other methods. Noto fonts work for me (in 2.1) when -nosc is a passed parameter to the command line. I would suspect (according to the document) the setComplexScriptFeaturesEnabled method would work at runtime as well.
Post by simon steiner (JIRA)
Google fonts Roboto font (updated 2017) UnsupportedOperationException: coverage set class table not yet supported
-----------------------------------------------------------------------------------------------------------------
Key: FOP-2704
URL: https://issues.apache.org/jira/browse/FOP-2704
Project: FOP
Issue Type: Bug
Components: font/opentype
Affects Versions: 2.1, 2.2
Reporter: Dan Caprioara
Priority: Major
Attachments: Roboto-Regular.ttf, Roboto-Thin.ttf
# Download the Roboto TTF font from Google Fonts.
# Create a configuration file with a triplet pointing to the "roboto-regular" or "roboto-thin" TTF file.
{code}
java.lang.UnsupportedOperationException: coverage set class table not yet supported
at org.apache.fop.complexscripts.fonts.GlyphClassTable$CoverageSetClassTable.<init>(GlyphClassTable.java:262)
at org.apache.fop.complexscripts.fonts.GlyphClassTable.createClassTable(GlyphClassTable.java:88)
at org.apache.fop.complexscripts.fonts.OTFAdvancedTypographicTableReader_Original.readGDEFMarkGlyphsTableFormat1(OTFAdvancedTypographicTableReader_Original.java:3344)
at org.apache.fop.complexscripts.fonts.OTFAdvancedTypographicTableReader.readGDEFMarkGlyphsTableFormat1(OTFAdvancedTypographicTableReader.java:69)
at org.apache.fop.complexscripts.fonts.OTFAdvancedTypographicTableReader_Original.readGDEFMarkGlyphsTable(OTFAdvancedTypographicTableReader_Original.java:3357)
at org.apache.fop.complexscripts.fonts.OTFAdvancedTypographicTableReader_Original.readGDEF(OTFAdvancedTypographicTableReader_Original.java:3427)
at org.apache.fop.complexscripts.fonts.OTFAdvancedTypographicTableReader_Original.readAll(OTFAdvancedTypographicTableReader_Original.java:80)
at org.apache.fop.fonts.truetype.OpenFont.handleCharacterSpacing(OpenFont.java:786)
at org.apache.fop.fonts.truetype.OpenFont.readFont(OpenFont.java:755)
at org.apache.fop.fonts.truetype.OFFontLoader.read(OFFontLoader.java:109)
at org.apache.fop.fonts.truetype.OFFontLoader.read(OFFontLoader.java:93)
{code}
There are two changes that should be done to the {{OTFAdvancedTypographicTableReader}}.
# The method {{readGDEFMarkGlyphsTableFormat1}} should catch this exception
# The method {{constructLookupsLanguage}} should check if the {{languages}} parameter is null.
After these changes, the PDF is produced and it looks good. I am not sure what are the side effects on the font that is embedded into the PDF..
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
Jeroen van der Grift (JIRA)
2018-06-21 08:31:00 UTC
Permalink
[ https://issues.apache.org/jira/browse/FOP-2704?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16519069#comment-16519069 ]

Jeroen van der Grift commented on FOP-2704:
-------------------------------------------

Thanks Neil, that indeed seems to work! Thanks
Post by simon steiner (JIRA)
Google fonts Roboto font (updated 2017) UnsupportedOperationException: coverage set class table not yet supported
-----------------------------------------------------------------------------------------------------------------
Key: FOP-2704
URL: https://issues.apache.org/jira/browse/FOP-2704
Project: FOP
Issue Type: Bug
Components: font/opentype
Affects Versions: 2.1, 2.2
Reporter: Dan Caprioara
Priority: Major
Attachments: Roboto-Regular.ttf, Roboto-Thin.ttf
# Download the Roboto TTF font from Google Fonts.
# Create a configuration file with a triplet pointing to the "roboto-regular" or "roboto-thin" TTF file.
{code}
java.lang.UnsupportedOperationException: coverage set class table not yet supported
at org.apache.fop.complexscripts.fonts.GlyphClassTable$CoverageSetClassTable.<init>(GlyphClassTable.java:262)
at org.apache.fop.complexscripts.fonts.GlyphClassTable.createClassTable(GlyphClassTable.java:88)
at org.apache.fop.complexscripts.fonts.OTFAdvancedTypographicTableReader_Original.readGDEFMarkGlyphsTableFormat1(OTFAdvancedTypographicTableReader_Original.java:3344)
at org.apache.fop.complexscripts.fonts.OTFAdvancedTypographicTableReader.readGDEFMarkGlyphsTableFormat1(OTFAdvancedTypographicTableReader.java:69)
at org.apache.fop.complexscripts.fonts.OTFAdvancedTypographicTableReader_Original.readGDEFMarkGlyphsTable(OTFAdvancedTypographicTableReader_Original.java:3357)
at org.apache.fop.complexscripts.fonts.OTFAdvancedTypographicTableReader_Original.readGDEF(OTFAdvancedTypographicTableReader_Original.java:3427)
at org.apache.fop.complexscripts.fonts.OTFAdvancedTypographicTableReader_Original.readAll(OTFAdvancedTypographicTableReader_Original.java:80)
at org.apache.fop.fonts.truetype.OpenFont.handleCharacterSpacing(OpenFont.java:786)
at org.apache.fop.fonts.truetype.OpenFont.readFont(OpenFont.java:755)
at org.apache.fop.fonts.truetype.OFFontLoader.read(OFFontLoader.java:109)
at org.apache.fop.fonts.truetype.OFFontLoader.read(OFFontLoader.java:93)
{code}
There are two changes that should be done to the {{OTFAdvancedTypographicTableReader}}.
# The method {{readGDEFMarkGlyphsTableFormat1}} should catch this exception
# The method {{constructLookupsLanguage}} should check if the {{languages}} parameter is null.
After these changes, the PDF is produced and it looks good. I am not sure what are the side effects on the font that is embedded into the PDF..
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
Dan Caprioara (JIRA)
2018-09-17 12:33:00 UTC
Permalink
[ https://issues.apache.org/jira/browse/FOP-2704?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16617442#comment-16617442 ]

Dan Caprioara commented on FOP-2704:
------------------------------------

This is a workaround disables too many font features. What would mean to support the "coverage set class table" ?
Post by simon steiner (JIRA)
Google fonts Roboto font (updated 2017) UnsupportedOperationException: coverage set class table not yet supported
-----------------------------------------------------------------------------------------------------------------
Key: FOP-2704
URL: https://issues.apache.org/jira/browse/FOP-2704
Project: FOP
Issue Type: Bug
Components: font/opentype
Affects Versions: 2.1, 2.2
Reporter: Dan Caprioara
Priority: Major
Attachments: Roboto-Regular.ttf, Roboto-Thin.ttf
# Download the Roboto TTF font from Google Fonts.
# Create a configuration file with a triplet pointing to the "roboto-regular" or "roboto-thin" TTF file.
{code}
java.lang.UnsupportedOperationException: coverage set class table not yet supported
at org.apache.fop.complexscripts.fonts.GlyphClassTable$CoverageSetClassTable.<init>(GlyphClassTable.java:262)
at org.apache.fop.complexscripts.fonts.GlyphClassTable.createClassTable(GlyphClassTable.java:88)
at org.apache.fop.complexscripts.fonts.OTFAdvancedTypographicTableReader_Original.readGDEFMarkGlyphsTableFormat1(OTFAdvancedTypographicTableReader_Original.java:3344)
at org.apache.fop.complexscripts.fonts.OTFAdvancedTypographicTableReader.readGDEFMarkGlyphsTableFormat1(OTFAdvancedTypographicTableReader.java:69)
at org.apache.fop.complexscripts.fonts.OTFAdvancedTypographicTableReader_Original.readGDEFMarkGlyphsTable(OTFAdvancedTypographicTableReader_Original.java:3357)
at org.apache.fop.complexscripts.fonts.OTFAdvancedTypographicTableReader_Original.readGDEF(OTFAdvancedTypographicTableReader_Original.java:3427)
at org.apache.fop.complexscripts.fonts.OTFAdvancedTypographicTableReader_Original.readAll(OTFAdvancedTypographicTableReader_Original.java:80)
at org.apache.fop.fonts.truetype.OpenFont.handleCharacterSpacing(OpenFont.java:786)
at org.apache.fop.fonts.truetype.OpenFont.readFont(OpenFont.java:755)
at org.apache.fop.fonts.truetype.OFFontLoader.read(OFFontLoader.java:109)
at org.apache.fop.fonts.truetype.OFFontLoader.read(OFFontLoader.java:93)
{code}
There are two changes that should be done to the {{OTFAdvancedTypographicTableReader}}.
# The method {{readGDEFMarkGlyphsTableFormat1}} should catch this exception
# The method {{constructLookupsLanguage}} should check if the {{languages}} parameter is null.
After these changes, the PDF is produced and it looks good. I am not sure what are the side effects on the font that is embedded into the PDF..
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
Matthias Reischenbacher (JIRA)
2018-11-05 22:59:00 UTC
Permalink
[ https://issues.apache.org/jira/browse/FOP-2704?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16675861#comment-16675861 ]

Matthias Reischenbacher commented on FOP-2704:
----------------------------------------------

Just to clarify: The <complex-scripts> configuration or -nocs command line option will work, if the fonts are declared in the FOP configuration file. When using the font auto detection the Roboto font will not work, because the "advanced" font features are turned on by default (see FontInfoFinder.find() method and the hardcoded "boolean useAdvanced = true;" variable). We will have to change that eventually, because the user agent setting is completely ignored here.
{quote}This is a workaround disables too many font features. What would mean to support the "coverage set class table" ?
{quote}
Good question, hopefully some of the font experts can answer that. :)
Post by simon steiner (JIRA)
Google fonts Roboto font (updated 2017) UnsupportedOperationException: coverage set class table not yet supported
-----------------------------------------------------------------------------------------------------------------
Key: FOP-2704
URL: https://issues.apache.org/jira/browse/FOP-2704
Project: FOP
Issue Type: Bug
Components: font/opentype
Affects Versions: 2.1, 2.2
Reporter: Dan Caprioara
Priority: Major
Attachments: Roboto-Regular.ttf, Roboto-Thin.ttf
# Download the Roboto TTF font from Google Fonts.
# Create a configuration file with a triplet pointing to the "roboto-regular" or "roboto-thin" TTF file.
{code}
java.lang.UnsupportedOperationException: coverage set class table not yet supported
at org.apache.fop.complexscripts.fonts.GlyphClassTable$CoverageSetClassTable.<init>(GlyphClassTable.java:262)
at org.apache.fop.complexscripts.fonts.GlyphClassTable.createClassTable(GlyphClassTable.java:88)
at org.apache.fop.complexscripts.fonts.OTFAdvancedTypographicTableReader_Original.readGDEFMarkGlyphsTableFormat1(OTFAdvancedTypographicTableReader_Original.java:3344)
at org.apache.fop.complexscripts.fonts.OTFAdvancedTypographicTableReader.readGDEFMarkGlyphsTableFormat1(OTFAdvancedTypographicTableReader.java:69)
at org.apache.fop.complexscripts.fonts.OTFAdvancedTypographicTableReader_Original.readGDEFMarkGlyphsTable(OTFAdvancedTypographicTableReader_Original.java:3357)
at org.apache.fop.complexscripts.fonts.OTFAdvancedTypographicTableReader_Original.readGDEF(OTFAdvancedTypographicTableReader_Original.java:3427)
at org.apache.fop.complexscripts.fonts.OTFAdvancedTypographicTableReader_Original.readAll(OTFAdvancedTypographicTableReader_Original.java:80)
at org.apache.fop.fonts.truetype.OpenFont.handleCharacterSpacing(OpenFont.java:786)
at org.apache.fop.fonts.truetype.OpenFont.readFont(OpenFont.java:755)
at org.apache.fop.fonts.truetype.OFFontLoader.read(OFFontLoader.java:109)
at org.apache.fop.fonts.truetype.OFFontLoader.read(OFFontLoader.java:93)
{code}
There are two changes that should be done to the {{OTFAdvancedTypographicTableReader}}.
# The method {{readGDEFMarkGlyphsTableFormat1}} should catch this exception
# The method {{constructLookupsLanguage}} should check if the {{languages}} parameter is null.
After these changes, the PDF is produced and it looks good. I am not sure what are the side effects on the font that is embedded into the PDF..
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Loading...