I have a problem with WebKit report .mako
file. when I use:
<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>
in .mako
file it is working but if I use
<html>
<head>
<style type="text/css">${css}</style>
</head>
<body>
% for o in objects:
<p class="barcode39">${o.name}</p>
% endfor
</body>
</html>
and this class is declared in field "css" of data.xml
in report_webkit
.barcode39 {
font-family: 'Free 3 of 9';
font-size: 36;
color: red;
}
font-family: 'Free 3 of 9'
does not work. If I use another font-family
it is working.
What could be the problem?
I have placed font in /usr/share/fonts/truetype
and also run fc-cache -fv
.
Thanks in advance.
I was facing the same problem and put the font name into single quotes solved my problem. For example:-
style="font-family:'Free 3 of 9';"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With