static FT_Library ftlibrary = 0;
-SWFFONT* swf_LoadTrueTypeFont(char*filename)
+SWFFONT* swf_LoadTrueTypeFont(const char*filename)
{
FT_Face face;
FT_Error error;
}
#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;
static int counter = 0;
-SWFFONT* swf_LoadT1Font(char*filename)
+SWFFONT* swf_LoadT1Font(const char*filename)
{
SWFFONT * font;
int nr;
#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;
return 0;
}
-SWFFONT* swf_LoadFont(char*filename)
+SWFFONT* swf_LoadFont(const char*filename)
{
int is_swf;
if(filename == 0)