summaryrefslogtreecommitdiff
path: root/source/html
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2016-02-22 12:39:43 +0100
committerTor Andersson <tor.andersson@artifex.com>2016-02-22 12:39:43 +0100
commit35a0cb70629c57eb94cb99fec83f994d3d496a7b (patch)
tree0ca6829138eb11ce917586e2575fa45ad66fa4c4 /source/html
parent6c70e3bde6aa39250596a553ec2952700b214d05 (diff)
downloadmupdf-35a0cb70629c57eb94cb99fec83f994d3d496a7b.tar.xz
Rename fz_add_text to fz_show_glyph.
Match naming of fz_moveto/lineto etc for paths.
Diffstat (limited to 'source/html')
-rw-r--r--source/html/html-layout.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/html/html-layout.c b/source/html/html-layout.c
index 2735dfeb..8a7490c7 100644
--- a/source/html/html-layout.c
+++ b/source/html/html-layout.c
@@ -1156,7 +1156,7 @@ static void draw_flow_box(fz_context *ctx, fz_html *box, float page_top, float p
continue;
trm.e = *(float *)&p->x_offset;
trm.f = *(float *)&p->y_offset;
- fz_add_text(ctx, text, walker.font, 0, &trm, g->codepoint, c);
+ fz_show_glyph(ctx, text, walker.font, 0, &trm, g->codepoint, c);
break;
}
if (gp == walker.glyph_count)
@@ -1165,7 +1165,7 @@ static void draw_flow_box(fz_context *ctx, fz_html *box, float page_top, float p
* because we've been shaped away into another. We can't afford
* to just drop the codepoint as this will upset text extraction.
*/
- fz_add_text(ctx, text, walker.font, 0, &trm, -1, c);
+ fz_show_glyph(ctx, text, walker.font, 0, &trm, -1, c);
}
else
{
@@ -1179,7 +1179,7 @@ static void draw_flow_box(fz_context *ctx, fz_html *box, float page_top, float p
continue;
trm.e = *(float *)&p->x_offset;
trm.f = *(float *)&p->y_offset;
- fz_add_text(ctx, text, walker.font, 0, &trm, g->codepoint, -1);
+ fz_show_glyph(ctx, text, walker.font, 0, &trm, g->codepoint, -1);
}
}
idx += l;
@@ -1375,7 +1375,7 @@ static void draw_list_mark(fz_context *ctx, fz_html *box, float page_top, float
{
s += fz_chartorune(&c, s);
g = fz_encode_character_with_fallback(ctx, box->style.font, c, UCDN_SCRIPT_LATIN, &font);
- fz_add_text(ctx, text, font, 0, &trm, g, c);
+ fz_show_glyph(ctx, text, font, 0, &trm, g, c);
trm.e += fz_advance_glyph(ctx, font, g) * box->em;
}