summaryrefslogtreecommitdiff
path: root/fitz/fitz.h
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2012-01-11 22:08:28 +0100
committerTor Andersson <tor.andersson@artifex.com>2012-01-11 22:08:28 +0100
commit96b8920028fe35eefd8ea63ef8ca3fca70997fe8 (patch)
tree73eaf2b64f645582850e7deba18033fc49c613a9 /fitz/fitz.h
parent177346693da57e72d1e6c01edbdf7ce75e010a3f (diff)
downloadmupdf-96b8920028fe35eefd8ea63ef8ca3fca70997fe8.tar.xz
Add glyph bbox cache.
Diffstat (limited to 'fitz/fitz.h')
-rw-r--r--fitz/fitz.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/fitz/fitz.h b/fitz/fitz.h
index ddaa6fe3..889ba5e2 100644
--- a/fitz/fitz.h
+++ b/fitz/fitz.h
@@ -1044,8 +1044,14 @@ struct fz_font_s
fz_rect bbox; /* font bbox is used only for t3 fonts */
+ /* per glyph bounding box cache */
+ int use_glyph_bbox;
+ int bbox_count;
+ fz_rect *bbox_table;
+
+ /* substitute metrics */
int width_count;
- int *width_table; /* substitute metrics */
+ int *width_table; // in 1000 units
};
void fz_new_font_context(fz_context *ctx);
@@ -1053,8 +1059,8 @@ void fz_free_font_context(fz_context *ctx);
fz_font *fz_new_type3_font(fz_context *ctx, char *name, fz_matrix matrix);
-fz_font *fz_new_font_from_memory(fz_context *ctx, unsigned char *data, int len, int index);
-fz_font *fz_new_font_from_file(fz_context *ctx, char *path, int index);
+fz_font *fz_new_font_from_memory(fz_context *ctx, unsigned char *data, int len, int index, int use_glyph_bbox);
+fz_font *fz_new_font_from_file(fz_context *ctx, char *path, int index, int use_glyph_bbox);
fz_font *fz_keep_font(fz_font *font);
void fz_drop_font(fz_context *ctx, fz_font *font);