Re: Font, metric-file, line spacing
From: IvanLatysh [EMAIL PROTECTED] I have a small problem with line spacing when using custom fonts. snip/ Before, when I used only times, courier and arial this process was perfect, I has no problems at all. But since I add a few additional fonts I have a different line spacing on the screen and on the paper. And the most interesting that spacing for arial still the same, but spacing for other fonts larger. I hade a loot at the font metric file, and find that it might be a source of the problem, because for custom fonts there are was missing parameter x-height. I calculate this parameter, and modify my ttf.fm.xml, but still no changes. snip/ Have you had a look at http://xml.apache.org/fop/output.html#ps ? it doesnt mention line-height specifically, but I would imagine the problem is in the code as well as the height being missing from the font metrics. I would be good if this problem was captured for future reference in bugzilla. See following link on how to add this into bugzilla (please attach example Font metrics, FO and user config) http://xml.apache.org/fop/bugs.html#issues_new Thanks, Chris _ Hotmail messages direct to your mobile phone http://www.msn.co.uk/msnmobile
Table border missing (#6929)
Hello all, fo:table border is missing if background-color is applied to fo:table-row or an fo:table-cell. This issue is already mentioned in the bug #6929. Would like to know if any work arounds are avialable for this issue. Thanks in advance, Srinivas. __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com
Re: Table border missing (#6929)
Adding the URL for convenience. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6929 Thanks, Srinivas. --- Nandina Srinivas [EMAIL PROTECTED] wrote: Hello all, fo:table border is missing if background-color is applied to fo:table-row or an fo:table-cell. This issue is already mentioned in the bug #6929. Would like to know if any work arounds are avialable for this issue. Thanks in advance, Srinivas. __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com
How can I get access to the development server?
On site: http://xml.apache.org/cvs.html there is note about access to the source: (...)The second is not and you must have a login to the development server. If you don't know what this means, join the mailing list and find out.. I can't find out... Can you help me? Thanks! Kuba Królikowski
Re: Font, metric-file, line spacing
TrueType fonts and the PostScript renderer don't go well at the moment (read: untested and there's no specific code for TrueType fonts). Please compare the output of the PostScript renderer with the one of the PDF renderer. Are there any differences? On 15.09.2003 20:42:01 IvanLatysh wrote: I have a small problem with line spacing when using custom fonts. I have a web page where user can select a few different fonts (fonts converted to the eot fonts to be displayed on the page properly) and this font will be applied to the user text. After submission I am creating a document and printing it, using FOP. Before, when I used only times, courier and arial this process was perfect, I has no problems at all. But since I add a few additional fonts I have a different line spacing on the screen and on the paper. And the most interesting that spacing for arial still the same, but spacing for other fonts larger. I hade a loot at the font metric file, and find that it might be a source of the problem, because for custom fonts there are was missing parameter x-height. I calculate this parameter, and modify my ttf.fm.xml, but still no changes. Basicly I can add line spacing based on the font name into my FO file, but I hope there are some way to tune up font metric file. At least where I can get the spec's for the metric file ? I am using fop-0.20.5rc3a, with PSRenderer. Jeremias Maerki
Re: How can I get access to the development server?
That second kind of access means having write access to the code repository and involves becoming a FOP committer first. And this involves learning about FOP in the first place and mostly submitting useful patches (done using the anonymous CVS access) until you catch the existing team's attention and they vote you in for committership. You can read more about the Apache way of things here: http://xml.apache.org/guidelines.html http://incubator.apache.org/drafts/theapacheway.html On 16.09.2003 13:59:48 Kuba Królikowski wrote: On site: http://xml.apache.org/cvs.html there is note about access to the source: (...)The second is not and you must have a login to the development server. If you don't know what this means, join the mailing list and find out.. I can't find out... Can you help me? Thanks! Jeremias Maerki
cvs commit: xml-fop/src/java/org/apache/fop/datatypes ColorType.java
vmote 2003/09/16 07:14:05 Modified:src/java/org/apache/fop/datatypes ColorType.java Log: correct computation of integer conversion, as per patch submitted by Peter Herweg -- see http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23080 Revision ChangesPath 1.4 +1 -1 xml-fop/src/java/org/apache/fop/datatypes/ColorType.java Index: ColorType.java === RCS file: /home/cvs/xml-fop/src/java/org/apache/fop/datatypes/ColorType.java,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- ColorType.java1 Sep 2003 01:28:51 - 1.3 +++ ColorType.java16 Sep 2003 14:14:04 - 1.4 @@ -254,7 +254,7 @@ if (floatValue 0) { floatValue = 0; } -return (int) floatValue * 255; +return (int) (floatValue * 255); } /** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
cvs commit: xml-fop/src/java/org/apache/fop/rtf/rtflib/rtfdoc RtfColorTable.java
vmote 2003/09/16 07:50:16 Modified:src/java/org/apache/fop/rtf/renderer RTFHandler.java src/java/org/apache/fop/rtf/rtflib/rtfdoc RtfColorTable.java Log: make RtfColorTable.getColorNumber return an Integer instead of int, so that it can return a null value -- submitted by Peter Herweg, see http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23082 Revision ChangesPath 1.18 +2 -2 xml-fop/src/java/org/apache/fop/rtf/renderer/RTFHandler.java Index: RTFHandler.java === RCS file: /home/cvs/xml-fop/src/java/org/apache/fop/rtf/renderer/RTFHandler.java,v retrieving revision 1.17 retrieving revision 1.18 diff -u -r1.17 -r1.18 --- RTFHandler.java 9 Sep 2003 14:31:08 - 1.17 +++ RTFHandler.java 16 Sep 2003 14:50:16 - 1.18 @@ -452,7 +452,7 @@ white. */ if ((fopValue.getRed() == 0) (fopValue.getGreen() == 0) (fopValue.getBlue() == 0) (fopValue.getAlpha() == 0)) { -rtfColor = RtfColorTable.getInstance().getColorNumber(white); +rtfColor = RtfColorTable.getInstance().getColorNumber(white).intValue(); } else { rtfColor = convertFOPColorToRTF(fopValue); } @@ -472,7 +472,7 @@ int greenComponent = ColorType.convertChannelToInteger (fopColor.getGreen()); int blueComponent = ColorType.convertChannelToInteger (fopColor.getBlue()); return RtfColorTable.getInstance().getColorNumber(redComponent, -greenComponent, blueComponent); +greenComponent, blueComponent).intValue(); } } 1.7 +14 -14 xml-fop/src/java/org/apache/fop/rtf/rtflib/rtfdoc/RtfColorTable.java Index: RtfColorTable.java === RCS file: /home/cvs/xml-fop/src/java/org/apache/fop/rtf/rtflib/rtfdoc/RtfColorTable.java,v retrieving revision 1.6 retrieving revision 1.7 diff -u -r1.6 -r1.7 --- RtfColorTable.java5 Jul 2003 03:23:23 - 1.6 +++ RtfColorTable.java16 Sep 2003 14:50:16 - 1.7 @@ -131,14 +131,14 @@ * Initialize the color table. */ private void init () { -addNamedColor(black, getColorNumber (0, 0, 0)); -addNamedColor(white, getColorNumber (255, 255, 255)); -addNamedColor(red, getColorNumber (255, 0, 0)); -addNamedColor(green, getColorNumber (0, 255, 0)); -addNamedColor(blue, getColorNumber (0, 0, 255)); -addNamedColor(cyan, getColorNumber (0, 255, 255)); -addNamedColor(magenta, getColorNumber (255, 0, 255)); -addNamedColor(yellow, getColorNumber (255, 255, 0)); +addNamedColor(black, getColorNumber (0, 0, 0).intValue()); +addNamedColor(white, getColorNumber (255, 255, 255).intValue()); +addNamedColor(red, getColorNumber (255, 0, 0).intValue()); +addNamedColor(green, getColorNumber (0, 255, 0).intValue()); +addNamedColor(blue, getColorNumber (0, 0, 255).intValue()); +addNamedColor(cyan, getColorNumber (0, 255, 255).intValue()); +addNamedColor(magenta, getColorNumber (255, 0, 255).intValue()); +addNamedColor(yellow, getColorNumber (255, 255, 0).intValue()); getColorNumber (0, 0, 128); getColorNumber (0, 128, 128); @@ -150,7 +150,7 @@ // Added by Normand Masse // Gray color added -addNamedColor(gray, getColorNumber(128, 128, 128)); +addNamedColor(gray, getColorNumber(128, 128, 128).intValue()); getColorNumber (192, 192, 192); } @@ -168,8 +168,8 @@ * @param name a named color * @return the RTF number of a named color, or null if name not found */ -public int getColorNumber (String name) { -return ((Integer)namedColors.get(name.toLowerCase())).intValue(); +public Integer getColorNumber (String name) { +return ((Integer)namedColors.get(name.toLowerCase())); } /** @@ -181,7 +181,7 @@ * * @return The number of the color in the table */ -public int getColorNumber (int red, int green, int blue) { +public Integer getColorNumber (int red, int green, int blue) { Integer identifier = new Integer (determineIdentifier (red, green, blue)); Object o = colorIndex.get (identifier); int retVal; @@ -194,7 +194,7 @@ retVal = ((Integer) o).intValue (); } -return retVal + 1; +return new Integer(retVal + 1); } /** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 23082] - [PATCH] RTF: RtfColorTable.getColorNumber has to return Integer instead of int
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23082. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23082 [PATCH] RTF: RtfColorTable.getColorNumber has to return Integer instead of int [EMAIL PROTECTED] changed: What|Removed |Added Status|NEW |RESOLVED Resolution||FIXED --- Additional Comments From [EMAIL PROTECTED] 2003-09-16 14:57 --- I have committed this change. Thanks. I have noticed on this and some other patches that you are creating a separate attachment for each file that is patched. It will help anyone applying the patch (and will probably help you also) to submit just one patch file for all of the changes that need to be made on a particular patch. You can run diff against some parent directory to catch all of them. If you have any questions about this, please feel free to ask on fop-dev. Thanks.
cvs commit: xml-fop/src/java/org/apache/fop/rtf/renderer RTFHandler.java
vmote 2003/09/16 10:33:07 Modified:src/java/org/apache/fop/fo FOInputHandler.java FOTreeHandler.java src/java/org/apache/fop/mif MIFHandler.java src/java/org/apache/fop/rtf/renderer RTFHandler.java Log: add structure for handling table columns in fo/FOInputHandler and its subclasses -- submitted by Peter Herweg, see http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23085 Revision ChangesPath 1.9 +14 -1 xml-fop/src/java/org/apache/fop/fo/FOInputHandler.java Index: FOInputHandler.java === RCS file: /home/cvs/xml-fop/src/java/org/apache/fop/fo/FOInputHandler.java,v retrieving revision 1.8 retrieving revision 1.9 diff -u -r1.8 -r1.9 --- FOInputHandler.java 1 Sep 2003 19:21:07 - 1.8 +++ FOInputHandler.java 16 Sep 2003 17:33:06 - 1.9 @@ -62,6 +62,7 @@ import org.apache.fop.fo.flow.ListBlock; import org.apache.fop.fo.flow.ListItem; import org.apache.fop.fo.flow.Table; +import org.apache.fop.fo.flow.TableColumn; import org.apache.fop.fo.flow.TableBody; import org.apache.fop.fo.flow.TableCell; import org.apache.fop.fo.flow.TableRow; @@ -166,6 +167,18 @@ * @param tbl Table that is ending. */ public abstract void endTable(Table tbl); + +/** + * + * @param tc TableColumn that is starting; + */ +public abstract void startColumn(TableColumn tc); + +/** + * + * @param tc TableColumn that is ending; + */ +public abstract void endColumn(TableColumn tc); /** * 1.8 +16 -1 xml-fop/src/java/org/apache/fop/fo/FOTreeHandler.java Index: FOTreeHandler.java === RCS file: /home/cvs/xml-fop/src/java/org/apache/fop/fo/FOTreeHandler.java,v retrieving revision 1.7 retrieving revision 1.8 diff -u -r1.7 -r1.8 --- FOTreeHandler.java22 Aug 2003 17:21:48 - 1.7 +++ FOTreeHandler.java16 Sep 2003 17:33:06 - 1.8 @@ -66,6 +66,7 @@ import org.apache.fop.fo.flow.ListBlock; import org.apache.fop.fo.flow.ListItem; import org.apache.fop.fo.flow.Table; +import org.apache.fop.fo.flow.TableColumn; import org.apache.fop.fo.flow.TableBody; import org.apache.fop.fo.flow.TableCell; import org.apache.fop.fo.flow.TableRow; @@ -247,6 +248,20 @@ * @see org.apache.fop.fo.FOInputHandler#endTable(Table) */ public void endTable(Table tbl) { +} + +/** + * + * @param tc TableColumn that is starting; + */ +public void startColumn(TableColumn tc) { +} + +/** + * + * @param tc TableColumn that is ending; + */ +public void endColumn(TableColumn tc) { } /** 1.12 +15 -0 xml-fop/src/java/org/apache/fop/mif/MIFHandler.java Index: MIFHandler.java === RCS file: /home/cvs/xml-fop/src/java/org/apache/fop/mif/MIFHandler.java,v retrieving revision 1.11 retrieving revision 1.12 diff -u -r1.11 -r1.12 --- MIFHandler.java 20 Aug 2003 18:09:45 - 1.11 +++ MIFHandler.java 16 Sep 2003 17:33:06 - 1.12 @@ -73,6 +73,7 @@ import org.apache.fop.fo.flow.ListBlock; import org.apache.fop.fo.flow.ListItem; import org.apache.fop.fo.flow.Table; +import org.apache.fop.fo.flow.TableColumn; import org.apache.fop.fo.flow.TableBody; import org.apache.fop.fo.flow.TableCell; import org.apache.fop.fo.flow.TableRow; @@ -234,6 +235,20 @@ * @see org.apache.fop.fo.FOInputHandler#endTable(Table) */ public void endTable(Table tbl) { +} + +/** + * + * @param tc TableColumn that is starting; + */ +public void startColumn(TableColumn tc) { +} + +/** + * + * @param tc TableColumn that is ending; + */ +public void endColumn(TableColumn tc) { } /** 1.19 +15 -0 xml-fop/src/java/org/apache/fop/rtf/renderer/RTFHandler.java Index: RTFHandler.java === RCS file: /home/cvs/xml-fop/src/java/org/apache/fop/rtf/renderer/RTFHandler.java,v retrieving revision 1.18 retrieving revision 1.19 diff -u -r1.18 -r1.19 --- RTFHandler.java 16 Sep 2003 14:50:16 - 1.18 +++ RTFHandler.java 16 Sep 2003 17:33:07 - 1.19 @@ -66,6 +66,7 @@ import org.apache.fop.fo.flow.ListBlock; import org.apache.fop.fo.flow.ListItem; import org.apache.fop.fo.flow.Table; +import org.apache.fop.fo.flow.TableColumn; import org.apache.fop.fo.flow.TableBody; import org.apache.fop.fo.flow.TableCell; import org.apache.fop.fo.flow.TableRow; @@ -249,6 +250,20
DO NOT REPLY [Bug 23085] - [Patch] RTF: startColumn and endColumn events added to FOInputHandler
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23085. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23085 [Patch] RTF: startColumn and endColumn events added to FOInputHandler [EMAIL PROTECTED] changed: What|Removed |Added Status|NEW |RESOLVED Resolution||FIXED --- Additional Comments From [EMAIL PROTECTED] 2003-09-16 17:37 --- I have committed this change. Thanks.
cvs commit: xml-fop/src/java/org/apache/fop/fo/flow Table.java TableCell.java TableColumn.java TableRow.java
vmote 2003/09/16 11:11:52 Modified:src/java/org/apache/fop/fo/flow Table.java TableCell.java TableColumn.java TableRow.java Log: trigger event handling for start and end of table, cell, column, and row, primarily for the benefit of the structure handlers (mif/rtf) -- submitted by Peter Herweg, see http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23103 Revision ChangesPath 1.8 +19 -1 xml-fop/src/java/org/apache/fop/fo/flow/Table.java Index: Table.java === RCS file: /home/cvs/xml-fop/src/java/org/apache/fop/fo/flow/Table.java,v retrieving revision 1.7 retrieving revision 1.8 diff -u -r1.7 -r1.8 --- Table.java16 Sep 2003 05:21:05 - 1.7 +++ Table.java16 Sep 2003 18:11:52 - 1.8 @@ -53,7 +53,11 @@ // Java import java.util.ArrayList; +// XML +import org.xml.sax.Attributes; + // FOP +import org.apache.fop.apps.FOPException; import org.apache.fop.datatypes.ColorType; import org.apache.fop.datatypes.LengthRange; import org.apache.fop.fo.FONode; @@ -224,5 +228,19 @@ fotv.serveTable(this); } -} +/** + * @see org.apache.fop.fo.FObj#handleAttrs + */ +public void handleAttrs(Attributes attlist) throws FOPException { +super.handleAttrs(attlist); + +setupID(); +getFOTreeControl().getFOInputHandler().startTable(this); +} + +protected void end() { +getFOTreeControl().getFOInputHandler().endTable(this); +} + +} 1.7 +5 -0 xml-fop/src/java/org/apache/fop/fo/flow/TableCell.java Index: TableCell.java === RCS file: /home/cvs/xml-fop/src/java/org/apache/fop/fo/flow/TableCell.java,v retrieving revision 1.6 retrieving revision 1.7 diff -u -r1.6 -r1.7 --- TableCell.java16 Sep 2003 05:21:05 - 1.6 +++ TableCell.java16 Sep 2003 18:11:52 - 1.7 @@ -159,6 +159,8 @@ public void handleAttrs(Attributes attlist) throws FOPException { super.handleAttrs(attlist); doSetup();// init some basic property values + +getFOTreeControl().getFOInputHandler().startCell(this); } /** @@ -386,4 +388,7 @@ fotv.serveTableCell(this); } +protected void end() { +getFOTreeControl().getFOInputHandler().endCell(this); +} } 1.9 +19 -0 xml-fop/src/java/org/apache/fop/fo/flow/TableColumn.java Index: TableColumn.java === RCS file: /home/cvs/xml-fop/src/java/org/apache/fop/fo/flow/TableColumn.java,v retrieving revision 1.8 retrieving revision 1.9 diff -u -r1.8 -r1.9 --- TableColumn.java 16 Sep 2003 05:21:05 - 1.8 +++ TableColumn.java 16 Sep 2003 18:11:52 - 1.9 @@ -50,7 +50,11 @@ */ package org.apache.fop.fo.flow; +// XML +import org.xml.sax.Attributes; + // FOP +import org.apache.fop.apps.FOPException; import org.apache.fop.datatypes.ColorType; import org.apache.fop.datatypes.Length; import org.apache.fop.fo.FONode; @@ -168,5 +172,20 @@ fotv.serveTableColumn(this); } +/** + * Overriden from FObj. + * @param attlist Collection of attributes passed to us from the parser. + * @throws FOPException for FO errors + */ +public void handleAttrs(Attributes attlist) throws FOPException { +super.handleAttrs(attlist); +doSetup();// init some basic property values + +getFOTreeControl().getFOInputHandler().startColumn(this); +} + +protected void end() { +getFOTreeControl().getFOInputHandler().endColumn(this); +} } 1.7 +19 -1 xml-fop/src/java/org/apache/fop/fo/flow/TableRow.java Index: TableRow.java === RCS file: /home/cvs/xml-fop/src/java/org/apache/fop/fo/flow/TableRow.java,v retrieving revision 1.6 retrieving revision 1.7 diff -u -r1.6 -r1.7 --- TableRow.java 16 Sep 2003 05:21:05 - 1.6 +++ TableRow.java 16 Sep 2003 18:11:52 - 1.7 @@ -50,7 +50,11 @@ */ package org.apache.fop.fo.flow; +// XML +import org.xml.sax.Attributes; + // FOP +import org.apache.fop.apps.FOPException; import org.apache.fop.datatypes.ColorType; import org.apache.fop.datatypes.KeepValue; import org.apache.fop.fo.FONode; @@ -162,5 +166,19 @@ fotv.serveTableRow(this); } -} +/** + * @see org.apache.fop.fo.FObj#handleAttrs + */ +public void handleAttrs(Attributes attlist) throws FOPException { +super.handleAttrs(attlist); + +setupID();
DO NOT REPLY [Bug 23103] - [PATCH] trigger table events in FOInputHandler
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23103. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23103 [PATCH] trigger table events in FOInputHandler [EMAIL PROTECTED] changed: What|Removed |Added Status|NEW |RESOLVED Resolution||FIXED --- Additional Comments From [EMAIL PROTECTED] 2003-09-16 18:15 --- I have committed this change. Thanks.
cvs commit: xml-fop/src/documentation/content/xdocs embedding.xml
gmazza 2003/09/16 14:17:38 Modified:src/documentation/content/xdocs embedding.xml Log: Added a link on XSLT stylesheet caching (from a recent email) to the embedding page. Revision ChangesPath 1.16 +3 -2 xml-fop/src/documentation/content/xdocs/embedding.xml Index: embedding.xml === RCS file: /home/cvs/xml-fop/src/documentation/content/xdocs/embedding.xml,v retrieving revision 1.15 retrieving revision 1.16 diff -u -r1.15 -r1.16 --- embedding.xml 15 Sep 2003 20:54:01 - 1.15 +++ embedding.xml 16 Sep 2003 21:17:38 - 1.16 @@ -317,7 +317,8 @@ li Cache the stylesheet. If you use the same stylesheet multiple times you can setup a JAXP codeTemplates/code object and reuse it each time you do -the XSL transformation. +the XSL transformation. (More information can be found +fork href=http://www.javaworld.com/javaworld/jw-05-2003/jw-0502-xsl.html;here/fork.) /li li Use an XSLT compiler like fork href=http://xml.apache.org/xalan-j/xsltc_usage.html;XSLTC/fork - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]