Re: Text rendered in NSImage is fuzzy
Re: Text rendered in NSImage is fuzzy
- Subject: Re: Text rendered in NSImage is fuzzy
- From: "Rimas M." <email@hidden>
- Date: Fri, 26 Aug 2011 17:13:29 +0300
Sorry for touching this old thread. I just want to be sure.
If I am using Core Text (CTLineDraw(line, bitmapDrawContext);) to draw my
text into bitmap context, there is no way to get sub-pixels antialiasing if
resulting image has transparent background?
Currently it looks: http://db.tt/Rtiu7B1
Regards,
Rimas M.
On Sun, Jun 27, 2010 at 11:47 PM, Ken Ferry <email@hidden> wrote:
> I don't think this is likely to be the problem in this case. Text looks
> good no matter where you draw it.
>
> In this case, I think the problem is more likely either
> (1) A lack of what Quartz calls font smoothing, more popularly known
> as subpixel
> rendering <http://en.wikipedia.org/wiki/Subpixel_rendering>.
> (2) The resulting image being drawn non-pixel aligned, incurring double
> anti-aliasing effects.
>
> We would be able to tell from a screenshot.
>
> I would guess (1) is more likely. Dave, if you were to read that wikipedia
> article and think about it carefully, you would realize that doing full
> featured transparency with font smoothing would require six channels (red,
> red alpha, green, green alpha, blue, blue alpha) instead of the usual ARGB
> backing stores bitmaps use. The easiest fix when applicable is to make sure
> the image isn't transparent. Fill the NSImage with an opaque color before
> doing the text drawing.
>
_______________________________________________
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