Yoohoo-Plugins / pmpro-pdf-invoices

PMPro PDF Invoices Plugin
GNU General Public License v2.0
4 stars 3 forks source link

Polish characters in pdf #42

Open Dares89 opened 10 months ago

Dares89 commented 10 months ago

Hello

How I change encoding of pdf file becouse instead od showing "łśćżź" I see "?" characters. How to fix this problem?

andrewlimaza commented 7 months ago

Thanks for reaching out @Dares89, you will need to set your HTML template to use a font that supports these characters. I'd like to work on a fix in an upcoming release but for now you may be able to try importing Open Sans directly into your HTML template.

For example:

<link href='http://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700&subset=latin,latin-ext' rel='stylesheet' type='text/css' />
<style>
        h1, p, table, span, div {
            font-family: 'Open Sans',monospace;
        }
 </style>