[Sugar-devel] [FEATURE] Fonts-configuration
Art Hunkins
abhunkin at uncg.edu
Mon Jan 11 12:33:48 EST 2010
With respect to the proposed UI and "low-hanging fruit":
The font-configuring code I use in OurMusic-2 strictly adheres to Daniel's
suggestions.
Basicly, Daniel's suggestion would pick up the proposed UI-set font value
from:
settings = gtk.settings_get_default()
font_name = settings.get_property("gtk-font-name")
then manipulate and display individual text instances with:
font = widget.get_pango_context().get_font_description()
font.set_size(int(font.get_size() [and whatever])
This presumes that the UI would change the value found with the first set of
two code lines above, and have nothing to do with the second set. However,
this latter set is based on system defaults which *remain unchanged* under
the proposed feature. These defaults are not likely to change for other
reasons either.
Am I correct concerning these defaults, and should code based on the above
continue to work on all XO and SoaS systems?
Art Hunkins
----- Original Message -----
From: "Simon Schampijer" <simon at schampijer.de>
To: <sugar-devel at lists.sugarlabs.org>
Sent: Monday, January 11, 2010 7:31 AM
Subject: Re: [Sugar-devel] [FEATURE] Fonts-configuration
> On 01/10/2010 07:00 PM, Sayamindu Dasgupta wrote:
>> Hello,
>> I just wanted to announce that I would be more than happy to do the
>> remaining work to be done for
>> http://wiki.sugarlabs.org/go/Features/Font_configuration
>> The main work involved is to implement a xsettings manager which will
>> be monitoring the relevant Sugar GConf keys and updating the
>> corresponding Xsettings as and when they change. Currently I'm
>> considering customizing the existing sample xsettings manager which
>> comes with the spec[1] and see how that works out. The manager would
>> be started during Sugar startup, as done in GNOME
>> (gnome-settings-daemon).
>> Thanks,
>> Sayamindu
>>
>> [1]
>> http://standards.freedesktop.org/xsettings-spec/xsettings-spec-0.5.html
>>
>
> Hi Sayamindu and Daniel,
>
> great you are interested to work on this Feature!
>
> * Settings-daemon
> As you said, the settings-daemon would be a great thing to have for
> several reasons. I think a daemon would help us as well in terms of
> global key bindings.
>
> * Owner
> Should we change the owner of the Feature to you, or does Daniel keeps
> on monitoring the Feature?
>
> * UI
> Another low hanging fruit seems to me to have the UI to increase and
> decrease the font size. Daniel describes it as being an option in the
> control panel. Now as we have the gconf option, this sounds like a
> doable task to me. Maybe as well a task to someone else who wants to
> gain a few karma points with core hacking ;D
>
> * Activity guidelines [1]
> The activity guidelines seem to make sense at first glance. We should go
> through them in detail and communicate them. Regarding deprecating
> sugar.style.FONT_* - we should decide quickly before the API-Freeze.
>
> @Daniel: Thanks for bringing this Feature up and for writing such a
> detailed on the point Feature page, congrats!
>
> Regards,
> Simon
>
> [1]
> http://wiki.sugarlabs.org/go/Features/Font_configuration#Consideration_for_activities
> _______________________________________________
> Sugar-devel mailing list
> Sugar-devel at lists.sugarlabs.org
> http://lists.sugarlabs.org/listinfo/sugar-devel
More information about the Sugar-devel
mailing list