diff options
Diffstat (limited to 'source/fitz/font.c')
-rw-r--r-- | source/fitz/font.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/fitz/font.c b/source/fitz/font.c index e67f64dc..07476235 100644 --- a/source/fitz/font.c +++ b/source/fitz/font.c @@ -1241,7 +1241,8 @@ fz_render_t3_glyph_pixmap(fz_context *ctx, fz_font *font, int gid, const fz_matr fz_irect_from_rect(&bbox, &bounds); fz_intersect_irect(&bbox, scissor); - glyph = fz_new_pixmap_with_bbox(ctx, model ? model : fz_device_gray(ctx), &bbox); + /* Glyphs must always have alpha */ + glyph = fz_new_pixmap_with_bbox(ctx, model, &bbox, 1); fz_clear_pixmap(ctx, glyph); dev = fz_new_draw_device_type3(ctx, glyph); |