Re: How to find a font
- From: "A. Pagaltzis" <pagaltzis gmx de>
- To: Gtk-Perl-List <gtk-perl-list gnome org>
- Subject: Re: How to find a font
- Date: Fri, 21 Nov 2003 13:19:56 +0100
* Thomas Bayen <tbayen bayen de> [2003-11-21 13:14]:
I searched through my system fonts with "xfontsel".
Forget that. :-)
-misc-fixed-*-*-semicondensed-*-*-*-*-*-*-*-*-*
Gtk2 doesn't use XLFDs. It uses fontconfig.
Howe can I use this Font from perl-gtk?
Don't know if it's at all accessible. You can only use fonts
available via fontconfig.
Some information on fontconfig descriptors is available in
man fontconfig
my $fontdesc=Gtk2::Pango::FontDescription->from_string(
'fixed semicondensed 8'
);
Unfortunately they don't translate that easily.. see properties
in the fontconfig docs. Although I haven't quite gotten my head
about the fontconfig stuff yet either.
Can someone give me a hint which font I should install that
suits my problem?
You probably want some TTF font that works for your case -
although if you're going to distribute this, using a custom font
from a third party is probably not a good idea..
--
Regards,
Aristotle
"If you can't laugh at yourself, you don't take life seriously enough."
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]