Re: Text blurred in application
Re: Text blurred in application
- Subject: Re: Text blurred in application
- From: Richard Somers <email@hidden>
- Date: Sat, 29 Nov 2008 09:57:19 -0700
I just discovered part of my problem. The pdf image was being scaled
down slightly even though there was plenty of room for it inside the
NSButton. The default scaling is "Proportionally Down". Change this to
"None" and the image now is always sharp, at least for a User
Interface Resolution of 1.0.
Change the User Interface Resolution to 1.25 or 1.5 and the pdf image
is ok but not great. This is apparently because "A shape is scan-
converted by painting any pixel whose square region intersects the
shape, no matter how small the intersection is." according to the
"Scan Conversion Rules" in the pdf standard. I think this is why it
looks less sharp at these resolutions. Note that fonts get special
treatment and will render more "precisely" because they are hinted.
Anyway, perhaps this is why the final image used for many Apple
widgets are bitmapped tiff files and not vector pdf. You can tweak
each and every pixel in a tiff file if you want to. For me I just
wanted to make single vector image and be done with it.
On Nov 29, 2008, at 7:33AM, Richard Somers wrote:
The pdf canvas size is 25 points x 25 points and displayed full size
in the button. It contains only vector graphics.
I thought pdf would be the best thing for the simple graphics but it
is hard to get it pixel perfect. Many of the paths have pixel exact
boundaries within the graphics application. But when these are used
in Interface Builder for a NSButton image the pdf output is
inconsistent. It seems to have a mind of its own.
On Nov 29, 2008, at 4:32AM, Benjamin Dobson wrote:
Make sure the PDF is not larger than the button and that it does
not contain bitmaps.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden