Re: PangoFontDescription::set_size

From: Date: Fri, 10 Feb 2006 03:46:26 +0000
Subject: Re: PangoFontDescription::set_size
References: 1 2  Groups: php.gtk.dev 
Request: Send a blank email to php-gtk-dev+get-2393@lists.php.net to get a copy of this message
The SCALE constants will be exported anyway. Do you still think it's useful to have set_size() do automatic scaling? How about set_absolute_size()? -Andrei On Dec 18, 2005, at 6:48 PM, Tom Rogers wrote:
Hi, Sunday, December 11, 2005, 6:26:08 PM, you wrote: TR> Hi TR> Been playing with pango and suggest a small change to TR> PangoFontDescription::set_size(); TR> Pango is expecting the size in pango_units. TR> You can put in the constructor string: TR> $fontdescription = new PangoFontDescription("Ariel 30"); TR> when you use $fontdescription->set_size(30); the resulting font size TR> is 0.29296875 TR> The patch to pango.overriodes will multiply the size by PANGO_SCALE TR> making the 2 methods match. TR> I hope that makes sense :) TR> I still haven't worked out how to make it find the Ariel font but TR> thats another story. Another option would be to make the constant Gtk::PANGO_SCALE available. Then the function could be used as advertised. $fontdescription->set_size(30 * Gtk::PANGO_SCALE); --regards, Tom --PHP-GTK Development Mailing List (http://gtk.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php


« previous php.gtk.dev (#2393) next »