summaryrefslogtreecommitdiff
path: root/fitz/fitz_res.h
diff options
context:
space:
mode:
authorTor Andersson <tor@ghostscript.com>2010-04-24 20:36:46 +0200
committerTor Andersson <tor@ghostscript.com>2010-04-24 20:36:46 +0200
commit7884b0e64811d129986e25da898debfa1e0aa2e8 (patch)
tree623a98d2443189792b94e52c626969175ecdf864 /fitz/fitz_res.h
parent6c9882818e4afc1502c6200f082794811d394b1c (diff)
downloadmupdf-7884b0e64811d129986e25da898debfa1e0aa2e8.tar.xz
Add font and font size information to text spans.
Diffstat (limited to 'fitz/fitz_res.h')
-rw-r--r--fitz/fitz_res.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/fitz/fitz_res.h b/fitz/fitz_res.h
index b9199f14..ed3a5635 100644
--- a/fitz/fitz_res.h
+++ b/fitz/fitz_res.h
@@ -112,15 +112,18 @@ struct fz_textchar_s
struct fz_textspan_s
{
- int ascender, descender;
+ fz_font *font;
+ float size;
int len, cap;
fz_textchar *text;
fz_textspan *next;
+ int eol;
};
fz_textspan * fz_newtextspan(void);
void fz_freetextspan(fz_textspan *line);
void fz_debugtextspan(fz_textspan *line);
+void fz_debugtextspanxml(fz_textspan *span);
fz_device *fz_newtextdevice(fz_textspan *text);