- fprintf(fp, "/%s\n", fe->vector[i] ? fe->vector[i] : ".notdef");
- fprintf(fp, "] def /Metrics 256 dict dup begin\n");
- for (i = 0; i < 256; i++) {
- if (fe->indices[i] >= 0) {
- double width = fe->font->widths[fe->indices[i]];
- fprintf(fp, "/%s %g def\n", fe->vector[i],
- 1000.0 * width / 4096.0);
- }
- }
- fprintf(fp, "end def currentdict end\n");
+ fprintf(fp, "/%s%c", fe->vector[i] ? fe->vector[i] : ".notdef",
+ i % 4 == 3 ? '\n' : ' ');
+ fprintf(fp, "] def\n");
+ fprintf(fp, "currentdict end\n");