You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm encountering an issue with character encoding on Ubuntu, both on 14.04 with pango 1.36.3 and on 16.04 with pango 1.38.1.
When generating an image with chinese characters for example I get this:
My development machine is a Mac, on the latest OS X, with the following version of pango: pango-view (pango) 1.38.1
I generate some JPEG using Google Roboto font, I load the font from a ttf file like this: var font = new Canvas.Font('Roboto', __dirname + '/fonts-roboto/Roboto-Regular.ttf'); font.addFace(__dirname + '/fonts-roboto/Roboto-Regular.ttf', 'normal');
Everything works perfectly on the Mac, I get the font and all the character encoding works (chinese for example), but on Ubuntu the encoding is broken for Chinese (and other non latin) characters.
Any idea what could be wrong?
The text was updated successfully, but these errors were encountered:
Simply install all these font package on Ubuntu: sudo apt-get install fonts-arphic-uming fonts-ipafont-mincho ttf-wqy-zenhei ttf-unfonts-core fonts-takao fonts-dejavu ttf-mscorefonts-installer
Uh oh!
There was an error while loading. Please reload this page.
Hi,
I'm encountering an issue with character encoding on Ubuntu, both on 14.04 with pango 1.36.3 and on 16.04 with pango 1.38.1.
When generating an image with chinese characters for example I get this:
My development machine is a Mac, on the latest OS X, with the following version of pango:
pango-view (pango) 1.38.1
I generate some JPEG using Google Roboto font, I load the font from a ttf file like this:
var font = new Canvas.Font('Roboto', __dirname + '/fonts-roboto/Roboto-Regular.ttf'); font.addFace(__dirname + '/fonts-roboto/Roboto-Regular.ttf', 'normal');
Everything works perfectly on the Mac, I get the font and all the character encoding works (chinese for example), but on Ubuntu the encoding is broken for Chinese (and other non latin) characters.
Any idea what could be wrong?
The text was updated successfully, but these errors were encountered: