Registered Member
|
Hi.
Is there any way to render text with subpixel hinting in Okular? I'm getting grayscale hinting and it's not as comfortable for me as Adobe Reader for instance. Thanks! |
Registered Member
|
Yes there is! I just finished a patchset that achieves this. Have a look here:
http://lists.freedesktop.org/archives/p ... 04767.html And here's the result: http://content.screencast.com/users/gid ... hthint.png
Last edited by giddie on Thu May 21, 2009 10:56 am, edited 1 time in total.
|
Registered Member
|
Hi. That screenshot looks promising, much better than the default monochrome hinting.
I've tried your patches with poppler-0.10.7 and cairo-1.8.6 (some minor tweaking needed to apply them) but I still get ugly grayscale hinting (tried several PDF files to be sure). What versions did you try them on? Thanks |
Registered Member
|
I have exactly the same versions of Popper and Cairo. My version of Cairo contains the LCD patch (http://aur.archlinux.org/packages/cairo ... lter.patch ). However, I'm guessing you already have a patched Cairo, because I don't think my patches would compile if not. It may be that you're experiencing a bug that's been found in the Cairo backend. It seems that certain embedded fonts use grayscale rendering when they should not. (See the end of this bug comment: https://bugs.freedesktop.org/show_bug.cgi?id=3307#c15 ). The following document ought to render with subpixel rendering. If it doesn't, there must be something else going on: http://chaos.troll.no/~shausman/api-des ... design.pdf |
Registered Member
|
Yes, I was applying the same Cairo patch as you (I'm using gentoo and the cairo-1.8.6 package comes with an older ArchLinux cleartype-like patch, so I replaced it with the one you mention).
I've tried the PDF you linked and I'm still getting greyscale hinting with it. There must be something wrong in my system, although I get subpixel hinting everywhere. I'll look into it. Thanks again.
Last edited by lupus on Sat Jun 20, 2009 9:38 pm, edited 1 time in total.
|
Registered users: bartoloni, Bing [Bot], Google [Bot], Sogou [Bot], Yahoo [Bot]