Index: ttf2lht/drv_poly.c =================================================================== --- ttf2lht/drv_poly.c (revision 18953) +++ ttf2lht/drv_poly.c (revision 18954) @@ -70,11 +70,12 @@ pcb_coord_t n, i; pcb_vnode_t *v; + printf(" li:simplepoly.%d {\n", s->spid++); n = pl->Count; for(i = 0, v = &pl->head; i < n; v = v->next, i++) { - printf("line %d %d %d %d\n", v->point[0], v->point[1], v->next->point[0], v->next->point[1]); + printf(" %fmil; %fmil\n", OTX(&s->s, v->point[0]), OTY(&s->s, v->point[1])); } - + printf(" }\n"); } void stroke_poly_start(stroke_t *s_, int chr) @@ -109,14 +110,16 @@ } if (pcb_poly_valid(s->pa)) { - printf(" width=%dmil; delta=12.0mil;\n", s->pa->contour_tree->bbox.x2 - s->pa->contour_tree->bbox.x1); + s->spid = 0; + printf(" width=%fmil; delta=12.0mil;\n", OTX(&s->s, s->pa->contour_tree->bbox.x2 - s->pa->contour_tree->bbox.x1)); printf(" li:objects {\n"); r_NoHolesPolygonDicer(s->pa, emit, s); + printf(" }\n"); } else fprintf(stderr, "Invalid outlines\n"); - printf(" }\n"); + printf(" }\n"); } void stroke_poly_uninit(stroke_t *s_) Index: ttf2lht/drv_poly.h =================================================================== --- ttf2lht/drv_poly.h (revision 18953) +++ ttf2lht/drv_poly.h (revision 18954) @@ -12,6 +12,8 @@ /* the resulting polyarea */ pcb_polyarea_t *pa; + + int spid; } poly_stroke_t; extern poly_stroke_t poly_stroke;