When including a font in a document via @font-face rules, it is possible to specify which attributes a given font is supposed to have. For instance, I can define a decorative font and say it is already supposed to be bold, so Prince or other browsers should not try to embolden it again. This is apparently not honoured by Prince:
(the Crom font is available here)
This is maybe not the best example, but the differences between bold and normal can be seen in the character corners, and the italic slant can be appreciated as well.
Am I maybe mistaken in the way I believe it should work?
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:ops="http://www.idpf.org/2007/ops">
<head>
<title>Test</title>
<style>
h2 { margin: 1em 0 0 0; }
span { font-size: 50px; }
p { margin: 0; }
@font-face {
font-family: "Crom 1";
src: url("Crom_v1.ttf") format("truetype");
}
@font-face {
font-family: "Crom 2";
font-weight: bold;
src: url("Crom_v1.ttf") format("truetype");
}
@font-face {
font-family: "Crom 3";
font-style: italic;
src: url("Crom_v1.ttf") format("truetype");
}
</style>
</head>
<body>
<h2>Normal font</h2>
<p>normal <span style="font-weight: normal">ABC</span></p>
<p>bold <span style="font-weight: bold">ABC</span></p>
<p>italic <span style="font-style: italic">ABC</span></p>
<p>bold italic <span style="font-weight: bold; font-style: italic">ABC</span></p>
<h2>Crom (default definition)</h2>
<p>normal <span style="font-family: 'Crom 1'; font-weight: normal">ABC</span></p>
<p>bold <span style="font-family: 'Crom 1'; font-weight: bold">ABC</span></p>
<p>italic <span style="font-family: 'Crom 1'; font-style: italic">ABC</span></p>
<p>bold italic <span style="font-family: 'Crom 1'; font-weight: bold; font-style: italic">ABC</span></p>
<h2>Crom (defined as bold)</h2>
<p>normal <span style="font-family: 'Crom 2'; font-weight: normal">ABC</span></p>
<p>bold <span style="font-family: 'Crom 2'; font-weight: bold">ABC</span> (expected <span style="font-family: 'Crom 2'; font-weight: normal">ABC</span>)</p>
<p>italic <span style="font-family: 'Crom 2'; font-style: italic">ABC</span></p>
<p>bold italic <span style="font-family: 'Crom 2'; font-weight: bold; font-style: italic">ABC</span> (expected <span style="font-family: 'Crom 2'; font-style: italic">ABC</span>)</p>
<h2>Crom (defined as italic)</h2>
<p>normal <span style="font-family: 'Crom 3'; font-weight: normal">ABC</span></p>
<p>bold <span style="font-family: 'Crom 3'; font-weight: bold">ABC</span></p>
<p>italic <span style="font-family: 'Crom 3'; font-style: italic">ABC</span> (expected <span style="font-family: 'Crom 3'; font-weight: normal">ABC</span>)</p>
<p>bold italic <span style="font-family: 'Crom 3'; font-weight: bold; font-style: italic">ABC</span> (expected <span style="font-family: 'Crom 3'; font-weight: bold">ABC</span>)</p>
</body>
</html>
(the Crom font is available here)
This is maybe not the best example, but the differences between bold and normal can be seen in the character corners, and the italic slant can be appreciated as well.
Am I maybe mistaken in the way I believe it should work?