<br><br><div class="gmail_quote">2009/1/28 Ian Britten <span dir="ltr"><<a href="mailto:britten@caris.com">britten@caris.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi all,<br>
I'm still struggling with how to best handle hairlines, and am wondering<br>
if anyone could offer some guidance/suggestions...<br>
<br>
In my early work, I used a device thickness of 1.0/300.0 (converted to<br>
user) as the thickness when I needed to draw these types of lines.<br>
This seemed to work ok when outputting to PDF. However, when I output<br>
to an image (PNG), the lines don't visually appear (Too thin?).<br>
<br>
OTOH, if I use a device thickness of 1.0 (converted to user) as the line<br>
thickness, the lines look as expected in the image output.<br>
Unfortunately, this is far too thick in the PDF output. :(<br>
<br>
Long story short, it seems that I'm going to have to examine the type<br>
of surface I'm using, and use different numbers for the thickness<br>
accordingly. IMHO, this seems to defeat one of the abstractions that<br>
Cairo touts - Namely drawing the same way to any surface type.<br>
Thus, I figured I'd ask, and see if there isn't a better technique.</blockquote><div><br>On the other hand, if Cairo had hairlines it would defeat another of the great abstractions: consistent results independent of resolution. Sometimes it is deceptive when hairlines in a low-resolution display to appear thicker relatively to other (non-hairline) lines, while thinner (almost too thin to see) in very high resolution displays.<br>
<br>That being said, I used to be more against hairlines. Nowadays, after using goocanvas with zooming I have been bitten by this problem as well: when I zoom out a lot, my lines eventually disappear.<br></div></div><br>
-- <br>Gustavo J. A. M. Carneiro<br>INESC Porto, Telecommunications and Multimedia Unit<br>"The universe is always one step beyond logic." -- Frank Herbert<br>