void pdf_load_type3_glyphs(fz_context *ctx, pdf_document *doc, pdf_font_desc *fontdesc, int nested_depth) { int i; fz_try(ctx) { for (i = 0; i < 256; i++) { if (fontdesc->font->t3procs[i]) { fz_prepare_t3_glyph(ctx, fontdesc->font, i, nested_depth); fontdesc->size += 0; // TODO: display list size calculation } } } fz_catch(ctx) { fz_rethrow_if(ctx, FZ_ERROR_TRYLATER); fz_warn(ctx, "Type3 glyph load failed: %s", fz_caught_message(ctx)); } }
void pdf_load_type3_glyphs(pdf_document *xref, pdf_font_desc *fontdesc, int nested_depth) { int i; fz_context *ctx = xref->ctx; fz_try(ctx) { for (i = 0; i < 256; i++) { if (fontdesc->font->t3procs[i]) { fz_prepare_t3_glyph(ctx, fontdesc->font, i, nested_depth); fontdesc->size += 0; // TODO: display list size calculation } } } fz_catch(ctx) { fz_warn(ctx, "Type3 glyph load failed: %s", fz_caught(ctx)); } }