[cairo] Hairline support in Cairo

Rick Yorgason rick at firefang.com
Wed Aug 21 21:17:36 UTC 2019

Hey everyone,

I just pushed a PR to Inkscape that work in concert with my Cairo PR to 
add hairline support to both of them, and I was hoping to get a little 

I've got a video showing what I'm doing here: 

My Cairo PR is here: 

My Inkscape PR is here: 

What my cairo patch does is add the cairo_set_hairline function to 
specify when things should be drawn as a hairline. On pixel surfaces, 
this usually means 1px lines, no matter what your zoom level (ie, 
transform) is. PS/PDF and some printers (or exotic devices, like laser 
cutters and plotters) have built-in support for representing hairlines.



More information about the cairo mailing list