summaryrefslogtreecommitdiff
path: root/include/mupdf/fitz/text.h
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2016-04-05 12:31:26 +0200
committerTor Andersson <tor.andersson@artifex.com>2016-04-05 13:40:04 +0200
commita45b3a21c67476c703ddd5d5b4755364671c26c1 (patch)
treea755086e3fa8dd4a11d044f7765875b6f6ad0e19 /include/mupdf/fitz/text.h
parent353a05d9e8e8023e1c3c24816f712bdcb05502ca (diff)
downloadmupdf-a45b3a21c67476c703ddd5d5b4755364671c26c1.tar.xz
Clean up bidi enum names.
And use the same enum for both the internal bidi code and the layout code.
Diffstat (limited to 'include/mupdf/fitz/text.h')
-rw-r--r--include/mupdf/fitz/text.h12
1 files changed, 2 insertions, 10 deletions
diff --git a/include/mupdf/fitz/text.h b/include/mupdf/fitz/text.h
index 84f72957..52035bc5 100644
--- a/include/mupdf/fitz/text.h
+++ b/include/mupdf/fitz/text.h
@@ -29,14 +29,6 @@ struct fz_text_item_s
int ucs; /* -1 for one ucs to many gid mappings */
};
-typedef enum fz_text_direction_e
-{
- /* There are various possible 'directions' for text */
- FZ_DIR_UNSET = 0, /* Unset (or Neutral). All PDF text is sent as this. */
- FZ_DIR_R2L = 1, /* Text is r2l */
- FZ_DIR_L2R = 2 /* Text is l2r */
-} fz_text_direction;
-
typedef enum fz_text_language_e
{
FZ_LANG_UNSET = 0
@@ -66,8 +58,8 @@ fz_text *fz_new_text(fz_context *ctx);
fz_text *fz_keep_text(fz_context *ctx, const fz_text *text);
void fz_drop_text(fz_context *ctx, const fz_text *text);
-void fz_show_glyph(fz_context *ctx, fz_text *text, fz_font *font, const fz_matrix *trm, int glyph, int unicode, int wmode, int bidi_level, fz_text_direction markup_dir, fz_text_language language);
-void fz_show_string(fz_context *ctx, fz_text *text, fz_font *font, fz_matrix *trm, const char *s, int wmode, int bidi_level, fz_text_direction markup_dir, fz_text_language language);
+void fz_show_glyph(fz_context *ctx, fz_text *text, fz_font *font, const fz_matrix *trm, int glyph, int unicode, int wmode, int bidi_level, fz_bidi_direction markup_dir, fz_text_language language);
+void fz_show_string(fz_context *ctx, fz_text *text, fz_font *font, fz_matrix *trm, const char *s, int wmode, int bidi_level, fz_bidi_direction markup_dir, fz_text_language language);
fz_rect *fz_bound_text(fz_context *ctx, const fz_text *text, const fz_stroke_state *stroke, const fz_matrix *ctm, fz_rect *r);
fz_text *fz_clone_text(fz_context *ctx, const fz_text *text);