use the Y resolution when creating the fontmap.

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

	* app/text/gimptextlayout.c (gimp_text_get_pango_context): use 
the
	Y resolution when creating the fontmap.


svn path=/trunk/; revision=27436
This commit is contained in:
Sven Neumann 2008-10-27 08:20:02 +00:00 committed by Sven Neumann
parent 71c94ca541
commit 63f6dcb111
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2008-10-27 Sven Neumann <sven@gimp.org>
* app/text/gimptextlayout.c (gimp_text_get_pango_context): use the
Y resolution when creating the fontmap.
2008-10-27 Sven Neumann <sven@gimp.org>
* app/text/gimptextlayout-render.c (gimp_text_layout_render_trafo):

View File

@ -22,7 +22,6 @@
#include "config.h"
#include <gegl.h>
#include <cairo.h>
#include <pango/pangocairo.h>
#include "text-types.h"
@ -313,7 +312,7 @@ gimp_text_get_pango_context (GimpText *text,
fontmap = PANGO_CAIRO_FONT_MAP (pango_cairo_font_map_new ());
pango_cairo_font_map_set_resolution (fontmap, xres);
pango_cairo_font_map_set_resolution (fontmap, yres);
context = pango_cairo_font_map_create_context (fontmap);
g_object_unref (fontmap);
@ -327,6 +326,7 @@ gimp_text_get_pango_context (GimpText *text,
case GIMP_TEXT_DIRECTION_LTR:
pango_context_set_base_dir (context, PANGO_DIRECTION_LTR);
break;
case GIMP_TEXT_DIRECTION_RTL:
pango_context_set_base_dir (context, PANGO_DIRECTION_RTL);
break;