Tuesday, 17 August 2021

Font Mapping in BI Publisher

We were facing an issue where a particular font(Kunstler Regular) which was added in the RTF template. Though the font was visible in the RTF template, it was not visible in the final PDF report generated. To resolve this issue, the below steps need to be done.

  • Pull out the font's .TTF file from C:/Windows/Fonts into a separate folder. If the font family has multiple fonts, then many files will be copied into your destination folder. In my case it was just font(KUNSTLER.ttf file)
  • In BIP navigate to Administration-Manage BI Publisher-Font Mappings
  • Choose the above file under Manage Custom Fonts and click on upload
  • Then under RTF templates click on Add Font Mapping
  • Give Base Font as the name of the font, it should be same as the name which is visible in MS word(else it didn't work for me)
  • Select target font, which will the above uploaded file name and click on Apply
  • Once this is done, in BIP navigate to Administration-Manage BI Publisher-Manage Cache and click on Clear Object Cache.

Once these steps are done and the report was re-run, the PDF output also had displayed the Kunstler Regular font.

No comments:

Post a Comment