Re: patch: go-combo-font

This is a small file to test the font combo.
Sorry, i forgot.
- Rob

On 6/9/05, Robert Staudinger <robert staudinger gmail com> wrote:

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

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

- Rob

Attachment: go-fontcombo.c
Description: Text Data

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