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
ました。前もって感謝します。