From bdbbea6d8868489391c29a9b2e84902e02e5058b Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Mon, 21 Aug 2017 16:54:02 +0200 Subject: Remove fz_char_and_box struct. Use fz_stext_char directly instead. --- include/mupdf/fitz/structured-text.h | 25 ++----------------------- 1 file changed, 2 insertions(+), 23 deletions(-) (limited to 'include') 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. -- cgit v1.2.3