PLEASE DO NOT REPLY TO THIS MESSAGE. TO FURTHER COMMENT ON THE STATUS OF THIS BUG PLEASE FOLLOW THE LINK BELOW AND USE THE ON-LINE APPLICATION. REPLYING TO THIS MESSAGE DOES NOT UPDATE THE DATABASE, AND SO YOUR COMMENT WILL BE LOST SOMEWHERE. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=3073 *** shadow/3073 Fri Aug 10 00:07:29 2001 --- shadow/3073.tmp.27248 Fri Aug 10 00:07:29 2001 *************** *** 0 **** --- 1,106 ---- + +============================================================================+ + | Whitespace does not scale | + +----------------------------------------------------------------------------+ + | Bug #: 3073 Product: Fop | + | Status: NEW Version: all | + | Resolution: Platform: PC | + | Severity: Normal OS/Version: Windows NT/2K | + | Priority: Other Component: pdf renderer | + +----------------------------------------------------------------------------+ + | Assigned To: [EMAIL PROTECTED] | + | Reported By: [EMAIL PROTECTED] | + | CC list: Cc: | + +----------------------------------------------------------------------------+ + | URL: | + +============================================================================+ + | DESCRIPTION | + Whitespace seems to have the same width irrespective of the font-size property + of the block. This can be annoying when trying to allign text using the + monospace font-family. I came accross this while working with tables so the + examples I attach are tables. The file table_ok.fo generates the pdf file + correctly, while the table_pb.fo generates the problem (the text in the second + row is not alligned with the text in the first row). The only difference is + that the table_pb.fo uses font-size="95%". + + I am using the 20010807101644 FOP snapshot. + + In release 0.19 I used to substitue all spaces with a non-breaking space + instead of using the white-space-collapse="false" property, and it worked. This + does not work anymore in the snapshot I am using. + + Here is some FO code to see the problem (remove font-size="95%" and it works, + i.e. the text on the second is aligned correctly): + + <?xml version="1.0" encoding="utf-8"?> + + <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"> + + + <!-- defines the layout master --> + <fo:layout-master-set> + <fo:simple-page-master master-name="first" + page-height="29.7cm" + page-width="21cm" + margin-top="1cm" + margin-bottom="2cm" + margin-left="2.5cm" + margin-right="2.5cm"> + <fo:region-body margin-top="3cm"/> + <fo:region-before extent="3cm"/> + <fo:region-after extent="1.5cm"/> + </fo:simple-page-master> + </fo:layout-master-set> + + <!-- starts actual layout --> + <fo:page-sequence master-name="first"> + + <fo:flow flow-name="xsl-region-body"> + + <!-- this defines a title level 1--> + <fo:block font-size="18pt" + font-family="sans-serif" + line-height="24pt" + space-after.optimum="15pt" + background-color="blue" + color="white" + text-align="center" + padding-top="3pt"> + How to use table elements + </fo:block> + + <!-- this defines a title level 2--> + <fo:block font-size="16pt" + font-family="sans-serif" + space-after.optimum="15pt" + text-align="center"> + A simple table, 3 columns, 4 rows + </fo:block> + + <!-- normal text --> + <fo:block text-align="start">this is normal text. this is normal text. this + is normal text. + this is normal text. this is normal text. this + is normal text. + </fo:block> + + <!-- table start --> + <fo:table> + <fo:table-column column-width="300pt"/> + <fo:table-body> + <fo:table-row> + <fo:table-cell ><fo:block white-space-collapse="false" font- + family="monospace" font-size="95%"> 1SpaceInFront + 4more</fo:block></fo:table-cell> + </fo:table-row> + <fo:table-row> + <fo:table-cell ><fo:block white-space-collapse="false" font- + family="monospace" font-size="95%"> + 18Spaces</fo:block></fo:table-cell> + </fo:table-row> + </fo:table-body> + </fo:table> + <!-- table end --> + + </fo:flow> + </fo:page-sequence> + </fo:root> \ No newline at end of file --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]