From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marius Vollmer To: guile-gtk@sourceware.cygnus.com Subject: Re: font manipulation? Date: Wed, 12 Apr 2000 12:09:00 -0000 Message-id: <87k8i39mmm.fsf@zagadka.ping.de> References: <20000411212638.A32138@pcrm.win.tue.nl> X-SW-Source: 2000-q2/msg00014.html Stephan Houben writes: > Hello list, > > I have some questions about fonts: > 1. Is there a way to get a list of all available fonts? Probably. You might look at the implementation of GtkFontSelectionDialog in Gtk+ to find out more. > 2. Is there a something in guile-gtk like gtk's gtk_string_extent? Not yet, but it can be added like so (define-func gdk_string_extents (none (values (lbearing rbearing width ascent descent))) ((GdkFont font) (string string) (int lbearing) (int rbearing) (int width) (int ascent) (int descent))) guile> (gdk-string-extents "fixed" "Hi!") (0 15 18 9 0) I have just done this, it should be available in CVS now.