Index: ttf2lht/drv_approx.c =================================================================== --- ttf2lht/drv_approx.c (revision 18927) +++ ttf2lht/drv_approx.c (revision 18928) @@ -1,5 +1,7 @@ #include "ttf2lht.h" +char *drv_approx_comment = "!!"; + static double sqr(double a) { return a*a; @@ -12,13 +14,13 @@ double nodes = 10, td = 1.0 / nodes; FT_Vector v; - printf("## conic to {\n"); + if (drv_approx_comment != NULL) printf("%s conic to {\n", drv_approx_comment); for(t = 0.0; t <= 1.0; t += td) { v.x = sqr(1.0-t) * s->x + 2*t*(1.0-t)*control->x + t*t*to->x; v.y = sqr(1.0-t) * s->y + 2*t*(1.0-t)*control->y + t*t*to->y; s->funcs->line_to(&v, s); } - printf("## }\n"); + if (drv_approx_comment != NULL) printf("%s }\n", drv_approx_comment); s->x = to->x; s->y = to->y; @@ -28,6 +30,7 @@ int stroke_approx_cubic_to(const FT_Vector *control1, const FT_Vector *control2, const FT_Vector *to, void *s_) { stroke_t *s = (stroke_t *)s_; - printf("# cubic to\n"); + if (drv_approx_comment != NULL) printf("%s cubic to {\n", drv_approx_comment); + if (drv_approx_comment != NULL) printf("%s }\n", drv_approx_comment); return 0; } Index: ttf2lht/drv_approx.h =================================================================== --- ttf2lht/drv_approx.h (revision 18927) +++ ttf2lht/drv_approx.h (revision 18928) @@ -1,2 +1,4 @@ +extern char *drv_approx_comment; + int stroke_approx_conic_to(const FT_Vector *control, const FT_Vector *to, void *s_); int stroke_approx_cubic_to(const FT_Vector *control1, const FT_Vector *control2, const FT_Vector *to, void *s_);