cedlemo / blingbling

Awesome WM widgets
GNU General Public License v2.0
148 stars 37 forks source link

request: is it possible to change the font type? #13

Closed lcpz closed 11 years ago

lcpz commented 11 years ago

I tried with pango markup, but doesn't work. Anyway this could be a property to set?

cedlemo commented 11 years ago

Yes I think I will try to do this tomorrow, there will be set_font_type functions for each graphical widgets and you will be able to configure a global font type in the table theme.blingbling in your theme.lua file.

Thanks for your help and your suggestions.

cedlemo commented 11 years ago

I have made some modifications,

you can use widget:set_font("Sans") or add a parameter when you create a new widget , for example :

blingbling.progress_graph({other_param = "value", .., font="Sans" })

This should works.

Note : in order to display text I use cairo text functions which are closer to "toys" functions rather than real displaying text functions. This implies that options are really limited. If more control is needed on the text displayed in blingbling widget I will have use Pango layout which require more work.