Sorry, I was at an (iOS) conference, so I missed this... I suspect you
might have an answer, but why use Arial? Why not something from
UIFont?

On Mon, Sep 5, 2011 at 21:40, JohnnyNoMates <[email protected]> wrote:
> Sure. I have a UIView descendant and Im overriding the Draw method. I get the
> context and set the font;
>
>                        CGContext ctx = UIGraphics.GetCurrentContext ();
>
>                        ctx.TranslateCTM(0.0F, Bounds.Height);
>                        ctx.ScaleCTM(1.0F, -1.0F);
>
>                        ctx.SelectFont("Arial", 20f, CGTextEncoding.MacRoman);
>
> I retrieve a calendar EKEvent instance, and the Title contains;
> Jude's Birthday
>
> and then I draw it to screen in a clipped area;
>
>                        context.SaveState();
>                        context.ClipToRect(new RectangleF(x, y, width - 1, 
> height));
>                        context.ShowTextAtPoint(x + 2, y + 1, eventItem.Title);
>                        context.RestoreState();
>
> What gets displayed is;
> Jude.Aos Birthday
>
> The A has an umlaut, the o is accented (has the line above).
>
> Any ideas are most welcome.
>
> Thanks
> John
>
> --
> View this message in context: 
> http://monotouch.2284126.n4.nabble.com/Drawing-text-containing-an-apostrophe-tp3791636p3792090.html
> Sent from the MonoTouch mailing list archive at Nabble.com.
> _______________________________________________
> MonoTouch mailing list
> [email protected]
> http://lists.ximian.com/mailman/listinfo/monotouch
>



-- 
Nic Wise
t.  +44 7788 592 806 | @fastchicken | http://www.linkedin.com/in/nicwise
b. http://www.fastchicken.co.nz/

mobileAgent (for FreeAgent): get your accounts in your pocket.
http://goo.gl/IuBU
Trip Wallet: Keep track of your budget on the go: http://goo.gl/ePhKa
London Bike App: Find the nearest Boris Bike, and get riding! http://goo.gl/Icp2
_______________________________________________
MonoTouch mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/monotouch

Reply via email to