gimp r27436 - in trunk: . app/text
- From: neo svn gnome org
- To: svn-commits-list gnome org
- Subject: gimp r27436 - in trunk: . app/text
- Date: Mon, 27 Oct 2008 08:20:02 +0000 (UTC)
Author: neo
Date: Mon Oct 27 08:20:02 2008
New Revision: 27436
URL: http://svn.gnome.org/viewvc/gimp?rev=27436&view=rev
Log:
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.
Modified:
trunk/ChangeLog
trunk/app/text/gimptextlayout.c
Modified: trunk/app/text/gimptextlayout.c
==============================================================================
--- trunk/app/text/gimptextlayout.c (original)
+++ trunk/app/text/gimptextlayout.c Mon Oct 27 08:20:02 2008
@@ -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 @@
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 @@
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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]