Commit 3da2f611 authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann

depend on Pango version 1.2.0 or newer.

2003-09-12  Sven Neumann  <sven@gimp.org>

	* configure.in: depend on Pango version 1.2.0 or newer.

	* rsvg-text.c (rsvg_text_handler_characters): don't use
	pango_ft2_get_context() which is deprecated in Pango HEAD, but
	create the Pango context from the fontmap instead (bug #122121).

	* rsvg-path.c (rsvg_parse_path_do_cmd): fixed storage of
	reflection point in Q command which caused the next T command to
	create a wrong stroke (bug #122118).
parent 1f56c46a
2003-09-12 Sven Neumann <sven@gimp.org>
* configure.in: depend on Pango version 1.2.0 or newer.
* rsvg-text.c (rsvg_text_handler_characters): don't use
pango_ft2_get_context() which is deprecated in Pango HEAD, but
create the Pango context from the fontmap instead (bug #122121).
* rsvg-path.c (rsvg_parse_path_do_cmd): fixed storage of
reflection point in Q command which caused the next T command to
create a wrong stroke (bug #122118).
2003-09-11 Sven Neumann <sven@gimp.org>
* gimp-plugin/svg.c: Sprinkled the code with const qualifiers.
......
......@@ -6,7 +6,7 @@ GDK_PIXBUF_REQUIRED=1.3.7
GLIB_REQUIRED=2.0.0
LIBART_REQUIRED=2.3.10
LIBXML_REQUIRED=2.4.7
PANGOFT2_REQUIRED=1.0.0
PANGOFT2_REQUIRED=1.2.0
POPT_REQUIRED=1.5
AC_SUBST(GDK_PIXBUF_REQUIRED)
......
......@@ -306,8 +306,8 @@ rsvg_parse_path_do_cmd (RSVGParsePathCtx *ctx, gboolean final)
y2 = (y3 + 2 * ctx->params[1]) * (1.0 / 3.0);
rsvg_bpath_def_curveto (ctx->bpath,
x1, y1, x2, y2, x3, y3);
ctx->rpx = x2;
ctx->rpy = y2;
ctx->rpx = ctx->params[0];
ctx->rpy = ctx->params[1];
ctx->cpx = x3;
ctx->cpy = y3;
ctx->param = 0;
......@@ -350,8 +350,8 @@ rsvg_parse_path_do_cmd (RSVGParsePathCtx *ctx, gboolean final)
y2 = (y3 + 2 * ctx->params[1]) * (1.0 / 3.0);
rsvg_bpath_def_curveto (ctx->bpath,
x1, y1, x2, y2, x3, y3);
ctx->rpx = x2;
ctx->rpy = y2;
ctx->rpx = ctx->params[0];
ctx->rpy = ctx->params[1];
ctx->cpx = x3;
ctx->cpy = y3;
}
......
......@@ -32,6 +32,8 @@
#include <libart_lgpl/art_affine.h>
#include <libart_lgpl/art_render_mask.h>
#include <pango/pangoft2.h>
#include "rsvg-shapes.h"
#if 0
......@@ -169,8 +171,16 @@ rsvg_text_handler_characters (RsvgSaxHandler *self, const xmlChar *ch, int len)
}
if (ctx->pango_context == NULL)
ctx->pango_context = pango_ft2_get_context ((guint)ctx->dpi, (guint)ctx->dpi);
{
PangoFT2FontMap *fontmap;
fontmap = PANGO_FT2_FONT_MAP (pango_ft2_font_map_new ());
pango_ft2_font_map_set_resolution (fontmap, ctx->dpi, ctx->dpi);
ctx->pango_context = pango_ft2_font_map_create_context (fontmap);
g_object_unref (fontmap);
}
layout = pango_layout_new (ctx->pango_context);
pango_layout_set_text (layout, string, -1);
font = pango_font_description_copy (pango_context_get_font_description (ctx->pango_context));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment