Re: Fonts
Espen S Johnsen <[email protected]> 06 Apr 2006 00:25:50 +0200
| Newsgroups | gmane.lisp.clg.devel |
|---|---|
| Message-ID | <[email protected]> |
Ephrem Boudonnet <[email protected]> writes: > I was just trying to use some font for the text of a button (for > example) using the function "widget-modify-font", but I don't know > what to put for the font-desc (the third argument). The third argument is a Pango font description, but there is no way to create new font descriptions in the version of clg. > Is this the right way to do that? This is one way to do it, but an alternative is to use resource files (http://developer.gnome.org/doc/API/2.0/gtk/gtk-Resource-Files.html) to modify widget styles. In some cases RC files may even be a better solution. > And what should I use for the font-desc? I will add some more bindings to make it possible to create font descriptions, but it's getting a bit late today so that has to wait until tomorrow :) In the mean time you could try to add (defbinding font-description-from-string () font-description (desc string)) to pango.lisp and use it to create font descriptions from strings. -- Espen ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642