@@ -107,7 +107,7 @@ Fixed getFixed(BYTE *s)
107
107
** is always 4 characters, though the last characters may be
108
108
** padding spaces.
109
109
-----------------------------------------------------------------------*/
110
- BYTE *GetTable (struct TTFONT *font, char *name)
110
+ BYTE *GetTable (struct TTFONT *font, const char *name)
111
111
{
112
112
BYTE *ptr;
113
113
ULONG x;
@@ -654,7 +654,7 @@ void sfnts_glyf_table(TTStreamWriter& stream, struct TTFONT *font, ULONG oldoffs
654
654
*/
655
655
void ttfont_sfnts (TTStreamWriter& stream, struct TTFONT *font)
656
656
{
657
- char *table_names[]= /* The names of all tables */
657
+ const char *table_names[]= /* The names of all tables */
658
658
{ /* which it is worth while */
659
659
" cvt " , /* to include in a Type 42 */
660
660
" fpgm" , /* PostScript font. */
@@ -828,7 +828,7 @@ void ttfont_sfnts(TTStreamWriter& stream, struct TTFONT *font)
828
828
** this array will instead convert PostScript character names
829
829
** to executable proceedures.
830
830
--------------------------------------------------------------*/
831
- char *Apple_CharStrings[]={
831
+ const char *Apple_CharStrings[]={
832
832
" .notdef" ," .null" ," nonmarkingreturn" ," space" ," exclam" ," quotedbl" ," numbersign" ,
833
833
" dollar" ," percent" ," ampersand" ," quotesingle" ," parenleft" ," parenright" ,
834
834
" asterisk" ," plus" , " comma" ," hyphen" ," period" ," slash" ," zero" ," one" ," two" ,
@@ -871,7 +871,7 @@ char *Apple_CharStrings[]={
871
871
** This routine is called by the one below.
872
872
** It is also called from pprdrv_tt2.c
873
873
*/
874
- char *ttfont_CharStrings_getname (struct TTFONT *font, int charindex)
874
+ const char *ttfont_CharStrings_getname (struct TTFONT *font, int charindex)
875
875
{
876
876
int GlyphIndex;
877
877
static char temp[80 ];
@@ -1227,7 +1227,7 @@ void get_pdf_charprocs(const char *filename, std::vector<int>& glyph_ids, TTDict
1227
1227
i != glyph_ids.end (); ++i) {
1228
1228
StringStreamWriter writer;
1229
1229
tt_type3_charproc (writer, &font, *i);
1230
- char * name = ttfont_CharStrings_getname (&font, *i);
1230
+ const char * name = ttfont_CharStrings_getname (&font, *i);
1231
1231
dict.add_pair (name, writer.str ().c_str ());
1232
1232
}
1233
1233
}
0 commit comments