There are two functions to draw strings; as an
optimization, gdk_draw_text()
takes the length of the string to draw as an argument.
gdk_draw_string() uses strlen() to compute the string
length for you. Otherwise the two are identical. The
x and y coordinates specify the location of
the left side of the text's baseline. See the section called Fonts
for more information on fonts and font metrics. Text is
drawn in the foreground color.
There is no way to draw scaled or rotated text with GDK.
GnomeCanvasText offers a
slow and low-quality way to render scaled and rotated
text (see the section
called Text Item in the chapter called GnomeCanvas). If you need
high-quality scaling and rotating, you will need to use
additional libraries, such as
t1lib for Type 1 fonts or FreeType for True Type
fonts. Another possibility is the Display Postscript
extension to X (XDPS); the GNU Project is working on a
free implementation of XDPS. The Gnome project also has a
text solution in development, as part of the gnome-print library.