summaryrefslogtreecommitdiff
path: root/fitz/dev_text.c
diff options
context:
space:
mode:
Diffstat (limited to 'fitz/dev_text.c')
-rw-r--r--fitz/dev_text.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/fitz/dev_text.c b/fitz/dev_text.c
index 7a56b56c..b92372a1 100644
--- a/fitz/dev_text.c
+++ b/fitz/dev_text.c
@@ -42,7 +42,7 @@ fz_free_text_sheet(fz_context *ctx, fz_text_sheet *sheet)
}
static fz_text_style *
-fz_find_text_style_imp(fz_context *ctx, fz_text_sheet *sheet,
+fz_lookup_text_style_imp(fz_context *ctx, fz_text_sheet *sheet,
float size, fz_font *font, int wmode, int script)
{
fz_text_style *style;
@@ -71,7 +71,7 @@ fz_find_text_style_imp(fz_context *ctx, fz_text_sheet *sheet,
}
static fz_text_style *
-fz_find_text_style(fz_context *ctx, fz_text_sheet *sheet, fz_text *text, fz_matrix *ctm,
+fz_lookup_text_style(fz_context *ctx, fz_text_sheet *sheet, fz_text *text, fz_matrix *ctm,
fz_colorspace *colorspace, float *color, float alpha, fz_stroke_state *stroke)
{
float size = 1.0f;
@@ -86,7 +86,7 @@ fz_find_text_style(fz_context *ctx, fz_text_sheet *sheet, fz_text *text, fz_matr
trm = fz_concat(tm, *ctm);
size = fz_matrix_expansion(trm);
}
- return fz_find_text_style_imp(ctx, sheet, size, font, wmode, 0);
+ return fz_lookup_text_style_imp(ctx, sheet, size, font, wmode, 0);
}
fz_text_page *
@@ -178,7 +178,7 @@ append_line(fz_context *ctx, fz_text_block *block, fz_text_line *line)
}
static fz_text_block *
-find_block_for_line(fz_context *ctx, fz_text_page *page, fz_text_line *line)
+lookup_block_for_line(fz_context *ctx, fz_text_page *page, fz_text_line *line)
{
float size = line->len > 0 && line->spans[0].len > 0 ? line->spans[0].style->size : 1;
int i;
@@ -210,7 +210,7 @@ find_block_for_line(fz_context *ctx, fz_text_page *page, fz_text_line *line)
static void
insert_line(fz_context *ctx, fz_text_page *page, fz_text_line *line)
{
- append_line(ctx, find_block_for_line(ctx, page, line), line);
+ append_line(ctx, lookup_block_for_line(ctx, page, line), line);
}
static fz_rect
@@ -447,7 +447,7 @@ fz_text_fill_text(fz_device *dev, fz_text *text, fz_matrix ctm,
{
fz_text_device *tdev = dev->user;
fz_text_style *style;
- style = fz_find_text_style(dev->ctx, tdev->sheet, text, &ctm, colorspace, color, alpha, NULL);
+ style = fz_lookup_text_style(dev->ctx, tdev->sheet, text, &ctm, colorspace, color, alpha, NULL);
fz_text_extract(dev->ctx, tdev, text, ctm, style);
}
@@ -457,7 +457,7 @@ fz_text_stroke_text(fz_device *dev, fz_text *text, fz_stroke_state *stroke, fz_m
{
fz_text_device *tdev = dev->user;
fz_text_style *style;
- style = fz_find_text_style(dev->ctx, tdev->sheet, text, &ctm, colorspace, color, alpha, stroke);
+ style = fz_lookup_text_style(dev->ctx, tdev->sheet, text, &ctm, colorspace, color, alpha, stroke);
fz_text_extract(dev->ctx, tdev, text, ctm, style);
}
@@ -466,7 +466,7 @@ fz_text_clip_text(fz_device *dev, fz_text *text, fz_matrix ctm, int accumulate)
{
fz_text_device *tdev = dev->user;
fz_text_style *style;
- style = fz_find_text_style(dev->ctx, tdev->sheet, text, &ctm, NULL, NULL, 0, NULL);
+ style = fz_lookup_text_style(dev->ctx, tdev->sheet, text, &ctm, NULL, NULL, 0, NULL);
fz_text_extract(dev->ctx, tdev, text, ctm, style);
}
@@ -475,7 +475,7 @@ fz_text_clip_stroke_text(fz_device *dev, fz_text *text, fz_stroke_state *stroke,
{
fz_text_device *tdev = dev->user;
fz_text_style *style;
- style = fz_find_text_style(dev->ctx, tdev->sheet, text, &ctm, NULL, NULL, 0, stroke);
+ style = fz_lookup_text_style(dev->ctx, tdev->sheet, text, &ctm, NULL, NULL, 0, stroke);
fz_text_extract(dev->ctx, tdev, text, ctm, style);
}
@@ -484,7 +484,7 @@ fz_text_ignore_text(fz_device *dev, fz_text *text, fz_matrix ctm)
{
fz_text_device *tdev = dev->user;
fz_text_style *style;
- style = fz_find_text_style(dev->ctx, tdev->sheet, text, &ctm, NULL, NULL, 0, NULL);
+ style = fz_lookup_text_style(dev->ctx, tdev->sheet, text, &ctm, NULL, NULL, 0, NULL);
fz_text_extract(dev->ctx, tdev, text, ctm, style);
}