Discussion:
[cairo] Subpixel positioning
Matthias Clasen
2018-10-15 17:27:16 UTC
Permalink
Hi,

a while ago, I've spent some time trying to figure out subpixel positioning
for fonts in cairo. The results are here:

https://github.com/matthiasclasen/cairo/commit/f3d186f10a0bc474a1b93fe580b92c1b8149142c

This is using a 4x4 subpixel grid, and applies subpixel positioning
when metrics hinting is turned off. For now, I've only added it to the
image compositor.

Would be great to get something like this into cairo.

Matthias
Behdad Esfahbod
2018-10-15 17:34:03 UTC
Permalink
Thanks Matthias. This looks surprisingly short and good!

I think we should get this in, then:

- Implement it on the Xlib backend,

- Figure out if we want to turn image backend's / Xlib backend's default
font options to disable metrics-hinting. I'm not sure.

b
Post by Matthias Clasen
Hi,
a while ago, I've spent some time trying to figure out subpixel positioning
https://github.com/matthiasclasen/cairo/commit/f3d186f10a0bc474a1b93fe580b92c1b8149142c
This is using a 4x4 subpixel grid, and applies subpixel positioning
when metrics hinting is turned off. For now, I've only added it to the
image compositor.
Would be great to get something like this into cairo.
Matthias
--
cairo mailing list
https://lists.cairographics.org/mailman/listinfo/cairo
--
behdad
http://behdad.org/
Matthias Clasen
2018-10-15 17:43:46 UTC
Permalink
I forgot to mention that there is a small pango change thats needed as well:

https://gitlab.gnome.org/GNOME/pango/commit/a89ff5479c7b11891acecef35f9c5dbad2dec78e

to stop pango rounding positions that it passes to cairo.

Loading...