diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2011-05-31 17:33:15 +0200 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2011-05-31 17:33:15 +0200 |
commit | 1323675852c82c8dbc79b46d7bfd882e3282edc0 (patch) | |
tree | f208ab396fae0d7bc49251501c3fd3732e168a5f /xps/xps_glyphs.c | |
parent | 97b83d84e3d10ccd298f9c54713323a3e41ce7f3 (diff) | |
download | mupdf-1323675852c82c8dbc79b46d7bfd882e3282edc0.tar.xz |
Use fz_atof in XPS interpreter.
Diffstat (limited to 'xps/xps_glyphs.c')
-rw-r--r-- | xps/xps_glyphs.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/xps/xps_glyphs.c b/xps/xps_glyphs.c index 71c0b2a8..4b7a8ceb 100644 --- a/xps/xps_glyphs.c +++ b/xps/xps_glyphs.c @@ -210,7 +210,7 @@ xps_parse_real_num(char *s, float *number) *p++ = *s++; *p = 0; if (buf[0]) - *number = atof(buf); + *number = fz_atof(buf); return s; } @@ -531,10 +531,10 @@ xps_parse_glyphs(xps_context *ctx, fz_matrix ctm, if (clip_att || clip_tag) xps_clip(ctx, ctm, dict, clip_att, clip_tag); - font_size = atof(font_size_att); + font_size = fz_atof(font_size_att); text = xps_parse_glyphs_imp(ctx, ctm, font, font_size, - atof(origin_x_att), atof(origin_y_att), + fz_atof(origin_x_att), fz_atof(origin_y_att), is_sideways, bidi_level, indices_att, unicode_att); area = fz_bound_text(text, ctm); @@ -557,7 +557,7 @@ xps_parse_glyphs(xps_context *ctx, fz_matrix ctm, xps_parse_color(ctx, base_uri, fill_att, &colorspace, samples); if (fill_opacity_att) - samples[0] = atof(fill_opacity_att); + samples[0] = fz_atof(fill_opacity_att); xps_set_color(ctx, colorspace, samples); fz_fill_text(ctx->dev, text, ctm, |