You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by bu...@apache.org on 2002/11/06 10:31:15 UTC

DO NOT REPLY [Bug 14290] New: - strokeSVGText=false causes space characters to be rendered incorrectly

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=14290>.
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=14290

strokeSVGText=false causes space characters to be rendered incorrectly

           Summary: strokeSVGText=false causes space characters to be
                    rendered incorrectly
           Product: Fop
           Version: 0.20.4
          Platform: Sun
        OS/Version: Solaris
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: svg
        AssignedTo: fop-dev@xml.apache.org
        ReportedBy: midohert@lehman.com


Use a config file in which strokeSVGText is set to false i.e. the config file 
contains:

  <entry>
    <key>strokeSVGText</key>
    <value>false</value>
  </entry>

Also supply any embedded font with a generated xml metrics file e.g.

<fonts>
  <font metrics-file="fonts/MSMincho.xml" kerning="yes" embed-
file="fonts/msmincho.ttf">
      <font-triplet name="ChosenFont" style="normal" weight="normal"/>
  </font>
</fonts>

Using the fo shown below to produce a pdf file results in no-break space 
(unicode 160 / 00A0) characters being rendered as capital 'O's and space 
(unicode 32 / 0020) characters being rendered as capital 'L's.  

Also, if the first line of text is commented out, then the pdf file created 
will be correct (i.e. spaces are spaces).  

Finally, if the frist line of text remains commented out and the leading 
capital 'O' is deleted from the beginning of the second line of text, the 
resulting pdf file has spaces rendered as boxes.

Note that this problem was raised in the mail list archive here:
http://marc.theaimsgroup.com/?l=fop-user&m=103013719216193&w=2

-------------------------------------------------------------

<?xml version="1.0" encoding="UTF-8"?>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
        <fo:layout-master-set>
                <fo:simple-page-master master-name="default" page-height="11in" 
page-width="8.5in">
                        <fo:region-body margin-top="0.5in" margin-
bottom="0.5in"/>
                </fo:simple-page-master>
        </fo:layout-master-set>
        <fo:page-sequence master-reference="default">
                <fo:flow flow-name="xsl-region-body">
                        <fo:block>
                                <fo:instream-foreign-object>
                                        <svg xmlns="http://www.w3.org/2000/svg" 
width="540" height="648">
                                                <text x="57" y="43" style="font-
family:ChosenFont;font-weight:normal;font-style:normal;font-size:12 ">
nobreakspace:&#160;regularspace:&#32;EndOfLine</text>

                                                <text x="57" y="103" 
style="font-family:ChosenFont;font-weight:normal;font-style:normal;font-
size:12 "
>O no problem if this is the only line</text>
                                        </svg>
                                </fo:instream-foreign-object>
                        </fo:block>
                </fo:flow>
        </fo:page-sequence>
</fo:root>

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org