summaryrefslogtreecommitdiff
path: root/include/mupdf/fitz/font.h
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2016-01-21 12:17:05 +0100
committerTor Andersson <tor.andersson@artifex.com>2016-01-21 12:17:05 +0100
commit1ceb3b2acf3b8b8c1d009a01e94957698e6ec142 (patch)
treec7a93502bfe3ef9a7b507a08d26dce18b37454bc /include/mupdf/fitz/font.h
parent835036fc550af059f2bc067fc39465a9bfda7c2f (diff)
downloadmupdf-1ceb3b2acf3b8b8c1d009a01e94957698e6ec142.tar.xz
Drop the const on fz_font.
The font is an immutable opaque structure, no need to add the const keyword since users aren't expected or expecting to change it.
Diffstat (limited to 'include/mupdf/fitz/font.h')
-rw-r--r--include/mupdf/fitz/font.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/include/mupdf/fitz/font.h b/include/mupdf/fitz/font.h
index eb3e1887..b6ea3362 100644
--- a/include/mupdf/fitz/font.h
+++ b/include/mupdf/fitz/font.h
@@ -90,20 +90,20 @@ fz_font *fz_new_font_from_memory(fz_context *ctx, const char *name, unsigned cha
fz_font *fz_new_font_from_buffer(fz_context *ctx, const char *name, fz_buffer *buffer, int index, int use_glyph_bbox);
fz_font *fz_new_font_from_file(fz_context *ctx, const char *name, const char *path, int index, int use_glyph_bbox);
-fz_font *fz_keep_font(fz_context *ctx, const fz_font *font);
-void fz_drop_font(fz_context *ctx, const fz_font *font);
+fz_font *fz_keep_font(fz_context *ctx, fz_font *font);
+void fz_drop_font(fz_context *ctx, fz_font *font);
void fz_set_font_bbox(fz_context *ctx, fz_font *font, float xmin, float ymin, float xmax, float ymax);
-fz_rect *fz_bound_glyph(fz_context *ctx, const fz_font *font, int gid, const fz_matrix *trm, fz_rect *r);
-int fz_glyph_cacheable(fz_context *ctx, const fz_font *font, int gid);
+fz_rect *fz_bound_glyph(fz_context *ctx, fz_font *font, int gid, const fz_matrix *trm, fz_rect *r);
+int fz_glyph_cacheable(fz_context *ctx, fz_font *font, int gid);
-void fz_run_t3_glyph(fz_context *ctx, const fz_font *font, int gid, const fz_matrix *trm, struct fz_device_s *dev);
+void fz_run_t3_glyph(fz_context *ctx, fz_font *font, int gid, const fz_matrix *trm, struct fz_device_s *dev);
void fz_decouple_type3_font(fz_context *ctx, fz_font *font, void *t3doc);
-float fz_advance_glyph(fz_context *ctx, const fz_font *font, int glyph);
-int fz_encode_character(fz_context *ctx, const fz_font *font, int unicode);
+float fz_advance_glyph(fz_context *ctx, fz_font *font, int glyph);
+int fz_encode_character(fz_context *ctx, fz_font *font, int unicode);
-void fz_print_font(fz_context *ctx, fz_output *out, const fz_font *font);
+void fz_print_font(fz_context *ctx, fz_output *out, fz_font *font);
#endif