gimp r27427 - in trunk: . app/text



Author: neo
Date: Sun Oct 26 21:23:01 2008
New Revision: 27427
URL: http://svn.gnome.org/viewvc/gimp?rev=27427&view=rev

Log:
2008-10-26  Sven Neumann  <sven gimp org>

	* app/text/gimptextlayout-render.c 
(gimp_text_layout_render_flags):
	formatting.



Modified:
   trunk/ChangeLog
   trunk/app/text/gimptextlayout-render.c

Modified: trunk/app/text/gimptextlayout-render.c
==============================================================================
--- trunk/app/text/gimptextlayout-render.c	(original)
+++ trunk/app/text/gimptextlayout-render.c	Sun Oct 26 21:23:01 2008
@@ -199,22 +199,26 @@
 static cairo_font_options_t *
 gimp_text_layout_render_flags (GimpTextLayout *layout)
 {
-  GimpText             *text  = layout->text;
+  GimpText             *text = layout->text;
   cairo_font_options_t *flags;
 
   flags = cairo_font_options_create ();
 
-  if (text->antialias)
-    cairo_font_options_set_antialias (flags, CAIRO_ANTIALIAS_DEFAULT);
-  else
-    cairo_font_options_set_antialias (flags, CAIRO_ANTIALIAS_NONE);
-/*
- * commented because there's no real autohint support in cairo like there is in ft2
-  if (text->autohint)
-    cairo_font_options_set_hint_style (flags, CAIRO_HINT_STYLE_DEFAULT);
-*/
-  if (!text->hinting)
-    cairo_font_options_set_hint_style (flags, CAIRO_HINT_STYLE_NONE);
+  cairo_font_options_set_antialias (flags, (text->antialias ?
+                                            CAIRO_ANTIALIAS_DEFAULT :
+                                            CAIRO_ANTIALIAS_NONE));
+
+  /*
+   * commented because there's no real autohint support in cairo like
+   * there is in ft2
+   *
+   * if (text->autohint)
+   *   cairo_font_options_set_hint_style (flags, CAIRO_HINT_STYLE_DEFAULT);
+   */
+
+  cairo_font_options_set_hint_style (flags, (text->hinting ?
+                                             CAIRO_HINT_STYLE_DEFAULT :
+                                             CAIRO_HINT_STYLE_NONE));
 
   return flags;
 }



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