Re: CTLineCreateWithAttributedString ignoring font size
Re: CTLineCreateWithAttributedString ignoring font size
- Subject: Re: CTLineCreateWithAttributedString ignoring font size
- From: Alastair Houghton <email@hidden>
- Date: Sat, 15 Aug 2009 09:40:57 +0100
On 14 Aug 2009, at 23:44, Charles Srstka wrote:
However, instead of 10 point Courier, the string ends up being drawn
at 144 point. Also, the characters are all smashed together - the X-
position of each letter appears to be in the place where it would be
if it *were* a smaller font size, causing them all to overlap with
each other.
Have you tried setting the text matrix to e.g. the identity? From my
own experience drawing text with Quartz, the text matrix is often not
set to what you might want (which perhaps isn't surprising as it
*isn't* part of the graphics state, so it will be set to whatever it
was last set to for that context).
Sometime like
CGContextSetTextMatrix (context, CGAffineTransformIdentity);
should do it.
Kind regards,
Alastair.
--
http://alastairs-place.net
_______________________________________________
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