GNOME Bugzilla – Bug 702016
ClutterText reset font when dpi changes and font was set using a pango description
Last modified: 2013-06-12 14:59:20 UTC
When setting the font using clutter_text_set_font_description(), the font settings on a ClutterText actor can be reset when there is a dpi changes signaled by the backend.
Created attachment 246534 [details] [review] clutter-text: prevent reset of user set font descriptions on dpi changes
Review of attachment 246534 [details] [review]: ::: clutter/clutter-text.c @@ +4925,3 @@ + + if (font_desc != NULL) + priv->is_default_font = FALSE; we can probably do something like: priv->is_default_font = (font_desc == NULL); instead of the if...else... to be fair, though, I'd probably move this inside the set_font_description_internal() method.
Created attachment 246603 [details] [review] clutter-text: prevent reset of user set font descriptions on dpi changes
Review of attachment 246603 [details] [review]: looks okay to me, except a style issue (which would raise a compiler warning). ::: clutter/clutter-text.c @@ +4921,3 @@ PangoFontDescription *font_desc) { + ClutterTextPrivate *priv; this declaration is unused. @@ +4925,3 @@ g_return_if_fail (CLUTTER_IS_TEXT (self)); + priv = self->priv; this assignment is unused.
Committed.