[jira] [Commented] (FOP-2704) 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=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" ? > 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 > > > 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 (v7.6.3#76005)
[jira] [Updated] (FOP-2731) Position:fixed uses a bad reference area
[ https://issues.apache.org/jira/browse/FOP-2731?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Dan Caprioara updated FOP-2731: --- Attachment: fop.patch > Position:fixed uses a bad reference area > > > Key: FOP-2731 > URL: https://issues.apache.org/jira/browse/FOP-2731 > Project: FOP > Issue Type: Bug > Components: layout/block >Affects Versions: 2.2 >Reporter: Dan Caprioara >Priority: Major > Attachments: fop.patch, position-fixed-bad-reference-area.png, > position.fo > > > When trying to place some elements to the corners of the page, it seems that > FOP uses some wrong dimensions. Take a look at the attached screenshot, > showing the difference between FOP and AntennaHouse. > {code} > > xml:lang="dflt" > xmlns:css="http://www.w3.org/1998/CSS; > xmlns:fo="http://www.w3.org/1999/XSL/Format;> > > > master-name="css2fo-default"> > > blank-or-not-blank="any" > master-reference="spm-css2fo-default" > odd-or-even="any" > page-position="any"/> > > > master-name="spm-css2fo-default" > page-height="8.27in" > page-width="5.83in"> > border-bottom-color="orange" > border-bottom-style="solid" > border-bottom-width="2pt" > border-left-color="orange" > border-left-style="solid" > border-left-width="2pt" > border-right-color="orange" > border-right-style="solid" > border-right-width="2pt" > border-top-color="orange" > border-top-style="solid" > border-top-width="2pt" > margin-bottom="1in" > margin-left="1in" > margin-right="1in" > margin-top="1in"/> > extent="1in" > region-name="sc-before"/> > extent="1in" > region-name="sc-after"/> > extent="1in" > region-name="sc-start"/> > extent="1in" > region-name="sc-end"/> > > > > xmlns:x="adobe:ns:meta/"> > xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#;> > > xmlns:xmp="http://ns.adobe.com/xap/1.0/;>oXygen PDF > Chemistry > > > > > force-page-count="no-force" > id="last-page-sequence" > line-height-shift-adjustment="disregard-shifts" > master-reference="css2fo-default"> > flow-name="xsl-region-body"> > font-family="serif" > font-size="12pt"> > font-size="larger" > font-style="oblique">An element with position: fixed is > positioned relative to its > page. > 1. Normal div. > border-bottom-color="red" > border-bottom-style="solid" > border-bottom-width="3pt" > border-left-color="red" > border-left-style="solid" > border-left-width="3pt" > border-right-color="red" > border-right-style="solid" > border-right-width="3pt" > border-top-color="red" > border-top-style="solid" > border-top-width="3pt" > height="100pt" > left="10pt" > position="fixed" > top="10pt" > width="100pt"> > end-indent="0" > start-indent="0">Fixed top left. > > border-bottom-color="red" > border-bottom-style="solid" > border-bottom-width="3pt" > border-left-color="red" > border-left-style="solid" > border-left-width="3pt" > border-right-color="red" > border-right-style="solid" > border-right-width="3pt" > border-top-color="red" > border-top-style="solid" > border-top-width="3pt" > height="100pt" > position="fixed" > right="10pt" >
[jira] [Commented] (FOP-2731) Position:fixed uses a bad reference area
[ https://issues.apache.org/jira/browse/FOP-2731?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16617441#comment-16617441 ] Dan Caprioara commented on FOP-2731: Added the XSL-FO file and the patch. I am not sure how/were to create a testcase. > Position:fixed uses a bad reference area > > > Key: FOP-2731 > URL: https://issues.apache.org/jira/browse/FOP-2731 > Project: FOP > Issue Type: Bug > Components: layout/block >Affects Versions: 2.2 >Reporter: Dan Caprioara >Priority: Major > Attachments: fop.patch, position-fixed-bad-reference-area.png, > position.fo > > > When trying to place some elements to the corners of the page, it seems that > FOP uses some wrong dimensions. Take a look at the attached screenshot, > showing the difference between FOP and AntennaHouse. > {code} > > xml:lang="dflt" > xmlns:css="http://www.w3.org/1998/CSS; > xmlns:fo="http://www.w3.org/1999/XSL/Format;> > > > master-name="css2fo-default"> > > blank-or-not-blank="any" > master-reference="spm-css2fo-default" > odd-or-even="any" > page-position="any"/> > > > master-name="spm-css2fo-default" > page-height="8.27in" > page-width="5.83in"> > border-bottom-color="orange" > border-bottom-style="solid" > border-bottom-width="2pt" > border-left-color="orange" > border-left-style="solid" > border-left-width="2pt" > border-right-color="orange" > border-right-style="solid" > border-right-width="2pt" > border-top-color="orange" > border-top-style="solid" > border-top-width="2pt" > margin-bottom="1in" > margin-left="1in" > margin-right="1in" > margin-top="1in"/> > extent="1in" > region-name="sc-before"/> > extent="1in" > region-name="sc-after"/> > extent="1in" > region-name="sc-start"/> > extent="1in" > region-name="sc-end"/> > > > > xmlns:x="adobe:ns:meta/"> > xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#;> > > xmlns:xmp="http://ns.adobe.com/xap/1.0/;>oXygen PDF > Chemistry > > > > > force-page-count="no-force" > id="last-page-sequence" > line-height-shift-adjustment="disregard-shifts" > master-reference="css2fo-default"> > flow-name="xsl-region-body"> > font-family="serif" > font-size="12pt"> > font-size="larger" > font-style="oblique">An element with position: fixed is > positioned relative to its > page. > 1. Normal div. > border-bottom-color="red" > border-bottom-style="solid" > border-bottom-width="3pt" > border-left-color="red" > border-left-style="solid" > border-left-width="3pt" > border-right-color="red" > border-right-style="solid" > border-right-width="3pt" > border-top-color="red" > border-top-style="solid" > border-top-width="3pt" > height="100pt" > left="10pt" > position="fixed" > top="10pt" > width="100pt"> > end-indent="0" > start-indent="0">Fixed top left. > > border-bottom-color="red" > border-bottom-style="solid" > border-bottom-width="3pt" > border-left-color="red" > border-left-style="solid" > border-left-width="3pt" > border-right-color="red" > border-right-style="solid" > border-right-width="3pt" > border-top-color="red" > border-top-style="solid" > border-top-width="3pt" >
[jira] [Updated] (FOP-2731) Position:fixed uses a bad reference area
[ https://issues.apache.org/jira/browse/FOP-2731?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Dan Caprioara updated FOP-2731: --- Attachment: position.fo > Position:fixed uses a bad reference area > > > Key: FOP-2731 > URL: https://issues.apache.org/jira/browse/FOP-2731 > Project: FOP > Issue Type: Bug > Components: layout/block >Affects Versions: 2.2 >Reporter: Dan Caprioara >Priority: Major > Attachments: position-fixed-bad-reference-area.png, position.fo > > > When trying to place some elements to the corners of the page, it seems that > FOP uses some wrong dimensions. Take a look at the attached screenshot, > showing the difference between FOP and AntennaHouse. > {code} > > xml:lang="dflt" > xmlns:css="http://www.w3.org/1998/CSS; > xmlns:fo="http://www.w3.org/1999/XSL/Format;> > > > master-name="css2fo-default"> > > blank-or-not-blank="any" > master-reference="spm-css2fo-default" > odd-or-even="any" > page-position="any"/> > > > master-name="spm-css2fo-default" > page-height="8.27in" > page-width="5.83in"> > border-bottom-color="orange" > border-bottom-style="solid" > border-bottom-width="2pt" > border-left-color="orange" > border-left-style="solid" > border-left-width="2pt" > border-right-color="orange" > border-right-style="solid" > border-right-width="2pt" > border-top-color="orange" > border-top-style="solid" > border-top-width="2pt" > margin-bottom="1in" > margin-left="1in" > margin-right="1in" > margin-top="1in"/> > extent="1in" > region-name="sc-before"/> > extent="1in" > region-name="sc-after"/> > extent="1in" > region-name="sc-start"/> > extent="1in" > region-name="sc-end"/> > > > > xmlns:x="adobe:ns:meta/"> > xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#;> > > xmlns:xmp="http://ns.adobe.com/xap/1.0/;>oXygen PDF > Chemistry > > > > > force-page-count="no-force" > id="last-page-sequence" > line-height-shift-adjustment="disregard-shifts" > master-reference="css2fo-default"> > flow-name="xsl-region-body"> > font-family="serif" > font-size="12pt"> > font-size="larger" > font-style="oblique">An element with position: fixed is > positioned relative to its > page. > 1. Normal div. > border-bottom-color="red" > border-bottom-style="solid" > border-bottom-width="3pt" > border-left-color="red" > border-left-style="solid" > border-left-width="3pt" > border-right-color="red" > border-right-style="solid" > border-right-width="3pt" > border-top-color="red" > border-top-style="solid" > border-top-width="3pt" > height="100pt" > left="10pt" > position="fixed" > top="10pt" > width="100pt"> > end-indent="0" > start-indent="0">Fixed top left. > > border-bottom-color="red" > border-bottom-style="solid" > border-bottom-width="3pt" > border-left-color="red" > border-left-style="solid" > border-left-width="3pt" > border-right-color="red" > border-right-style="solid" > border-right-width="3pt" > border-top-color="red" > border-top-style="solid" > border-top-width="3pt" > height="100pt" > position="fixed" > right="10pt" >
[jira] [Created] (FOP-2816) The property keep-together.within-page='always' implies keep-together.within-column='always' (there should be a difference)
Dan Caprioara created FOP-2816: -- Summary: The property keep-together.within-page='always' implies keep-together.within-column='always' (there should be a difference) Key: FOP-2816 URL: https://issues.apache.org/jira/browse/FOP-2816 Project: FOP Issue Type: Bug Components: layout/page Affects Versions: 2.3 Reporter: Dan Caprioara This is an example: A document having two columns and as series of small sections, called steps. Each of the "step" block has the attributes: {code:java} keep-together.within-column="auto" keep-together.within-page="always" {code} The "step" at the end of the first column should break on the two columns, as it has {{keep-together.within-column="auto"}}. Instead it moves completely to the second column. In fact it behaves as the column breaks and page breaks are considered by FOP to be the same thing. {code:xml} http://www.oxygenxml.com/chemistry/extensions/fop; xmlns:css="http://www.w3.org/1998/CSS; xmlns:fo="http://www.w3.org/1999/XSL/Format; xmlns:fox="http://xmlgraphics.apache.org/fop/extensions;> The step should not break on two pages, but should break on two columns . This is a step with some text content that should wrap somehow on multiple lines. This is a step with some text content that should wrap somehow on multiple lines. This is a step with some text content that should wrap somehow on multiple lines. This is a step with some text content that should wrap somehow on multiple lines. This is a step with some text content that should wrap somehow on multiple lines. This is a step with some text content that should wrap somehow on multiple lines. This is a step with some text content that should wrap somehow on multiple lines. This is a step with some text content that should wrap somehow on multiple lines. This is a step with some text content that should wrap somehow on multiple lines. This is a step with some text content that should wrap somehow on multiple lines. This is a step with some text content that should wrap somehow on multiple lines. This is a step with some text content that should wrap somehow on multiple lines. {code} -- This message was sent by Atlassian JIRA (v7.6.3#76005)