Deprecate clutter_[sg]et_font_flags()

We already have two mechanisms for controlling the font rendering
quality on a per-application basis:

  • ClutterSettings properties
  • clutter_backend_set_font_options()

The font flags were always a stop-gap solution, and one that tried to
simplify a fairly complex issue beyond the point of actually being
useful.

https://bugzilla.gnome.org/show_bug.cgi?id=660786
This commit is contained in:
Emmanuele Bassi 2011-10-03 14:12:48 +01:00
parent 6ef09dd15b
commit 01080dc5f3
3 changed files with 9 additions and 2 deletions

View File

@ -2846,6 +2846,9 @@ clutter_clear_glyph_cache (void)
* introduce some artifacts if the text is animated.
*
* Since: 1.0
*
* Deprecated: 1.10: Use clutter_backend_set_font_options() and the
* #cairo_font_option_t API.
*/
void
clutter_set_font_flags (ClutterFontFlags flags)
@ -2897,6 +2900,9 @@ clutter_set_font_flags (ClutterFontFlags flags)
* Return value: The font flags
*
* Since: 1.0
*
* Deprecated: 1.10: Use clutter_backend_get_font_options() and the
* #cairo_font_options_t API.
*/
ClutterFontFlags
clutter_get_font_flags (void)

View File

@ -167,10 +167,9 @@ ClutterActor * clutter_get_keyboard_grab (void);
#if !defined(CLUTTER_DISABLE_DEPRECATED) || defined(CLUTTER_COMPILATION)
void clutter_clear_glyph_cache (void);
#endif
void clutter_set_font_flags (ClutterFontFlags flags);
ClutterFontFlags clutter_get_font_flags (void);
#endif /* CLUTTER_DISABLE_DEPRECATED */
#if !defined(CLUTTER_DISABLE_DEPRECATED) || defined(CLUTTER_COMPILATION)
ClutterInputDevice *clutter_get_input_device_for_id (gint id_);

View File

@ -429,6 +429,8 @@ typedef enum {
* clutter_set_font_flags().
*
* Since: 1.0
*
* Deprecated: 1.10: Use the #ClutterBackend and #cairo_font_options_t instead
*/
typedef enum
{