[AdgToyText] Allow to specify the font style
commitd56e640ce3f488936ca08df4b81f77ebdf606cfb
authorNicola Fontana <ntd@entidi.it>
Wed, 19 Aug 2009 11:43:48 +0000 (19 13:43 +0200)
committerNicola Fontana <ntd@entidi.it>
Wed, 19 Aug 2009 11:43:48 +0000 (19 13:43 +0200)
treeea75e3f2e7789bbfbbec52d9b36dfaf1fdcd9d40
parentc2760fad31a3d7688f53e6ce7b3f0d430a6e82bc
[AdgToyText] Allow to specify the font style

By default any AdgToyText entity defaults to the current font style
(the ADG_FONT_STYLE_TEXT AdgFontStyleId). Added a property
("font-style") to allow a different _structural_ style and use the
recently introduced API to apply this font style before rendering.

Also added a new API (adg_toy_text_get_extents()) to know the boundary
box of this toy text as returned by cairo_glyph_extents(). The result is
cached together with the glyps and this API will be removed once the
boundary feature will be implemented.
adg/adg-toy-text-private.h
adg/adg-toy-text.c
adg/adg-toy-text.h