[prev in list] [next in list] [prev in thread] [next in thread] 

List:       php-gtk-dev
Subject:    Re: [PHP-GTK-DEV] PangoFontDescription::set_size
From:       Andrei Zmievski <andrei () gravitonic ! com>
Date:       2006-02-10 3:46:26
Message-ID: 302F43D3-40D3-4547-B4B3-BE2F4314DC88 () gravitonic ! com
[Download RAW message or body]

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

-- 
PHP-GTK Development Mailing List (http://gtk.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic