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

Reply via email to