Consider this test document:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Arial Test</title>
<style>
body {font: 20pt "Arial Narrow";}
</style>
</head>
<body>
<p>This is Arial Narrow. <b>This is bold.</b> <i>This is italic.</i> <b><i>This is bold italic.</i></b></p>
</body>
</html>
This renders as expected in Safari.
In Prince, this worked OK in Tiger (Mac OS X 10.4) with 5.1r11. In Leopard (10.5), I tried it with both 5.1411 and 6.0r4, and find that the bold, italic, and bold italic variants no longer appear -- and instead Times is substitued.
Verbose mode shows some "bad argument" warnings which mean nothing to me but might be a clue. It also shows that the wrong fonts are being used for the non-Regular faces.
[cthorman@chris-thormans-mac-pro book]# ../../../prince-r11/lib/prince/bin/prince -v arialtest.html arialtest.pdf
prince: loading XML input: arialtest.html
prince: used font: Arial Narrow, Regular
prince: warning: bad argument
prince: warning: bad argument
prince: used font: Times, Bold
prince: warning: bad argument
prince: warning: bad argument
prince: used font: Times, Italic
prince: warning: bad argument
prince: used font: Times New Roman, Bold Italic
[cthorman@chris-thormans-mac-pro book]# ../../../prince-6.0r4-macosx/lib/prince/bin/prince -v arialtest.html -o arialtest.pdf
prince: loading XML input: arialtest.html
prince: used font: Arial Narrow, Regular
prince: warning: bad argument
prince: warning: bad argument
prince: used font: Times, Bold
prince: warning: bad argument
prince: warning: bad argument
prince: used font: Times, Italic
prince: warning: bad argument
prince: used font: Times New Roman, Bold Italic
In my Leopard install, the font files for these are in:
/Library/Fonts/Arial Narrow[Bold, Italic, etc.].ttf
I don't know offhand whether these are part of the base Mac OS X nowadays, or are installed with Microsoft Office... the answer might be "both" in Leopard, and perhaps that is the difference?
Any hope for a fix sometime soon? This is blocking a publication I need to update...
Thanks,
-c
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Arial Test</title>
<style>
body {font: 20pt "Arial Narrow";}
</style>
</head>
<body>
<p>This is Arial Narrow. <b>This is bold.</b> <i>This is italic.</i> <b><i>This is bold italic.</i></b></p>
</body>
</html>
This renders as expected in Safari.
In Prince, this worked OK in Tiger (Mac OS X 10.4) with 5.1r11. In Leopard (10.5), I tried it with both 5.1411 and 6.0r4, and find that the bold, italic, and bold italic variants no longer appear -- and instead Times is substitued.
Verbose mode shows some "bad argument" warnings which mean nothing to me but might be a clue. It also shows that the wrong fonts are being used for the non-Regular faces.
[cthorman@chris-thormans-mac-pro book]# ../../../prince-r11/lib/prince/bin/prince -v arialtest.html arialtest.pdf
prince: loading XML input: arialtest.html
prince: used font: Arial Narrow, Regular
prince: warning: bad argument
prince: warning: bad argument
prince: used font: Times, Bold
prince: warning: bad argument
prince: warning: bad argument
prince: used font: Times, Italic
prince: warning: bad argument
prince: used font: Times New Roman, Bold Italic
[cthorman@chris-thormans-mac-pro book]# ../../../prince-6.0r4-macosx/lib/prince/bin/prince -v arialtest.html -o arialtest.pdf
prince: loading XML input: arialtest.html
prince: used font: Arial Narrow, Regular
prince: warning: bad argument
prince: warning: bad argument
prince: used font: Times, Bold
prince: warning: bad argument
prince: warning: bad argument
prince: used font: Times, Italic
prince: warning: bad argument
prince: used font: Times New Roman, Bold Italic
In my Leopard install, the font files for these are in:
/Library/Fonts/Arial Narrow[Bold, Italic, etc.].ttf
I don't know offhand whether these are part of the base Mac OS X nowadays, or are installed with Microsoft Office... the answer might be "both" in Leopard, and perhaps that is the difference?
Any hope for a fix sometime soon? This is blocking a publication I need to update...
Thanks,
-c