diff options
Diffstat (limited to 'Build/source/texk/web2c/luatexdir/font/dofont.c')
-rw-r--r-- | Build/source/texk/web2c/luatexdir/font/dofont.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Build/source/texk/web2c/luatexdir/font/dofont.c b/Build/source/texk/web2c/luatexdir/font/dofont.c index 61b6b27528b..4e026f339a3 100644 --- a/Build/source/texk/web2c/luatexdir/font/dofont.c +++ b/Build/source/texk/web2c/luatexdir/font/dofont.c @@ -37,7 +37,7 @@ static char *font_error_message(pointer u, char *nom, scaled s) { char *str = xmalloc(256); char *c = makecstring(zget_cs_text(u)); - char *extra = "metric data not found or bad"; + const char *extra = "metric data not found or bad"; if (s >= 0) { snprintf(str, 255, "Font \\%s=%s at %gpt not loadable: %s", c, nom, (double) s / 65536, extra); @@ -50,7 +50,7 @@ static char *font_error_message(pointer u, char *nom, scaled s) return str; } -static int do_define_font(integer f, char *cnom, scaled s, integer natural_dir) +static int do_define_font(integer f, const char *cnom, scaled s, integer natural_dir) { boolean res; /* was the callback successful? */ @@ -146,7 +146,7 @@ int read_font_info(pointer u, str_number nom, scaled s, integer natural_dir) free(cnom); return f; } else { - char *help[] = { "I wasn't able to read the size data for this font,", + const char *help[] = { "I wasn't able to read the size data for this font,", "so I will ignore the font specification.", "[Wizards can fix TFM files using TFtoPL/PLtoTF.]", "You might try inserting a different font spec;", @@ -167,7 +167,7 @@ int read_font_info(pointer u, str_number nom, scaled s, integer natural_dir) the |font_tables| array, and we could attempt to reuse those */ -int find_font_id(char *nom, scaled s) +int find_font_id(const char *nom, scaled s) { integer f; f = new_font(); |