X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Fmodules%2Fswffont.c;h=cd553b820daa3aad769a060a644e1034bb9adfbf;hb=4826a0831b4d019e3ccb1fa1aea0f6138f80e49c;hp=ccb1a0f9c90f24ee5b4429d7f58457ee76d027e7;hpb=abfaccab0cee8c37baaae2b1bd3bd228d97605ae;p=swftools.git diff --git a/lib/modules/swffont.c b/lib/modules/swffont.c index ccb1a0f..cd553b8 100644 --- a/lib/modules/swffont.c +++ b/lib/modules/swffont.c @@ -116,7 +116,7 @@ static FT_Outline_Funcs outline_functions = static FT_Library ftlibrary = 0; -SWFFONT* swf_LoadTrueTypeFont(char*filename) +SWFFONT* swf_LoadTrueTypeFont(const char*filename) { FT_Face face; FT_Error error; @@ -373,7 +373,7 @@ SWFFONT* swf_LoadTrueTypeFont(char*filename) } #else //HAVE_FREETYPE -SWFFONT* swf_LoadTrueTypeFont(char*filename) +SWFFONT* swf_LoadTrueTypeFont(const char*filename) { fprintf(stderr, "Warning: no freetype library- not able to load %s\n", filename); return 0; @@ -389,7 +389,7 @@ static int t1lib_initialized = 0; static int counter = 0; -SWFFONT* swf_LoadT1Font(char*filename) +SWFFONT* swf_LoadT1Font(const char*filename) { SWFFONT * font; int nr; @@ -539,7 +539,7 @@ SWFFONT* swf_LoadT1Font(char*filename) #else -SWFFONT* swf_LoadT1Font(char*filename) +SWFFONT* swf_LoadT1Font(const char*filename) { fprintf(stderr, "Warning: no t1lib- not able to load %s\n", filename); return 0; @@ -571,7 +571,7 @@ static int isSWF(const char*filename) return 0; } -SWFFONT* swf_LoadFont(char*filename) +SWFFONT* swf_LoadFont(const char*filename) { int is_swf; if(filename == 0)