summaryrefslogtreecommitdiff
path: root/fitz/res_font.c
diff options
context:
space:
mode:
authorTor Andersson <tor@ghostscript.com>2010-04-06 00:37:45 +0200
committerTor Andersson <tor@ghostscript.com>2010-04-06 00:37:45 +0200
commitfc0c17314f40e758e19de549be5b506f93cea2b9 (patch)
tree9eb0a4e8f7a53d6406d1d4bd8a63eeec3cc99362 /fitz/res_font.c
parentb761cb01c5ac977efed3a60f896f4bdc9cd744f0 (diff)
downloadmupdf-fc0c17314f40e758e19de549be5b506f93cea2b9.tar.xz
Support rendering alpha mask only with the device colorspace set to NULL. Use this to render type 3 fonts.
Diffstat (limited to 'fitz/res_font.c')
-rw-r--r--fitz/res_font.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/fitz/res_font.c b/fitz/res_font.c
index 0c314b32..817bc3eb 100644
--- a/fitz/res_font.c
+++ b/fitz/res_font.c
@@ -368,8 +368,6 @@ fz_rendert3glyph(fz_glyph *glyph, fz_font *font, int gid, fz_matrix trm)
glyph->h = 0;
glyph->samples = nil;
- printf("render t3 glyph %d\n", gid);
-
/* TODO: make it reentrant */
static fz_pixmap *pixmap = nil;
if (pixmap)
@@ -392,13 +390,11 @@ fz_rendert3glyph(fz_glyph *glyph, fz_font *font, int gid, fz_matrix trm)
dev = fz_newdrawdevice(pixmap);
contents->rp = contents->bp;
- error = font->t3runcontentstream(dev, ctm, 1, font->t3xref, font->t3resources, contents);
+ error = font->t3runcontentstream(dev, ctm, font->t3xref, font->t3resources, contents);
if (error)
fz_catch(error, "cannot draw type3 glyph");
fz_freedrawdevice(dev);
- fz_debugpixmap(pixmap, "g");
-
glyph->x = pixmap->x;
glyph->y = pixmap->y;
glyph->w = pixmap->w;