int font_index;
font_encoding *fe;
page_data *page;
- int pageno;
FILE *fp;
char *filename;
paragraph *p;
sprintf(buf, "<%02X>", i + ranges[i] - 1);
objstream(cmap, buf);
sprintf(buf, "%hu\n",
+ (unsigned short)
sfnt_glyphtoindex(fe->font->info->fontfile,
fe->vector[i]));
objstream(cmap, buf);
sprintf(buf, "<%02X>", i);
objstream(cmap, buf);
sprintf(buf, "%hu\n",
+ (unsigned short)
sfnt_glyphtoindex(fe->font->info->fontfile,
fe->vector[i]));
objstream(cmap, buf);
/*
* Create and render the individual pages.
*/
- pageno = 0;
for (page = doc->pages; page; page = page->next) {
object *opage, *cstr;
rect *r;
else
fp = fopen(filename, "wb");
if (!fp) {
- error(err_cantopenw, filename);
+ err_cantopenw(filename);
return;
}