Re: Question about Gnome-Print-0.5 & Fonts
- From: Emmanuele Bassi <bassi-e libero it>
- To: gtk-perl-list gnome org
- Subject: Re: Question about Gnome-Print-0.5 & Fonts
- Date: Wed, 10 Sep 2003 14:08:17 +0200
* Tom Cross <tomc kendeco com>:
I playing with the example 'basic-font.pl' in the examples directory and
I'm just changing the name of the font in this line:
my $font = Gnome2::Print::Font->find_closest("Times New Roman", 16);
No matter what name I put there, what it finds is ALWAYS 'Andale Mono
Regular'!
I've noticed that myself.
You should use
Gnome2::Print::Font->find_closest_from_full_name("Times New Roman 16");
Which seems to work correctely.
Yet, I don't think it's a fault of the perl binding: seems more like a
bug of libgnomeprint to me. I'm looking into GtkSourceView in order to
write a binding for this widget, and they use "find_closest_from_full_name"
inside their code.
Reagrds,
Emmanuele.
--
Emmanuele Bassi (Zefram) [ http://digilander.libero.it/ebassi/blog ]
GnuPG Key fingerprint = 4DD0 C90D 4070 F071 5738 08BD 8ECC DB8F A432 0FF4
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]