Support Article
Inline font does not reflect when generating PDF
SA-48819
Summary
Inline font does not reflect when generating a PDF using the HTMLtoPDF activity.
Error Messages
Not Applicable.
Steps to Reproduce
- Specify the fonts directory and embed fonts as parameters
- Run HTMLToPDF activity with the embedded fonts mentioned as a font-family within an inline style
Root Cause
An issue in the custom application code or rules. There were two font files that conflicted with one another. They both had the same internal font name inside the ttf file. This resulted in incorrect auto-generation of the font configuration file.
Resolution
Perform the following local-change:- Merge the desired content of the two font files and reference only the updated merged file
- Or, update one of the files with a different internal font name to avoid the conflict
Published February 13, 2018 - Updated October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.