summaryrefslogtreecommitdiff
path: root/include/mupdf/fitz/structured-text.h
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2017-08-21 16:54:02 +0200
committerTor Andersson <tor.andersson@artifex.com>2017-08-21 17:20:10 +0200
commitbdbbea6d8868489391c29a9b2e84902e02e5058b (patch)
tree2666b921515b56f6fcd285a25ea053c76ccd8800 /include/mupdf/fitz/structured-text.h
parent5947bedcbf684907b003b7088a59f091ca04326a (diff)
downloadmupdf-bdbbea6d8868489391c29a9b2e84902e02e5058b.tar.xz
Remove fz_char_and_box struct.
Use fz_stext_char directly instead.
Diffstat (limited to 'include/mupdf/fitz/structured-text.h')
-rw-r--r--include/mupdf/fitz/structured-text.h25
1 files changed, 2 insertions, 23 deletions
diff --git a/include/mupdf/fitz/structured-text.h b/include/mupdf/fitz/structured-text.h
index 922b8c84..4386fd31 100644
--- a/include/mupdf/fitz/structured-text.h
+++ b/include/mupdf/fitz/structured-text.h
@@ -101,31 +101,10 @@ struct fz_stext_char_s
fz_stext_char *next;
};
-typedef struct fz_char_and_box_s fz_char_and_box;
-
-struct fz_char_and_box_s
-{
- int c;
- fz_rect bbox;
-};
-
extern const char *fz_stext_options_usage;
-fz_char_and_box *fz_stext_char_at(fz_context *ctx, fz_char_and_box *cab, fz_stext_page *page, int idx);
-
-/*
- fz_stext_char_bbox: Return the bbox of a text char. Calculated from
- the supplied enclosing line.
-
- bbox: A place to store the bbox.
-
- line: The enclosing line.
-
- ch: The character.
-
- Returns bbox (updated).
-*/
-fz_rect *fz_stext_char_bbox(fz_context *ctx, fz_rect *bbox, fz_stext_line *line, fz_stext_char *ch);
+int fz_stext_char_count(fz_context *ctx, fz_stext_page *page);
+const fz_stext_char *fz_stext_char_at(fz_context *ctx, fz_stext_page *page, int idx);
/*
fz_new_stext_page: Create an empty text page.