Dear friends
I'm a developer and i love Phantom.js, happy to join this group
I have a problem with an app at the moment, quite desperate after a few weeks of trying to find a solution so this forum is my last hope, i hope you may be able to maybe help me
I have a Linux Centos 6 server with Phantom.js installed
I have a web-app where users mix text and images and then i use Phantom.js to render a Png or Jpeg version of their design
The webfonts i use are Google Webfonts, for example keania_oneregular or dr_sugiyamaregular, etc
The problem i have is this
- I test the webapp from a Windows 7 Chrome Browser for example, and i render the image at the Linux CentOS server
In the rendered image the Quality of the fonts is perfect, i love it, superb quality. But weird things happen in the kerning between letters and sizings and shapes of the fonts.
I am attaching here 3 images to show you an example of the problems I'm finding
The windows-browser-view.jpg contains a capture from a chrome windows 7 browser
the linux-render-view.jpg is a render done with phantom.js at my linux server
the picture odd-differences.jpg shows some of the places where its easy to see the problems
look at the word "Javito" , and the spacing between letters "i" and "t" , in the windows browser is normal,
in the linux rendering for some reason that space becomes much larger, but not in the other letters of that word, just in those 2! :)
now look at the word "amigo" , and the letters "g" and "o" , the distance between them again becomes larger in the linux render,
but again oddly this doesnt happen between all the letters of that word just in some of them! :)
so what is really odd is that this happens between some of the letters in a word, not between all of them, it is not consistent, it seems random
so these are my problems, weird differences in Kerning and sizing in the fonts, not the quality of the fonts which is great for me, but these weird differences
By the way both these fonts are Google Fonts downloaded from Google and loaded via CSS3 using
for example
@font-face {
font-family: 'keania_oneregular';
src: url('fonts/keaniaone-regular-webfont.eot');
src: url('fonts/keaniaone-regular-webfont.eot?#iefix') format('embedded-opentype'),
url('fonts/keaniaone-regular-webfont.woff') format('woff'),
url('fonts/keaniaone-regular-webfont.ttf') format('truetype'),
url('fonts/keaniaone-regular-webfont.svg#keania_oneregular') format('svg');
font-weight: normal;
font-style: normal;
}
Now, i am aware that different OS render fonts in different ways, I totally understand that. Precisely because of that at the beginning i thought maybe
this is an issue that cannot be solved and i should give up
But then i found this great web app
http://mural.ly that also uses web fonts and html5, and allows to export a Jpeg and i made tests and the results exported from their server matches exactly with what i see in the browser, that's why
i thought there must be a solution to this
I also read about Infinality for Linux
Could infinality solve this problem in the rendering of the fonts?
I hope you can help me as I love Phantom.js and the rendering quality is great, but i cannot understand these very weird almost random kerning and shape and sizing problems in the fonts when rendering them on the server
compared to the windows browser (i still have to test from a mac browser also)
thing is, if
mural.ly manages to export a jpeg that matches perfectly with what i see from a client browser then hopefully there should be a solution to this issue
thank you so much for any help and advice
best wishes
Jav :)