From: Marius Vollmer <mvo@zagadka.ping.de>
To: guile-gtk@sourceware.cygnus.com
Subject: Re: font manipulation?
Date: Wed, 12 Apr 2000 12:09:00 -0000 [thread overview]
Message-ID: <87k8i39mmm.fsf@zagadka.ping.de> (raw)
In-Reply-To: <20000411212638.A32138@pcrm.win.tue.nl>
Stephan Houben <stephan@pcrm.win.tue.nl> 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.
prev parent reply other threads:[~2000-04-12 12:09 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-04-11 12:28 Stephan Houben
2000-04-12 12:09 ` Marius Vollmer [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87k8i39mmm.fsf@zagadka.ping.de \
--to=mvo@zagadka.ping.de \
--cc=guile-gtk@sourceware.cygnus.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).