[jira] [Commented] (FOP-2704) [PATCH] Google fonts Roboto font (updated 2017) UnsupportedOperationException: coverage set class table not yet supported
[ https://issues.apache.org/jira/browse/FOP-2704?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17005336#comment-17005336 ] Simon Steiner commented on FOP-2704: See my comment in july above > [PATCH] 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, > font-workaround.patch > > > 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.(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 (v8.3.4#803005)
[jira] [Commented] (FOP-2704) [PATCH] Google fonts Roboto font (updated 2017) UnsupportedOperationException: coverage set class table not yet supported
[ https://issues.apache.org/jira/browse/FOP-2704?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17005331#comment-17005331 ] John commented on FOP-2704: --- [https://github.com/apache/xmlgraphics-fop/pull/60] (repost of #59) solved all my Roboto issues. Thanks for the work on this. Does anyone know when/if this change will be released? > [PATCH] 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, > font-workaround.patch > > > 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.(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 (v8.3.4#803005)
[jira] [Commented] (FOP-1278) PNG missing for RTF output
[ https://issues.apache.org/jira/browse/FOP-1278?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17005238#comment-17005238 ] Sanjaya S commented on FOP-1278: Hi Team, I am using FOP 2.3 with Xmlgraphics-commons-2.3 to my test case. Simply I am generating a rtf output from a fo file where I am using an tag and taking a png image in src url. This gives me following error in output rtf file- {color:#505f79}_org.apache.fop.render.rtf.rtflib.rtfdoc.RtfExternalGraphic$ExternalGraphicException: The tag does not support png - image type._{color} I have tried with the fix given in https://issues.apache.org/jira/browse/XGC-97 but still no help. > PNG missing for RTF output > -- > > Key: FOP-1278 > URL: https://issues.apache.org/jira/browse/FOP-1278 > Project: FOP > Issue Type: Bug > Components: renderer/rtf >Affects Versions: trunk > Environment: Operating System: other > Platform: Other >Reporter: Chris Bowditch > Attachments: moon.png, test.fo > > > Attached PNG causes a NPE when rendering to RTF. Submitted by Dominic Brugger > (brugger.at.puzzle.ch) Stack trace below: > SEVERE: Error while handling an external-graphic: null > java.lang.NullPointerException > at org.apache.commons.io.IOUtils.copy(IOUtils.java:920) > at org.apache.commons.io.IOUtils.toByteArray(IOUtils.java:215) > at org.apache.fop.image.AbstractFopImage.loadDefaultOriginalData > (AbstractFopImage.java:223) > at org.apache.fop.image.ImageIOImage.loadOriginalData > (ImageIOImage.java:217) > at org.apache.fop.image.AbstractFopImage.load > (AbstractFopImage.java:174) > at org.apache.fop.render.rtf.RTFHandler.image(RTFHandler.java:1131) > at org.apache.fop.render.rtf.RTFHandler.invokeDeferredEvent > (RTFHandler.java:1492) > at org.apache.fop.render.rtf.RTFHandler.recurseFONode > (RTFHandler.java:1616) > at org.apache.fop.render.rtf.RTFHandler.recurseFONode > (RTFHandler.java:1687) > at org.apache.fop.render.rtf.RTFHandler.recurseFONode > (RTFHandler.java:1687) > at org.apache.fop.render.rtf.RTFHandler.recurseFONode > (RTFHandler.java:1639) > at org.apache.fop.render.rtf.RTFHandler.endPageSequence > (RTFHandler.java: -- This message was sent by Atlassian Jira (v8.3.4#803005)