summaryrefslogtreecommitdiff
path: root/render/rendertext.c
diff options
context:
space:
mode:
authorTor Andersson <tor@ghostscript.com>2004-11-04 14:46:53 +0100
committerTor Andersson <tor@ghostscript.com>2004-11-04 14:46:53 +0100
commitcbbee31601e34f1f513a4d046d52963baebf07fa (patch)
tree6393fbd6066e53dcb7ed2b52f262f6ef0514e927 /render/rendertext.c
parent3386060e982e4fc353a4c405316c0c83bf459bab (diff)
downloadmupdf-cbbee31601e34f1f513a4d046d52963baebf07fa.tar.xz
type3 fonts
Diffstat (limited to 'render/rendertext.c')
-rw-r--r--render/rendertext.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/render/rendertext.c b/render/rendertext.c
index 1a3c49db..6819ccd8 100644
--- a/render/rendertext.c
+++ b/render/rendertext.c
@@ -78,11 +78,11 @@ fz_rendertext(fz_renderer *gc, fz_textnode *text, fz_matrix ctm)
tm.f = y;
trm = fz_concat(tm, ctm);
- ix = floor(trm.e);
- iy = floor(trm.f);
+ ix = fz_floor(trm.e);
+ iy = fz_floor(trm.f);
- trm.e = (trm.e - floor(trm.e));
- trm.f = (trm.f - floor(trm.f));
+ trm.e = (trm.e - fz_floor(trm.e));
+ trm.f = (trm.f - fz_floor(trm.f));
error = fz_renderglyph(gc->cache, &gl, text->font, g, trm);
if (error)
@@ -121,11 +121,11 @@ fz_rendercolortext(fz_renderer *gc, fz_textnode *text, fz_colornode *color, fz_m
tm.f = y;
trm = fz_concat(tm, ctm);
- ix = floor(trm.e);
- iy = floor(trm.f);
+ ix = fz_floor(trm.e);
+ iy = fz_floor(trm.f);
- trm.e = (trm.e - floor(trm.e));
- trm.f = (trm.f - floor(trm.f));
+ trm.e = (trm.e - fz_floor(trm.e));
+ trm.f = (trm.f - fz_floor(trm.f));
error = fz_renderglyph(gc->cache, &gl, text->font, g, trm);
if (error)