|Index > Lgi > GSurface|
|Is there any function in GSurface(GDeviceContext) class to draw text?|
|Use a GFont to draw text.
SysFont->Draw(pSurface, x, y, "String");
SysFont resolves to a system wide GFont object that has been initialized to have the same face/point size as the rest of the apps.
Otherwise you can create your own:
|I didn't found Draw function in GFont, but I've found Text function that does the same, now it's OK. Thanks a lot. Another question: how can I set text color or background color.|
|Use GFont::Colour. It is effected by the setting passed to GFont::Transparent as well. If you do Font->Transparent(true) the background is transparent otherwise it's solid.|