[Koha-bugs] [Bug 12832] Basketgroup printing doesn't support no latin chars

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Jan 7 16:11:26 CET 2016


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12832

Dobrica Pavlinusic <dpavlin at rot13.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dpavlin at rot13.org

--- Comment #3 from Dobrica Pavlinusic <dpavlin at rot13.org> ---
I don't think that it's enough to just add utf-8 encoding to $pdf->corefont.

Just as with labels, we need to use true type fonts here to support all
available utf-8 characters (otherwise western utf-8 characters work, but
Croatian for example don't).

Replacing

$pdf->corefont("Times", -encoding => "utf8")

with something like

$pdf->ttfont('/usr/share/fonts/truetype/ttf-dejavu/DejaVuSerif.ttf')

will nicely fix this problem (but also somewhat break tables which are created
using PDF::Table, I will have to investigate this a bit more).

But, now I'm wondering if we should use same <ttf> mapping from koha-conf.xml
which we use for labels (if available)?

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.


More information about the Koha-bugs mailing list