diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2017-08-08 14:07:51 +0200 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2017-08-17 13:38:48 +0200 |
commit | 16aeb9588b60ad4df716ef9782493f57ee5d9797 (patch) | |
tree | 70970b04482554bc8b3ee13da0582ac75483626b /source/fitz/stext-output.c | |
parent | 7225ddf9df514c6c88ecbe01c708137a324456c7 (diff) | |
download | mupdf-16aeb9588b60ad4df716ef9782493f57ee5d9797.tar.xz |
Add direction of writing vector to fz_stext_line struct.
For non-rotated text, this vector will always be [1 0].
Diffstat (limited to 'source/fitz/stext-output.c')
-rw-r--r-- | source/fitz/stext-output.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source/fitz/stext-output.c b/source/fitz/stext-output.c index f5f72412..78136c16 100644 --- a/source/fitz/stext-output.c +++ b/source/fitz/stext-output.c @@ -311,8 +311,10 @@ fz_print_stext_page_as_xml(fz_context *ctx, fz_output *out, fz_stext_page *page) const char *s; fz_rect rect; - fz_write_printf(ctx, out, "<line bbox=\"%g %g %g %g\">\n", - line->bbox.x0, line->bbox.y0, line->bbox.x1, line->bbox.y1); + fz_write_printf(ctx, out, "<line bbox=\"%g %g %g %g\" wmode=\"%d\" dir=\"%g %g\">\n", + line->bbox.x0, line->bbox.y0, line->bbox.x1, line->bbox.y1, + line->wmode, + line->dir.x, line->dir.y); for (ch = line->first_char; ch; ch = ch->next) { |