From e1d7a913f08446b77071ea71e4aef89588d68334 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Tue, 26 Nov 2013 11:30:50 +0100 Subject: Add const keyword to some font function parameters. --- include/mupdf/fitz/font.h | 8 ++++---- include/mupdf/pdf/font.h | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'include') diff --git a/include/mupdf/fitz/font.h b/include/mupdf/fitz/font.h index 5fc07b81..8cd6921e 100644 --- a/include/mupdf/fitz/font.h +++ b/include/mupdf/fitz/font.h @@ -69,11 +69,11 @@ typedef fz_buffer *(*fz_load_system_font_func)(fz_context *ctx, const char *name void fz_install_load_system_font_func(fz_context *ctx, fz_load_system_font_func f); fz_buffer *fz_load_system_font(fz_context *ctx, const char *name); -fz_font *fz_new_type3_font(fz_context *ctx, char *name, const fz_matrix *matrix); +fz_font *fz_new_type3_font(fz_context *ctx, const char *name, const fz_matrix *matrix); -fz_font *fz_new_font_from_memory(fz_context *ctx, char *name, unsigned char *data, int len, int index, int use_glyph_bbox); -fz_font *fz_new_font_from_buffer(fz_context *ctx, char *name, fz_buffer *buffer, int index, int use_glyph_bbox); -fz_font *fz_new_font_from_file(fz_context *ctx, char *name, char *path, int index, int use_glyph_bbox); +fz_font *fz_new_font_from_memory(fz_context *ctx, const char *name, unsigned char *data, int len, int index, int use_glyph_bbox); +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, fz_font *font); void fz_drop_font(fz_context *ctx, fz_font *font); diff --git a/include/mupdf/pdf/font.h b/include/mupdf/pdf/font.h index ce140051..5b1cd8cd 100644 --- a/include/mupdf/pdf/font.h +++ b/include/mupdf/pdf/font.h @@ -105,7 +105,7 @@ void pdf_load_to_unicode(pdf_document *doc, pdf_font_desc *font, char **strings, int pdf_font_cid_to_gid(fz_context *ctx, pdf_font_desc *fontdesc, int cid); -unsigned char *pdf_lookup_builtin_font(char *name, unsigned int *len); +unsigned char *pdf_lookup_builtin_font(const char *name, unsigned int *len); unsigned char *pdf_lookup_substitute_font(int mono, int serif, int bold, int italic, unsigned int *len); unsigned char *pdf_lookup_substitute_cjk_font(int ros, int serif, unsigned int *len); -- cgit v1.2.3