Bug 29451 - Setting font to Bold not displaying on PDF.
Summary: Setting font to Bold not displaying on PDF.
Status: CLOSED FIXED
Alias: None
Product: Fop - Now in Jira
Classification: Unclassified
Component: general (show other bugs)
Version: 0.20.5
Hardware: Sun Solaris
: P3 normal
Target Milestone: ---
Assignee: fop-dev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-06-09 03:56 UTC by Kenny Thein
Modified: 2012-04-01 06:44 UTC (History)
0 users



Attachments
fopconfig.xml (3.50 KB, text/plain)
2004-06-09 23:57 UTC, Kenny Thein
Details
fo file (56.81 KB, text/plain)
2004-06-09 23:58 UTC, Kenny Thein
Details
font file (343.97 KB, text/plain)
2004-06-09 23:58 UTC, Kenny Thein
Details
metric file (67.63 KB, text/plain)
2004-06-09 23:59 UTC, Kenny Thein
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kenny Thein 2004-06-09 03:56:41 UTC
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
Comment 1 Chris Bowditch 2004-06-09 13:31:02 UTC
I cant see anything wrong in the information you have provided. Please attach 
(not paste into the bug text) your full FO, user config file, fonts and font 
metrics file to this bug report and I will be able to investigate further.
Comment 2 Kenny Thein 2004-06-09 23:57:37 UTC
Created attachment 11808 [details]
fopconfig.xml
Comment 3 Kenny Thein 2004-06-09 23:58:15 UTC
Created attachment 11809 [details]
fo file
Comment 4 Kenny Thein 2004-06-09 23:58:52 UTC
Created attachment 11810 [details]
font file
Comment 5 Kenny Thein 2004-06-09 23:59:08 UTC
Created attachment 11811 [details]
metric file
Comment 6 Pascal Sancho 2007-11-20 01:40:41 UTC
Fixed in FOP 0.94 and probably earlier versions
Comment 7 Glenn Adams 2012-04-01 06:44:08 UTC
batch transition pre-FOP1.0 resolved+fixed bugs to closed+fixed