This is what I;ve got so far:
Gdk.Window drawable = drawingarea1.GdkWindow ;
FontDescription fd = FontDescription.FromString("Sans 12");
Gdk.GC glick = new Gdk.GC(drawable);
Context ct = new Context(drawingarea1.PangoContext.Handle);
Font gf = ct.LoadFont(fd);
GlyphString gs = new GlyphString();
string input = "Simon";
gs.GetLogicalWidths(input,20);
gs.ToString();
//drawable.DrawLine(glick,1,10,1,20);
drawable.DrawGlyphs( glick, gf, 10, 10, gs );
As you can see, the solution was a little involved. As fare as I can
tell, the only thing preventing me from drawing text on the drawing area
now wuld be the way I;ve tried to set up GlyphString.
Trouble is the debugger fails to recognise the methods I use so I can't
test.
Drawline does, however, draw a line
Simono
--
Next meeting: Crown Hotel, Blandford Forum, Tuesday 2010-11-02 20:00
Meets, Mailing list, IRC, LinkedIn, ... http://dorset.lug.org.uk/
How to Report Bugs Effectively: http://goo.gl/4Xue