added control points. Looks correct now.

2003-07-24  Michael Natterer  <mitch@gimp.org>

	* app/text/gimptext-vectors.c: added control points.
	Looks correct now.
This commit is contained in:
Michael Natterer 2003-07-24 13:25:31 +00:00 committed by Michael Natterer
parent b10a8b4fec
commit 8ea47faa35
2 changed files with 39 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2003-07-24 Michael Natterer <mitch@gimp.org>
* app/text/gimptext-vectors.c: added control points.
Looks correct now.
2003-07-24 Michael Natterer <mitch@gimp.org>
* plug-ins/script-fu/scripts/test-sphere.scm: added image, layer,

View File

@ -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);