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/09/12 11:18:35 UTC

DO NOT REPLY [Bug 12564] New: - PDFTextPainter won't find any fop embedded fonts

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

PDFTextPainter won't find any fop embedded  fonts

           Summary: PDFTextPainter won't find any fop embedded  fonts
           Product: Fop
           Version: 0.20.4
          Platform: Macintosh
        OS/Version: MacOS X
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: svg
        AssignedTo: fop-dev@xml.apache.org
        ReportedBy: michael.maier@vivai.de


By setting strokeSVGText to false in the user configuration file to let all text is drawn into 
PDF using the PDF text commands no embedded font is used because the 
PDFTextPainter cannot find any font in its FontInfo-Object. 

The reason is a bug in the method "paint" of PDFTextPainter. The method tries to find the 
font defined by name, style and weight:
...
                if (fi.hasFont(name, weight, style )) {
...
but the correct call of the method hasFont is 
...
                if (fi.hasFont(name, style, weight)) {
...
because second parameter is the "style" and the third parameter is "weight".
After exchanging the style and weight parameter, the embbeded font is found.

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