]> git.koha-community.org Git - koha.git/commit
Bug 13709 - Patron cards creator utf-8 encoding and ttf fonts broken
authorDobrica Pavlinusic <dpavlin@rot13.org>
Fri, 13 Feb 2015 14:37:12 +0000 (15:37 +0100)
committerChris Cormack <chris@bigballofwax.co.nz>
Sun, 22 Mar 2015 05:25:05 +0000 (18:25 +1300)
commitab60b4a60b2f890a126ac5254f2d7948ee366b53
tree92470fd9e107ea19d263055c9d07e2febf856f62
parent5168af2c2371c19de4453fe7486ffadb8cdbfce1
Bug 13709 - Patron cards creator utf-8 encoding and ttf fonts broken

This change is similar to Bug 8375 which introduced ttf fonts for
labels printing in order to support diacritics and utf-8 encoding,
but this change was never implemented for patron cards.

Test scenario:

1. make sure that you have <ttf> font mapping in koha-conf.xml
2. define partron card layout, template, profile and batch
   (with utf-8 chars, probably in patron firstname or surname)
3. verify that without this patch pdf export file is error message
   Wide character in compress at /usr/share/perl5/PDF/Reuse.pm line 820
4. apply this patch and verify that generated pdf has correct encoding

Signed-off-by: Brendan Gallagher <brendan@bywatersolutions.com>
Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
(cherry picked from commit d149cd1d977ab796edd5da9881f08bac251c54e1)
Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
C4/Patroncards/Patroncard.pm