Re: PangoFontDescription::set_size

From: Date: Mon, 19 Dec 2005 02:48:29 +0000
Subject: Re: PangoFontDescription::set_size
References: 1  Groups: php.gtk.dev 
Request: Send a blank email to php-gtk-dev+get-2131@lists.php.net to get a copy of this message
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

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