mirror of
https://gitlab.gnome.org/GNOME/gimp
synced 2024-10-20 19:43:01 +00:00
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:
parent
71c94ca541
commit
63f6dcb111
|
@ -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):
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue