render texts to a buffer/drawable
- From: Ronald Bultje <rbultje ronald bitfreak net>
- To: GTK Mailing List <gtk-list gnome org>
- Subject: render texts to a buffer/drawable
- Date: 24 Jun 2001 22:14:32 +0200
Hi people,
does Gtk or any other lib offer the option to render texts to a drawable
or a RGB-buffer (in the best case: a gdk-pixbuf)? In the best case, it
would work something like some_function(char *font, char *text) (font
being the font as provided by the gtk-font-selection-dialog
(-courier-new-bla--bla-*-*-*-*-) and text being the string to be
rendered) and render the text to a gdk-pixbuf :-)
I tried gimp until now but I didn't get any further than #include
<libgimp/gimp.h> and add `gimp-config --cflags` to my LDFLAGS, after
which the application complained about a missing reference to
PLUG_IN_INFO (although I did have a GimpPlugInInfo PLUG_IN_INFO = {
NULL, NULL, NULL, NULL}; in my application) so I'm probably doing
something wrong there...
Anyway, any help on going from GtkFontSelectionDialog to a text rendered
in a GdkPixbuf would be appreciated.
Regards,
Ronald
--
- .-.
- /V\ | Ronald Bultje <rbultje ronald bitfreak net>
- // \\ | Running: Linux 2.4.4 and OpenBSD 2.8
- /( )\ | http://ronald.bitfreak.net/
- ^^-^^
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]