Running Prince 14.1 on Ubuntu 16 using the sample.html file below yields a pdf that uses Helvetica Bold instead of the specified Helvetica Normal. We haven't modified fonts.css.
The same sample.html file yields a pdf (correctly) using Helvetica Normal with Prince 13.5 on the same machine.
Also the pdf generates correctly on MacOS using Prince 14 and 13
Debug logging shows:
Full log: debug_log_prince_14_1.txt
sample.html
The same sample.html file yields a pdf (correctly) using Helvetica Normal with Prince 13.5 on the same machine.
Also the pdf generates correctly on MacOS using Prince 14 and 13
Debug logging shows:
/prince/versions/14/lib/prince/bin/prince -vvv --debug ~/tmp/sample.html
...
prince: debug: font request: Helvetica
prince: debug: font scan: helvetica
prince: debug: found font: helvetica Regular
prince: debug: duplicate font: helvetica Regular
prince: debug: found font: helvetica Italic
prince: debug: found font: helvetica Italic
prince: debug: font scan: helvetica, 4 matches
...
prince: loading font: /usr/share/fonts/truetype/osxcorefonts/HelveticaBold.ttf
prince: debug: loaded resource: /usr/share/fonts/truetype/osxcorefonts/HelveticaBold.ttf
prince: debug: loaded resource: type: no
prince: used font: Helvetica, Bold
Full log: debug_log_prince_14_1.txt
sample.html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<style type="text/css">
*,
*[style] {
font-weight: normal !important;
}
body, html{
font-size:9.5pt;
line-height:12pt;
font-family: Helvetica;
font-weight: normal;
}
</style>
</head>
<body>
<div>Testing 123...</div>
</body>
</html>