From 8ea47faa356ee001cdbeb7435c3a4eeec06acc51 Mon Sep 17 00:00:00 2001 From: Michael Natterer Date: Thu, 24 Jul 2003 13:25:31 +0000 Subject: [PATCH] added control points. Looks correct now. 2003-07-24 Michael Natterer * app/text/gimptext-vectors.c: added control points. Looks correct now. --- ChangeLog | 5 +++++ app/text/gimptext-vectors.c | 34 ++++++++++++++++++++++++++++++++++ 2 files changed, 39 insertions(+) diff --git a/ChangeLog b/ChangeLog index 99cb70b51d..8043f65fbe 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2003-07-24 Michael Natterer + + * app/text/gimptext-vectors.c: added control points. + Looks correct now. + 2003-07-24 Michael Natterer * plug-ins/script-fu/scripts/test-sphere.scm: added image, layer, diff --git a/app/text/gimptext-vectors.c b/app/text/gimptext-vectors.c index f005140be8..60f3592a23 100644 --- a/app/text/gimptext-vectors.c +++ b/app/text/gimptext-vectors.c @@ -118,10 +118,17 @@ moveto (FT_Vector *to, context->stroke = gimp_bezier_stroke_new (); gimp_vectors_stroke_add (context->vectors, context->stroke); + g_object_unref (context->stroke); context->anchor = gimp_bezier_stroke_extend (GIMP_BEZIER_STROKE (context->stroke), &coords, NULL, EXTEND_SIMPLE); + context->anchor = + gimp_bezier_stroke_extend (GIMP_BEZIER_STROKE (context->stroke), + &coords, context->anchor, EXTEND_SIMPLE); + context->anchor = + gimp_bezier_stroke_extend (GIMP_BEZIER_STROKE (context->stroke), + &coords, context->anchor, EXTEND_SIMPLE); return 0; } @@ -140,6 +147,12 @@ lineto (FT_Vector *to, gimp_text_vector_coords (context, to, &coords); + context->anchor = + gimp_bezier_stroke_extend (GIMP_BEZIER_STROKE (context->stroke), + &coords, context->anchor, EXTEND_SIMPLE); + context->anchor = + gimp_bezier_stroke_extend (GIMP_BEZIER_STROKE (context->stroke), + &coords, context->anchor, EXTEND_SIMPLE); context->anchor = gimp_bezier_stroke_extend (GIMP_BEZIER_STROKE (context->stroke), &coords, context->anchor, EXTEND_SIMPLE); @@ -160,8 +173,17 @@ conicto (FT_Vector *control, if (! context->stroke) return 0; + gimp_text_vector_coords (context, control, &coords); + + context->anchor = + gimp_bezier_stroke_extend (GIMP_BEZIER_STROKE (context->stroke), + &coords, context->anchor, EXTEND_SIMPLE); + gimp_text_vector_coords (context, to, &coords); + context->anchor = + gimp_bezier_stroke_extend (GIMP_BEZIER_STROKE (context->stroke), + &coords, context->anchor, EXTEND_SIMPLE); context->anchor = gimp_bezier_stroke_extend (GIMP_BEZIER_STROKE (context->stroke), &coords, context->anchor, EXTEND_SIMPLE); @@ -183,8 +205,20 @@ cubicto (FT_Vector *control1, if (! context->stroke) return 0; + gimp_text_vector_coords (context, control1, &coords); + + context->anchor = + gimp_bezier_stroke_extend (GIMP_BEZIER_STROKE (context->stroke), + &coords, context->anchor, EXTEND_SIMPLE); + gimp_text_vector_coords (context, to, &coords); + context->anchor = + gimp_bezier_stroke_extend (GIMP_BEZIER_STROKE (context->stroke), + &coords, context->anchor, EXTEND_SIMPLE); + + gimp_text_vector_coords (context, control2, &coords); + context->anchor = gimp_bezier_stroke_extend (GIMP_BEZIER_STROKE (context->stroke), &coords, context->anchor, EXTEND_SIMPLE);