Index: work/util/ttf2lht/drv_poly.c =================================================================== --- work/util/ttf2lht/drv_poly.c (revision 18950) +++ work/util/ttf2lht/drv_poly.c (revision 18951) @@ -79,7 +79,10 @@ void stroke_poly_start(stroke_t *s_, int chr) { - + if ((chr <= 32) || (chr > 126) || (chr == '&') || (chr == '#') || (chr == '{') || (chr == '}') || (chr == '/') || (chr == ':') || (chr == ';') || (chr == '=') || (chr == '\\') || (chr == ':')) + printf(" ha:&%02x {\n", chr); + else + printf(" ha:%c {\n", chr); } void stroke_poly_finish(stroke_t *s_) @@ -105,10 +108,15 @@ fprintf(stderr, "Failed to include negative outline\n"); } - if (!pcb_poly_valid(s->pa)) + 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); + printf(" li:objects {\n"); + r_NoHolesPolygonDicer(s->pa, emit, s); + } + else fprintf(stderr, "Invalid outlines\n"); - else - r_NoHolesPolygonDicer(s->pa, emit, s); + + printf(" }\n"); } void stroke_poly_uninit(stroke_t *s_)