woocommerce / sensei-certificates

Hi, I'm the Certificates extension for Sensei.
GNU General Public License v2.0
34 stars 23 forks source link

Non-latin fonts not supported #24

Closed danjjohnson closed 10 years ago

danjjohnson commented 10 years ago

Greek text is displayed on the PDF as ??????????

http://cld.wthms.co/K7n4 http://cld.wthms.co/IWJa

Looks like we have to manually add support for languages with non-standard fonts - http://www.fpdf.org/en/tutorial/tuto7.htm

https://woothemes.zendesk.com/agent/#/tickets/140748

danjjohnson commented 10 years ago

Also had a request for Mongolian - https://woothemes.zendesk.com/agent/#/tickets/144655

Would be good if we could cover most/all languages somehow.

danjjohnson commented 10 years ago

@hlashbrooke Any idea when you might get chance to look into adding these fonts? This user is looking for an update - https://woothemes.zendesk.com/agent/#/tickets/140748

hlashbrooke commented 10 years ago

The problem with this is that the PDF library needs to support the fonts. As far as I know, we can load any font file in there, but we need to have the font file to do that. I'll see if I can find open source font files for various languages and will also consult the docs for the PDF library that we're using. I'll get back to you once I've had some time to look into it.

danjjohnson commented 10 years ago

Cheers Hugh, I found some free greek fonts via Google Webfonts, and tried to follow the guide to add them - http://www.fpdf.org/en/tutorial/tuto7.htm - but I couldn't get it to work.

danjjohnson commented 10 years ago

@hlashbrooke any closer to an ETA for this?

hlashbrooke commented 10 years ago

Not yet - will look into it when I get a chance.

danjjohnson commented 10 years ago

@hlashbrooke any chance of an ETA on this any time soon? If not, the customer is going to hire a developer to help implement Greek language support on their certificates.