summaryrefslogtreecommitdiff
path: root/fitzdraw
diff options
context:
space:
mode:
authorTor Andersson <tor@ghostscript.com>2010-01-07 01:18:52 +0100
committerTor Andersson <tor@ghostscript.com>2010-01-07 01:18:52 +0100
commitff2530fce783480d985a286bc8da3c3d001ed650 (patch)
tree6822864bc3fd609fa12157060e1f2a76535b3d0e /fitzdraw
parent662c6a3a0fe8bd09e90b877095f52a062eb92f22 (diff)
downloadmupdf-ff2530fce783480d985a286bc8da3c3d001ed650.tar.xz
Render text.
Diffstat (limited to 'fitzdraw')
-rw-r--r--fitzdraw/glyphcache.c19
1 files changed, 7 insertions, 12 deletions
diff --git a/fitzdraw/glyphcache.c b/fitzdraw/glyphcache.c
index 776b3e4c..dd06d2d3 100644
--- a/fitzdraw/glyphcache.c
+++ b/fitzdraw/glyphcache.c
@@ -294,7 +294,7 @@ evictall(fz_glyphcache *arena)
arena->used = 0;
}
-fz_error
+void
fz_renderglyph(fz_glyphcache *arena, fz_glyph *glyph, fz_font *font, int cid, fz_matrix ctm)
{
fz_error error;
@@ -325,7 +325,7 @@ fz_renderglyph(fz_glyphcache *arena, fz_glyph *glyph, fz_font *font, int cid, fz
ghits++;
- return fz_okay;
+ return;
}
gmisses++;
@@ -335,25 +335,22 @@ fz_renderglyph(fz_glyphcache *arena, fz_glyph *glyph, fz_font *font, int cid, fz
if (font->ftface)
{
- error = fz_renderftglyph(glyph, font, cid, ctm);
- if (error)
- return error;
+ fz_renderftglyph(glyph, font, cid, ctm);
}
else if (font->t3procs)
{
- error = fz_rendert3glyph(glyph, font, cid, ctm);
- if (error)
- return error;
+ fz_rendert3glyph(glyph, font, cid, ctm);
}
else
{
- return fz_throw("uninitialized font structure");
+ fz_warn("assert: uninitialized font structure");
+ return;
}
size = glyph->w * glyph->h;
if (size > arena->size / 6)
- return fz_okay;
+ return;
while (arena->load > arena->slots * 75 / 100)
{
@@ -381,7 +378,5 @@ fz_renderglyph(fz_glyphcache *arena, fz_glyph *glyph, fz_font *font, int cid, fz
glyph->samples = val->samples;
hashinsert(arena, &key, val);
-
- return fz_okay;
}