Come forzare la visualizzazione di un font diverso (es. Helvetica su iOS, Arial su Windows) in un PDF non incorporando i caratteri

Sto cercando di creare un PDF che, a seconda del sistema operativo, utilizzi un font diverso. Visto che mi è capitato di scaricare da Internet un PDF che veniva visualizzato con con Arial su Windows e con Helvetica su iOS/macOS (anche su siti di drive, OneDrive ) vorrei creare un PDF che venga visualizzato con Arial su Windows e con Helvetica su iOS/macOS, sfruttando i meccanismi di fallback dei font di sistema (senza incorporare i font nel PDF).

Ho provato a: • Scrivere il documento in Arial da Word su Windows; • Scrivere il documento in Helvetica da Word su Windows; • Disattivare l’incorporamento dei font nel salvataggio PDF su “Word”;

Tuttavia, su iOS , in app come Onedrive, il PDF continua a visualizzarsi in Arial

C’è un modo per: Evitare che iOS usi Arial se presente? Far sì che venga usato Helvetica come fallback?

mi interessa anche capire se si può impedire ad iOS di usare Arial in lettura PDF.

Qualcuno ha affrontato un caso simile o conosce un modo affidabile per ottenere questo comportamento cross-platform?

Answered by DTS Engineer in 837523022

There's no supported way for you to specify fallback fonts in PDF files with the APIs currently available. If you'd like us to consider adding the necessary functionality, please file an enhancement request using the Feedback Assistant. Once you file the request, please post the Feedback number here.

Though with that said, it's not clear that the PDF spec allows for specifying fallback fonts in PDF files as you have described so this may not be possible. The operating system itself provides font substitution in cases where the specified font does not include a character, but that is not PDF file specific. The PDF spec does mention 14 standard fonts that they recommend PDF viewers support. Perhaps if you stuck to those you can have a better chance of your PDF files working everywhere you want them to.

If you're not familiar with how to file enhancement requests, take a look at Bug Reporting: How and Why?

There's no supported way for you to specify fallback fonts in PDF files with the APIs currently available. If you'd like us to consider adding the necessary functionality, please file an enhancement request using the Feedback Assistant. Once you file the request, please post the Feedback number here.

Though with that said, it's not clear that the PDF spec allows for specifying fallback fonts in PDF files as you have described so this may not be possible. The operating system itself provides font substitution in cases where the specified font does not include a character, but that is not PDF file specific. The PDF spec does mention 14 standard fonts that they recommend PDF viewers support. Perhaps if you stuck to those you can have a better chance of your PDF files working everywhere you want them to.

If you're not familiar with how to file enhancement requests, take a look at Bug Reporting: How and Why?

Come forzare la visualizzazione di un font diverso (es. Helvetica su iOS, Arial su Windows) in un PDF non incorporando i caratteri
 
 
Q