unfoldingWord-dev / ts-desktop

translationStudio Desktop App
http://ufw.io/ts
Other
41 stars 29 forks source link

Print to PDF not showing charaters (Myanmar) or proper styling (Amú) #1320

Open richmahn opened 3 years ago

richmahn commented 3 years ago

DoD: Exported PDFs use the font selected by the user.

Using ts-desktop v12.1.1 on Windows, when going to print a project such as Myanmar OBS (https://git.door43.org/mehmboke/my_obs_text_obs), it doesn't show the characters at all as is shown in the Print Preview. Or for languages like Amú (https://git.door43.org/simeonmartin/amu_obs_text_obs) the font does not display correctly (see last two screenshots in this image, showing the print preview and then the actual PDF, noting the underlines under the o's and a's):

image

It seems to not be using the Target Language Font selected in the settings, nor uses any of the fall-back system fonts like the Print Preview page uses.

Make sure these boxes are checked before submitting your issue -- thank you!

richmahn commented 3 years ago

Actually not a problem. Just need to install the desired font as a system font and then select it as the Target Translation Font. PDF generation/viewing can't use system fonts, yet the app itself can guess, even per character, what font to use. This is why throughout the tS app and even in the print-preview it looks good, but not in the PDF. See this document for how to install and use system fonts in tS-Desktop: https://forum.door43.org/t/translationstudio-desktop-installing-system-fonts-print-to-pdf-font-issue/866