This forum has been archived. All content is frozen. Please use KDE Discuss instead.
Please use bugs.kde.org for bug reports or feature requests. Development related questions should be directed to the okular-devel mailing list.

Okular - Subpixel hinting

Tags: None
(comma "," separated)
lupus
Registered Member
Posts
5
Karma
0

Okular - Subpixel hinting

Thu Apr 23, 2009 3:56 pm
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!
giddie
Registered Member
Posts
2
Karma
0

RE: Okular - Subpixel hinting

Thu May 21, 2009 10:55 am
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.
lupus
Registered Member
Posts
5
Karma
0

RE: Okular - Subpixel hinting

Thu Jun 18, 2009 10:04 pm
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
giddie
Registered Member
Posts
2
Karma
0

RE: Okular - Subpixel hinting

Fri Jun 19, 2009 8:18 am
lupus wrote: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?


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
lupus
Registered Member
Posts
5
Karma
0

RE: Okular - Subpixel hinting

Sat Jun 20, 2009 7:31 pm
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.


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Google [Bot], Sogou [Bot], Yahoo [Bot]