This may or may net help:

        CGContextRef    ctx=(CGContextRef)[[NSGraphicsContext 
currentContext]graphicsPort];
        
        CGContextSetShouldSmoothFonts(ctx,YES);

Gerd

> On Apr 10, 2017, at 09:41, Navneet Kumar <navnee...@me.com> wrote:
> 
> Hi,
> 
> There is visible difference in text when setting the same string, same font, 
> same text colour to a text field.
> And when the same is done via NSString drawInRect method having same 
> attributes for text.
> 
> The image URL to a sample image: http://i63.tinypic.com/xbe0bc.jpg
> 
> The top text is using a text field and bottom text is using drawInRect:.
> 
> The rect supplied to drawInRect: is many time bigger than needed.
> 
> I have both ways implemented in my project, so would it be possible to make 
> drawInRect: draw as boldly as a text field?
> 
> Is there any other neater, more consistent way to draw text?
> 
> Thanks,
> Navneet
> 
> _______________________________________________
> 
> Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
> 
> 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:
> https://lists.apple.com/mailman/options/cocoa-dev/gerti-cocoadev%40bitart.com
> 
> This email sent to gerti-cocoa...@bitart.com

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to