From 6f9e2167d235a6b89ee13e3c98e5120a8c85fe29 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Mon, 23 Feb 2009 21:28:20 +0100 Subject: 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. --- raster/render.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'raster/render.c') 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; -- cgit v1.2.3