fredrikcarno / flyerpic-backend

Backend of e-commerce platform for photographers
0 stars 0 forks source link

Front-rendering issue on Ubuntu #15

Open electerious opened 9 years ago

electerious commented 9 years ago

Image

This could help:

<match target="font">
 <edit name="antialias" mode="assign">
  <bool>true</bool>
 </edit>
 <edit name="rgba" mode="assign">
  <const>none</const>
 </edit>
 <edit name="hinting" mode="assign">
  <bool>false</bool>
 </edit>
 <edit name="autohint" mode="assign">
  <bool>false</bool>
 </edit>
 <edit name="hintstyle" mode="assign">
  <const>hintnone</const>
 </edit>
</match>

http://www.kilobitspersecond.com/2009/04/17/ubuntu-font-hinting-you-a-cautionary-tale/

I've got the same problem. What I've found out is that you can do some font config tuning to get it better. But Phantom 1.9 seems to ignore it. Phantom 2 however does not. http://en.wikipedia.org/wiki/Fontconfig

electerious commented 9 years ago

@fredrikcarno I'm giving up :( I tried an amount of things with tons of pdfs, but non of them are working. I fixed the layout, so everything looks good again, expect the font which still isn't as good as os OS X. There are some ways to tweak the rendering, but Phantom 1.9 ignores this settings. Will give it another try when Phantom 2 has been released. I think they should be ready when we start with out v2. Currently there isn't something I can do about it. The only help I got from posting this issues on StackOverflow, GitHub Phantom, Mailing-list Phantom is shown above and doesn't help. Switching to Phantom 2 now isn't a solution either, as it's still unstable and in development.

electerious commented 9 years ago

https://github.com/fredrikcarno/flyerpic-backend/commit/e6435ebc596ac719ddd62075db962e01b14c4b64

fredrikcarno commented 9 years ago

No worries, i have a pdf without codes that i can print codes on for testing. Around the hollday season there are just a few photographers that need a pdf witout codes mabye we could do that on your comp?

Lets wait until phantom.js is 2.0 (the issue is raised woth them and is on the 2.0roadmap? Right)

In the mean time mabye put an experemental banner on the flyer generator or let it go to info@flyerpic and ill sort it out for them

electerious commented 9 years ago

I guess that no one will actually notice that there's something wrong with the font as they haven't seen the better looking flyers. It works and the layout fits, and that's most important. So I think we can just be quiet and everything will be ok :D

It doesn't seem to be an Phantom issue, it's just that the most linux systems font rendering is ugly. However, it looks like Phantom 2 supports a way to tweak them and that's what I think will help and fix our problem.