patch: go-combo-font



Hi, 

This is the, well, "patch" to goffice that adds a font combobox (as
prototyped in AbiWord).
What does it do:
+ On first startup it shows a combobox containing all system font
families (showed in standard application font)
+ Using a timeout every second a font is "thumbnailed". The
corresponding entry in the combo is rendered in its own font face
using the thumbnail.
+ When all fonts are thumbnailed a cache file containing the
thumbnails is written to .goffice.
+ Subsequent launches load the thumbnails from the cache file directly
and don't have to touch the fonts at all.
+ If the system font size is changed new thumbnails are generated at
next startup, same if new fonts are installed on the system.

While not totally ready i'd like to get your feedback on this because
its "structually complete" and does what it should.
Unfortunately the crappy gnome anoncvs doesn't let me diff today so i
hope it is ok to send the tarball with the files. They go in
goffice/gtk.

Outstanding polish: 
+ Create a cell renderer that draws the text in theme color (currently
black). Thumbnails have alpha channel, so background adapts to theme
already.
+ Hook "style-changed" and redo thumbnails if fontsize has changed.

Cheers, 
- Rob

Attachment: go-combo-font.tgz
Description: GNU Zip compressed data



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]