DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=29451>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=29451

Setting font to Bold not displaying on PDF.

           Summary: Setting font to Bold not displaying on PDF.
           Product: Fop
           Version: 0.20.5
          Platform: Sun
        OS/Version: Solaris
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: general
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


Hi,

I am embedding arial and arialbd fonts in my pdf, it picks up the Arial Font, 
but not when font-weight="bold". Thus when I set the font-weight="bold" it 
shows up as Times New Roman Bold (it exhibits behaviour like it can't find the 
font)

Start Code Snipets:

fopconfig.xml

                <font metrics-file="/opt/jrun4sp1/jrun4/lib/fonts/arial.xml" 
kerning="yes" embed-file="/opt/jrun4sp1/jrun4/lib/fonts/arial.ttf">
                        <font-triplet name="Arial" style="normal" 
weight="normal"/>
                </font>
                <font metrics-file="/opt/jrun4sp1/jrun4/lib/fonts/arialbd.xml" 
kerning="yes" embed-file="/opt/jrun4sp1/jrun4/lib/fonts/arialbd.ttf">
                        <font-triplet name="Arial" style="normal" 
weight="bold"/>
                </font>


xsl:
<fo:block font-family="Arial" font-size="8mm" line-height="8.5mm" text-
align="center" font-weight="bold">ICM</fo:block>

TTF Reader:
J:\source>java -cp lib\fop.jar;lib\avalon-framework-cvs-20020806.jar org.apache.
fop.fonts.apps.TTFReader -enc ansi C:\WINNT\Fonts\arialbd.ttf arialbd.xml
TTF Reader v1.1.1

Reading C:\WINNT\Fonts\arialbd.ttf...

Number of glyphs in font: 1674
Creating xml font file...

Creating WinAnsi encoded metrics
Writing xml font file arialbd.xml...

This font contains no embedding license restrictions

*** I have tried to create the XML using  -enc ansi and not using it, it 
doesn't seem to make a difference.

End Code Snipets.

So any pointers in what I could be doing wrong ? or is it a bug in the system.


thanks in advance.
.kenny

Reply via email to