diff options
author | Tor Andersson <tor@ghostscript.com> | 2009-02-23 21:28:20 +0100 |
---|---|---|
committer | Tor Andersson <tor@ghostscript.com> | 2009-02-23 21:28:20 +0100 |
commit | 6f9e2167d235a6b89ee13e3c98e5120a8c85fe29 (patch) | |
tree | 81fae599803e0ec2ff32f8098c27fd84bd63eeb2 /raster/render.c | |
parent | 5d500fad85344dcad7e6c0cf0463f5d58f6acea3 (diff) | |
download | mupdf-6f9e2167d235a6b89ee13e3c98e5120a8c85fe29.tar.xz |
Refactor fz_font and pdf_font mess into fz_font and pdf_fontdesc with more font logic on the PDF side and freetype rendering on the fitz side.
Diffstat (limited to 'raster/render.c')
-rw-r--r-- | raster/render.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/raster/render.c b/raster/render.c index bbdf019f..90ead6a7 100644 --- a/raster/render.c +++ b/raster/render.c @@ -315,7 +315,7 @@ rendertext(fz_renderer *gc, fz_textnode *text, fz_matrix ctm) fz_irect clip; fz_matrix tm, trm; fz_glyph glyph; - int i, x, y, cid; + int i, x, y, gid; tbox = fz_roundrect(fz_boundnode((fz_node*)text, ctm)); clip = fz_intersectirects(gc->clip, tbox); @@ -339,7 +339,7 @@ text->trm.a, text->trm.b, text->trm.c, text->trm.d); for (i = 0; i < text->len; i++) { - cid = text->els[i].cid; + gid = text->els[i].gid; tm.e = text->els[i].x; tm.f = text->els[i].y; trm = fz_concat(tm, ctm); @@ -348,7 +348,7 @@ text->trm.a, text->trm.b, text->trm.c, text->trm.d); trm.e = QUANT(trm.e - fz_floor(trm.e), HSUBPIX); trm.f = QUANT(trm.f - fz_floor(trm.f), VSUBPIX); - error = fz_renderglyph(gc->cache, &glyph, text->font, cid, trm); + error = fz_renderglyph(gc->cache, &glyph, text->font, gid, trm); if (error) return error; |