@@ -107,7 +107,7 @@ Fixed getFixed(BYTE *s)
107107** is always 4 characters, though the last characters may be
108108** padding spaces.
109109-----------------------------------------------------------------------*/
110- BYTE *GetTable (struct TTFONT *font, char *name)
110+ BYTE *GetTable (struct TTFONT *font, const char *name)
111111 {
112112 BYTE *ptr;
113113 ULONG x;
@@ -654,7 +654,7 @@ void sfnts_glyf_table(TTStreamWriter& stream, struct TTFONT *font, ULONG oldoffs
654654*/
655655void ttfont_sfnts (TTStreamWriter& stream, struct TTFONT *font)
656656 {
657- char *table_names[]= /* The names of all tables */
657+ const char *table_names[]= /* The names of all tables */
658658 { /* which it is worth while */
659659 " cvt " , /* to include in a Type 42 */
660660 " fpgm" , /* PostScript font. */
@@ -828,7 +828,7 @@ void ttfont_sfnts(TTStreamWriter& stream, struct TTFONT *font)
828828** this array will instead convert PostScript character names
829829** to executable proceedures.
830830--------------------------------------------------------------*/
831- char *Apple_CharStrings[]={
831+ const char *Apple_CharStrings[]={
832832" .notdef" ," .null" ," nonmarkingreturn" ," space" ," exclam" ," quotedbl" ," numbersign" ,
833833" dollar" ," percent" ," ampersand" ," quotesingle" ," parenleft" ," parenright" ,
834834" asterisk" ," plus" , " comma" ," hyphen" ," period" ," slash" ," zero" ," one" ," two" ,
@@ -871,7 +871,7 @@ char *Apple_CharStrings[]={
871871** This routine is called by the one below.
872872** It is also called from pprdrv_tt2.c
873873*/
874- char *ttfont_CharStrings_getname (struct TTFONT *font, int charindex)
874+ const char *ttfont_CharStrings_getname (struct TTFONT *font, int charindex)
875875 {
876876 int GlyphIndex;
877877 static char temp[80 ];
@@ -1227,7 +1227,7 @@ void get_pdf_charprocs(const char *filename, std::vector<int>& glyph_ids, TTDict
12271227 i != glyph_ids.end (); ++i) {
12281228 StringStreamWriter writer;
12291229 tt_type3_charproc (writer, &font, *i);
1230- char * name = ttfont_CharStrings_getname (&font, *i);
1230+ const char * name = ttfont_CharStrings_getname (&font, *i);
12311231 dict.add_pair (name, writer.str ().c_str ());
12321232 }
12331233}
0 commit comments