[Mono-osx] How to Draw String in a view

Tomas Trescak tomi.trescak at gmail.com
Wed Apr 18 23:05:54 UTC 2012


Hello

I'm trying to accomplish simple this and that is to draw a string on a view.
I started with the "CoreTextArcMonoMac" example.
 From there I tried method "context.ShowTextAtPoint(..)" which isn't 
doing anything.

context.SetFont(CGFont.CreateWithFontName("Didot"));
context.SetFontSize (20);
context.SetRGBFillColor (0.25f, 0.25f, 0.25f, 1);
//context.ShowGlyphsAtPositions (glyph, position, 1);
context.ShowTextAtPoint(10, 10, "MyText");

Any ideas?

Thanks


More information about the Mono-osx mailing list