Re: Empty Print dialog with custom font
Posted: Thu Feb 26, 2026 2:02 pm
Hello,
Our HTML tag mode is currently implemented in a simplified manner: letter width is measured separately for each character. This works perfectly for simple European languages.
Problems arise with Eastern languages, where the appearance of a letter depends on its position in the word and the surrounding letters.
To improve the handling of Arabic languages, we used a method of replacing glyph forms according to a static, predefined table. With this method, the width of a line is calculated more accurately.
But this is for universal fonts. If special fonts are used for a specific language, these ready-made forms are often not available, and all replacements are made based on internal font tables (‘GSUB’ in TrueType fonts).
In this case, the width is calculated incorrectly, with large gaps.
We need time to investigate the issue with exporting glyphs to PDF in more detail.
Thank you.
#19592
Our HTML tag mode is currently implemented in a simplified manner: letter width is measured separately for each character. This works perfectly for simple European languages.
Problems arise with Eastern languages, where the appearance of a letter depends on its position in the word and the surrounding letters.
To improve the handling of Arabic languages, we used a method of replacing glyph forms according to a static, predefined table. With this method, the width of a line is calculated more accurately.
But this is for universal fonts. If special fonts are used for a specific language, these ready-made forms are often not available, and all replacements are made based on internal font tables (‘GSUB’ in TrueType fonts).
In this case, the width is calculated incorrectly, with large gaps.
We need time to investigate the issue with exporting glyphs to PDF in more detail.
Thank you.
#19592