--
You received this message because you are subscribed to a topic in the Google Groups "phantomjs" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/phantomjs/ph0m-9rNTjY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to phantomjs+...@googlegroups.com.
Visit this group at http://groups.google.com/group/phantomjs.
For more options, visit https://groups.google.com/groups/opt_out.
i have installed Xvfb on my centos 6, to test slimerjs, and when i try to create a screen, it comes back with this strange font error, any idea how to fix it?Xvfb :99 -ac -screen 0 1024x768x16
Initializing built-in extension Generic Event Extension
Initializing built-in extension SHAPE
Initializing built-in extension MIT-SHM
Initializing built-in extension XInputExtension
Initializing built-in extension XTEST
Initializing built-in extension BIG-REQUESTS
Initializing built-in extension SYNC
Initializing built-in extension XKEYBOARD
Initializing built-in extension XC-MISC
Initializing built-in extension XINERAMA
Initializing built-in extension XFIXES
Initializing built-in extension RENDER
Initializing built-in extension RANDR
Initializing built-in extension COMPOSITE
Initializing built-in extension DAMAGE
Initializing built-in extension MIT-SCREEN-SAVER
Initializing built-in extension DOUBLE-BUFFER
Initializing built-in extension RECORD
Initializing built-in extension DPMS
Initializing built-in extension X-Resource
Initializing built-in extension XVideo
Initializing built-in extension XVideo-MotionCompensation
Initializing built-in extension SELinux
[dix] Could not init font path element catalogue:/etc/X11/fontpath.d, removing from list!
[dix] Could not init font path element built-ins, removing from list!
Fatal server error:
could not open default font 'fixed'
On Thu, Aug 29, 2013 at 11:25 AM, Javier Ideami <ide...@gmail.com> wrote:
after more research conclusion is clear, SlimerJS should be the answer to solve the problems, i need to install it on centos and try it, cross fingers :)On Thu, Aug 29, 2013 at 10:30 AM, Javier Ideami <ide...@gmail.com> wrote:so after much investigations, i found a linux expert and what we found out is that if we run native firefox on centos there are no problems, no artifacts and it looks great, image attached,instead the artifacts seem to be coming from the way phantom.js renders things, which is a real pity, is there any way to fix that? this is what the expert also wrote to me"i think what the problem is that phantom is using ghostscript, like all other free pdf generators that I have ever seen do, and there are a couple of things happening.
Its funny that script with phantom is called rasterizer because, from my viewpoint anyway, converting a pixel bitmap, the screen, into something more akin to a vector graphic, postscript, is opposite. (pdf is basically compressed/encapsulated postscript). If it were true postscript, like the file I will attach, it would probably be ok, but ghostscript is not postscript. Adobe/Apple/et.al. probably put million(s) of man hours in on it. Postscript saved Apple from extinction.
So for one, you are picking up artifacts of imperfect conversion from the bitmap to the page description language. And then its substituting the free gs character outlines for the mega-dollar adobe versions. Remember Adobe Type Manager?
When I think about it in that light, it almost seems to become familiar. Get some nice raster (png,bmp,tiff) files and convert them with gs and see if they don't have the same artifacts. "
image attached showing that render on native firefox on centos linux works great without artifactsOn Thu, Aug 29, 2013 at 2:18 AM, Javier Ideami <ide...@gmail.com> wrote:
hi friendsi have some new interesting informationi did a test outside of my web app and i was very surprised becauseresults came out very similarlinux render: http://volandino.com/fonts/capture.phpbetter than inside my app, how is this possible i thought,i just noticed some distorsions in some shapes, but not that much,see for example the Letters O on some words have some odd cutoutsthen i tried adding more css3 scale transformsand now the distorsion in shape of word is much more clearWhat is interesting is that the first versions above are quite acceptable,it may be that the css3 transforms in my web app are making the problem worsedo you have any data on how css3 transforms are affecting the font rendering on Phantom.js?thank you very muchJav
--
You received this message because you are subscribed to the Google Groups "phantomjs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to phantomjs+...@googlegroups.com.