Issue
The Cambria Math font does not render correctly in PDFs that contain both Chinese and English characters on the same line.
The issue occurs on Pega Platform 23.1.4 while using the 4.0.19 PD4ML version.
Sample Cambria Math text:
๐.๐.๐. ๐ ๐๐ ๐๐๐๐๐๐ ๐๐๐๐๐ ๐๐๐๐ - ๐๐ข๐ง๐ ๐๐ฉ๐จ๐ซ๐
Symptoms and Impact
The Cambria Math font does not get applied in PDF documents generated using the PD4ML 4.0.19 library.
Steps to reproduce
- Use the following sample Cambria Math text in a non-autogenerated section or a HTML rule: ---
๐.๐.๐. ๐ ๐๐ ๐๐๐๐๐๐ ๐๐๐๐๐ ๐๐๐๐ โ ๐๐ข๐ง๐ ๐๐ฉ๐จ๐ซ๐ - Create a binary file and upload the Cambria Math TTF file. Refer the Cambria Math font family in the HTML rule.
- Include the non-autogenerated section or the HTML rule as a mark up for the case and generate a PDF. Cambria Math font does not render in the PDF document generated.
Root Cause
Cambria Math font has some limitations with the PD4ML 4.0.19 library.
Solution
Apply HFix-C4062.
As a work around, set the pyEnableLigature parameter to False in the pyPDFSettings data transform. This disables ligatures before verifying the Cambria Math font use case.
This issue is planned to be addressed in a future Pega Platform release. Issues are prioritized based on impact, severity, and capacity. The specific release for the fix has not yet been determined. This section will be updated with release details when the fix for this issue is available.