Answers.Body: <p>It's because it's using Helvetica font which doesn't have unicode characters - if you can use Deja Vu Sans or another font that has unicode it should work.</p>
  
  <p>IGNORE rest of answer below. As per comments Cesar found that under Administer - Communications - Label Formats you can change the font in there.</p>
  
  <hr>
  
  <p>You can try to hack CRM/Utils/PDF/Label.php to hardcode the font: <a href="https://github.com/civicrm/civicrm-core/blob/5.20.3/CRM/Utils/PDF/Label.php#L180" rel="nofollow noreferrer">https://github.com/civicrm/civicrm-core/blob/5.20.3/CRM/Utils/PDF/Label.php#L180</a></p>
  
  <p>I'm not sure the right spelling to get the font. If you look in vendor/tecnickcom/tcpdf/fonts/dejavusans.php it seems like it might be <code>DejaVuSans</code>, without spaces.</p>
  
  <p>You can also try this instead:</p>
  
  <ol>
  <li>Copy vendor/tecnickcom/tcpdf/config/tcpdf_config.php somewhere, e.g.
  /usr/local/tcpdf/tcpdf_config.php</li>
  <li>Edit the line inside it for PDF_FONT_NAME_MAIN so it reads <code>define('PDF_FONT_NAME_MAIN', 'dejavusans');</code> (again I'm not sure of the exact spelling).</li>
  <li>In civicrm.settings.php add these lines:</li>
  </ol>
  
  <pre><code>define('K_TCPDF_EXTERNAL_CONFIG', TRUE);
  require_once('/usr/local/tcpdf/tcpdf_config.php');
  </code></pre>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-12-31T16:20:47.627Z
Answers.Text: Hello, thanks! 
  
  Just now I was trying it, the problem, It does not seem good practice to directly modify the core file, I would like to find a hook that I can access without modifying Label.php
  
  I found this hook but I can't modifying the language:
  https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_alterMailingLabelParams/ 
  
  Thanks for your help.
Answers.UserDisplayName: Cesar
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-12-31T16:56:08.830Z
Answers.Text: I've updated answer with another thing to try that doesn't involve hacking core. And that hook looks like it only allows modifying certain things but not the font.
Answers.UserDisplayName: Demerit
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-12-31T17:05:08.153Z
Answers.Text: Thanks mate, I found other solution, the admin panel for configure this:
  civicrm/admin/labelFormats?reset=1&action=browse 
  I think is better solution for this. I hope it helps more people in the future and dont spend more time. 
  Thanks for your help.
Answers.UserDisplayName: Cesar
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-12-31T17:15:10.253Z
Answers.Text: Ahh under Communications. I see.
Answers.UserDisplayName: Demerit
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-12-31T17:42:05.570Z
Answers.Text: I made a lab ticket suggesting Deja Vu be the default font for mailing labels: https://lab.civicrm.org/dev/core/issues/1502
Answers.UserDisplayName: Demerit
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-12-31T16:08:43.687Z
Answers.LastActivityDate: 2019-12-31T17:17:19.080Z
Answers.LastEditDate: 2019-12-31T17:17:19.080Z
Answers.UserDisplayName: Demerit
Body: <p>Im trying to "make mailing labels" with contacts with names in Bosnian and CiviCRM cannot create it.</p>
  
  <p>Example:</p>
  
  <ul>
  <li>Correct: Antolović</li>
  <li>CiviCRM prints: Antolovi?</li>
  </ul>
  
  <p>Instead, CiviCRM shows it correctly in most parts of the CRM, for example
  print/merge document in actions of contact summary view.</p>
  
  <p>Any suggestions? </p>
  
  <p>Tx!</p>
  
Tags: <pdf><printing>
Title: "Make Mailing Labels" not working for Bosnia language
ThreadText: # "Make Mailing Labels" not working for Bosnia language
  
  (Asked by: username_0 on 2019-12-31)
  
  Im trying to "make mailing labels" with contacts with names in Bosnian and CiviCRM cannot create it.
  
  Example:
  
  * Correct: Antolović
  * CiviCRM prints: Antolovi?
  
  Instead, CiviCRM shows it correctly in most parts of the CRM, for example
  print/merge document in actions of contact summary view.
  
  Any suggestions?
  
  Tx!
  
  **Tags:** pdf, printing
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2019-12-31. Score: 3
  
  It's because it's using Helvetica font which doesn't have unicode characters - if you can use Deja Vu Sans or another font that has unicode it should work.
  IGNORE rest of answer below. As per comments username_0 found that under Administer - Communications - Label Formats you can change the font in there.
  
  You can try to hack CRM/Utils/PDF/Label.php to hardcode the font: https://github.com/civicrm/civicrm-core/blob/5.20.3/CRM/Utils/PDF/Label.php#L180
  I'm not sure the right spelling to get the font. If you look in vendor/tecnickcom/tcpdf/fonts/dejavusans.php it seems like it might be DejaVuSans, without spaces.
  You can also try this instead:
  
  Copy vendor/tecnickcom/tcpdf/config/tcpdf_config.php somewhere, e.g.
  /usr/local/tcpdf/tcpdf_config.php
  Edit the line inside it for PDF_FONT_NAME_MAIN so it reads define('PDF_FONT_NAME_MAIN', 'dejavusans'); (again I'm not sure of the exact spelling).
  In civicrm.settings.php add these lines:
  
  define('K_TCPDF_EXTERNAL_CONFIG', TRUE);
  require_once('/usr/local/tcpdf/tcpdf_config.php');
  
  > **Comments:**
  > **username_0**: Hello, thanks!   Just now I was trying it, the problem, It does not seem good practice to directly modify the core file, I would like to find a hook that I can access without modifying Label.php  I found this hook but I can't modifying the language: https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_alterMailingLabelParams/   Thanks for your help.  
  > **username_1**: I've updated answer with another thing to try that doesn't involve hacking core. And that hook looks like it only allows modifying certain things but not the font.  
  > **username_0**: Thanks mate, I found other solution, the admin panel for configure this: civicrm/admin/labelFormats?reset=1&action=browse  I think is better solution for this. I hope it helps more people in the future and dont spend more time.  Thanks for your help.  
  > **username_1**: Ahh under Communications. I see.  
  > **username_1**: I made a lab ticket suggesting Deja Vu be the default font for mailing labels: https://lab.civicrm.org/dev/core/issues/1502  
  
  ---
  
  