Issue with Font :- "Leelawadee UI"

Hi,
When we try to convert a document with the ‘Leelawadee UI’ font to PDF, we encounter some issues in characters. Can you please suggest something here?

@sonamsinha

Can you please provide more details about the specific issues you are encountering with the ‘Leelawadee UI’ font during the conversion to PDF?

We are noticing blank spaces for a few characters of the Cambodian Language Font

Hello @sonamsinha ,

Thank you for contacting us.
The conversion mechanism cannot add fonts to the output document if they are not installed on the system. In such cases, the fonts are replaced with available ones.
To ensure proper conversion in your case, the Leelawadee UI font should be installed on your system. Alternatively, you can place the font in a separate folder and provide the path using the following code:

ConverterSettings converterSettings = new ConverterSettings();
converterSettings.setFontDirectories(Arrays.asList("your font folder"));
Converter converter = new Converter("your document path", loadOptions, converterSettings);

If the font is installed but the issue persists, please share a sample file along with the code you’re using.

Hi @evgen.efimov Can you please share font file ?

leelawadee.zip (55.3 KB)
I used this file and its not working for me

Hello @sonamsinha ,

Please share your source file so that we can analyze it and assist you in resolving this issue.

Hi @evgen.efimov
test cambodian (1).docx (465.4 KB)

We have attached the Leelawadee UI font. Could you please recheck the conversion after installing it?
Additionally, we have attached the resulting PDF file. Could you confirm if this is the result you were expecting, or do you have any feedback?
leelawadee-ui.zip (193.2 KB)
output.pdf (56.8 KB)

Hi @evgen.efimov The pdf you have shared is also not accurate.

Cambodian Text Script:-

ចំណាំ៖ បើសិនអ្នកត្រូវការជំនួយ ជាភាសារបស់អ្នក សូមទូរស័ព្ទទៅលេខ ។ ជំនួយ និងសេវា សំរាប់ជនពិការ ដូចជាឯកសារសរសេរជាអក្សរប៊្រែល សំរាប់ជនពិការភ្នែក ឬឯកសារជាអក្សរពុម្ពធំៗ ក៏មានដែរ។ ទូរស័ព្ទមកលេខ ។ សេវាទាំងនេះមិនគិតថ្លៃឡើយ។

Actual Result

Blank spaces for a few characters in the generated document. (Highlighted in Yellow in the below screenshot)

actual.jpeg (22.7 KB)

Expected Result

Full Text Script shall be rendered in the PDF generated

expected.jpeg.png (27.9 KB)

Can you please take a look again?

@sonamsinha ,

Yes, we see that.
Please allow us some more time to investigate, and we will get back to you with the results as soon as possible.

Sure. Thank you @evgen.efimov

Hi Team, As per my understanding if we have the fonts embedded in the document then we need not set the fontDirectory for Conversion and the Pdf should be converted with the correct font.
Here, in this case, we have the font “Leelawadee UI” embedded into the template shared.

Still, the converted pdf has some missing characters. Attaching the screenshot of the FontTable.xml of the document file.
Leelawadee_Embedded.jpg (220.6 KB)

Please let us know how to proceed with this.

Thanks

@sonamsinha ,

We have identified the cause of this issue and will do our best to resolve it as soon as possible.
It has been registered in our tracking system under the reference number CONVERSIONJAVA-2743 for monitoring purposes.
Once the fix is implemented and released, we will notify you.

Hello @kswati2206,

Yes, you are correct regarding the embedded fonts in the document.
However, after a detailed investigation, we have identified an issue specifically related to the shaping of Cambodian glyphs on our side. In other words, the problem is not with the font itself but with the glyphs.

1 Like

Thank you @evgen.efimov .

@sonamsinha ,

You are welcome.

Hi @evgen.efimov Is there any update on this issue?

Hello @sonamsinha ,

This fix will be included in the 25.2 release, which is scheduled for the end of February. However, we will notify you as soon as it is officially released.

Thank you @evgen.efimov for update.

@sonamsinha ,

You are welcome.