formatting.

2008-10-26  Sven Neumann  <sven@gimp.org>

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


svn path=/trunk/; revision=27427
This commit is contained in:
Sven Neumann 2008-10-26 21:23:01 +00:00 committed by Sven Neumann
parent 63b67cc716
commit 81e7609827
2 changed files with 21 additions and 12 deletions

View File

@ -1,3 +1,8 @@
2008-10-26 Sven Neumann <sven@gimp.org>
* app/text/gimptextlayout-render.c (gimp_text_layout_render_flags):
formatting.
2008-10-26 Michael Natterer <mitch@gimp.org>
* app/tools/gimptexttool.c: more cleanup, mostly formatting.

View File

@ -199,22 +199,26 @@ gimp_text_layout_render_glyphs (GimpTextLayout *layout,
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;
}