Answers.Body: <p>the rest of the characters are ordinary English characters. I did the same exercise again, but I use droidsansfallback instead of of droidsansfallbackFull, it is WORKING now, Thanks for your help!</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-05-24T18:39:17.497Z
Answers.LastActivityDate: 2023-05-24T18:39:17.497Z
Answers.UserDisplayName: Learn CiviCRM
Answers.Body: <p>First, your setting needs to be an array:</p>
  <p>`$civicrm_setting['CiviCRM Preferences']['additional_fonts'] = array('droidsansfallbackfull');</p>
  <p>Then you'll need to actually set the font for the label at Administer - Communications - Label Formats. Edit the label type you're using and set the font in there.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-05-24T11:20:23.330Z
Answers.Text: Thanks, it works. The characters is showing what I expected, but the rest of the characters are showing as square box in the label. :(
Answers.UserDisplayName: Learn CiviCRM
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-05-24T17:51:06.817Z
Answers.Text: Can you explain what "rest of characters" means?
Answers.UserDisplayName: Demerit
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-05-23T21:26:31.860Z
Answers.LastActivityDate: 2023-05-23T21:26:31.860Z
Answers.UserDisplayName: Demerit
Body: <p>By using TCPDF_FONTS::addTTFfont(&quot;/usr/share/fonts/truetype/droid/DroidSansFallbackFull.ttf&quot;, &quot;TrueTypeUnicode&quot;);' I have successfully created the following three files droidsansfallbackfull.ctg.z, droidsansfallbackfull.z, and droidsansfallbackfull.php and copied into directory /var/www/html/wordpress/wp-content/plugins/civicrm/civicrm/vendor/tecnickcom/tcpdf/fonts.</p>
  <p>I have added the following
  $civicrm_setting['CiviCRM Preferences']['additional_fonts'] = 'droidsansfallbackfull'; in civicrm.settings.php. The characters have printed as square box, can someone please help, many thanks.</p>
  
Tags: <pdf><address-labels>
Title: How to tell CiviCRM used the new font for PDF mail label printing?
ThreadText: # How to tell CiviCRM used the new font for PDF mail label printing?
  
  (Asked by: username_0 on 2023-05-23)
  
  By using TCPDF\_FONTS::addTTFfont("/usr/share/fonts/truetype/droid/DroidSansFallbackFull.ttf", "TrueTypeUnicode");' I have successfully created the following three files droidsansfallbackfull.ctg.z, droidsansfallbackfull.z, and droidsansfallbackfull.php and copied into directory /var/www/html/wordpress/wp-content/plugins/username_0/username_0/vendor/tecnickcom/tcpdf/fonts.
  
  I have added the following
  $username_0\_setting['username_0 Preferences']['additional\_fonts'] = 'droidsansfallbackfull'; in username_0.settings.php. The characters have printed as square box, can someone please help, many thanks.
  
  **Tags:** pdf, address-labels
  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_0 on 2023-05-24. Score: 0
  
  the rest of the characters are ordinary English characters. I did the same exercise again, but I use droidsansfallback instead of of droidsansfallbackFull, it is WORKING now, Thanks for your help!
  
  
  ---
  
  ### Answer by username_1 on 2023-05-23. Score: 0
  
  First, your setting needs to be an array:
  
  `$username_0\_setting['username_0 Preferences']['additional\_fonts'] = array('droidsansfallbackfull');
  
  Then you'll need to actually set the font for the label at Administer - Communications - Label Formats. Edit the label type you're using and set the font in there.
  
  > **Comments:**
  > **username_0**: Thanks, it works. The characters is showing what I expected, but the rest of the characters are showing as square box in the label. :(  
  > **username_1**: Can you explain what "rest of characters" means?  
  
  ---
  
  