2 # This subroutine detects the ttf capability of the system and checks if the arial font is available
3 // Modified on ( 22/01/2004) By Walid Fathalla
4 # Set the font type here
5 $ttf_fonttype='arial.ttf';
6 $font_path=$root_path.'main/imgcreator/';
8 # Check if TTF text possible
9 if(function_exists(ImageTTFText
)){
10 # Workaround to avoid upper/lower case error
11 if(file_exists($font_path.$ttf_fonttype)){
13 $arial=$font_path.$ttf_fonttype;
14 }elseif(file_exists($font_path.strtoupper($ttf_fonttype))){
16 $arial=$font_path.strtoupper($ttf_fonttype);