- printf("\t.metrics = %s_metrics,\n", font_name);
- printf("\t.max_width = %d,\n", max_width);
- printf("\t.max_height = %d,\n", max_height);
- printf("\t.ascent = %d,\n", font.ascent);
- printf("};\n");
+ fprintf(out, "\t.metrics = %s_metrics,\n", font_name);
+ fprintf(out, "\t.max_width = %d,\n", max_width);
+ fprintf(out, "\t.max_height = %d,\n", max_height);
+ fprintf(out, "\t.ascent = %d,\n", font.ascent);
+ fprintf(out, "};\n");
+ int max_stride = (max_width + 31) >> 5;
+ fprintf(out, "__asm__(\".balign 4\\n.comm ao_glyph_temp 0x%x\");\n", max_stride * max_height * 4);