WebKit レポート.makoファイルに問題があります。私が使用するとき:
<html>
<head>
<style type="text/css">${css}</style>
</head>
<body>
% for o in objects:
<p style="font-family:'Free 3 of 9';">${o.name}</p>
% endfor
</body>
</html>
.makoファイルでは動作していますが、使用すると
<html>
<head>
<style type="text/css">${css}</style>
</head>
<body>
% for o in objects:
<p class="barcode39">${o.name}</p>
% endfor
</body>
</html>
data.xmlこのクラスはreport_webkitのフィールド「css」で宣言されています
.barcode39 {
font-family: 'Free 3 of 9';
font-size: 36;
color: red;
}
font-family: 'Free 3 of 9'動作しません。私が別のものを使用するfont-familyと、それは機能しています。何が問題なのですか?
私はフォントを入れて/usr/share/fonts/truetype実行しfc-cache -fvました。前もって感謝します。