CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Solved: Mailing Labels national characters broken in 3.4.2
Pages: [1]

Author Topic: Solved: Mailing Labels national characters broken in 3.4.2  (Read 813 times)

obiuquido144

  • I post occasionally
  • **
  • Posts: 34
  • Karma: 4
Solved: Mailing Labels national characters broken in 3.4.2
June 11, 2011, 11:30:28 am
The new functionality we got in 3.4.2 as part of CRM-7981 which allows custom mailing label format creation from within the UI is great, but introduces one regression:
National characters (e.g. the Czech ě č ř) are not printed properly since the currently available fonts (Helvetica, Times and Courier) don't support these special characters.
Luckily TCPDF contains the Deja Vu Sans font that is capable of printing these, it just wasn't enabled as part of the recent rewrite.

To fix:
in CRM\Utils\PDF\Label.pdf at line 189 insert
Code: [Select]
            'dejavusans' => ts('Deja Vu Sans (UTF-8)'),
This registers the dejavusans font provided with TCPDF to be available for mailing labels usage.

When porting your custom mailing label from code into the new manager, just select Deja Vu Sans as the label's font if special characters are needed. If you're using the baked in labels you need to update the font in them as well.

Update: created http://issues.civicrm.org/jira/browse/CRM-8281
« Last Edit: June 11, 2011, 11:46:02 am by obiuquido144 »

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Solved: Mailing Labels national characters broken in 3.4.2
June 13, 2011, 01:39:39 am
Thanks, this fix will be part of next 3.4.x/4.0.x release

Kurund
Found this reply helpful? Support CiviCRM

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Solved: Mailing Labels national characters broken in 3.4.2

This forum was archived on 2017-11-26.