Re: PangoFontDescription::set_size
| From: | Steph Fox | Date: | Sat, 17 Dec 2005 20:09:52 +0000 |
| Subject: | Re: PangoFontDescription::set_size | ||
| References: | 1 | Groups: | php.gtk.dev |
| Request: | Send a blank email to php-gtk-dev+get-2122@lists.php.net to get a copy of this message | ||
Again, a test scipt would be useful here. I don't know about Andrei, but I
haven't even looked at Pango yet, internally or any other way, and it'll probably be post-beta before this gets evaluated now...
----- Original Message ----- From: "Tom Rogers" <trogers@kwikin.com>
To: <php-gtk-dev@lists.php.net>
Sent: Sunday, December 11, 2005 10:26 AM
Subject: [PHP-GTK-DEV] PangoFontDescription::set_size
Hi Been playing with pango and suggest a small change to PangoFontDescription::set_size(); Pango is expecting the size in pango_units. You can put in the constructor string: $fontdescription = new PangoFontDescription("Ariel 30"); when you use $fontdescription->set_size(30); the resulting font size is 0.29296875 The patch to pango.overriodes will multiply the size by PANGO_SCALE making the 2 methods match. I hope that makes sense :) I still haven't worked out how to make it find the Ariel font but thats another story. -- Tom--------------------------------------------------------------------------------
-- PHP-GTK Development Mailing List (http://gtk.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php