45 #include FT_FREETYPE_H 46 #include FT_INTERNAL_DEBUG_H 49 #ifdef FT_DEBUG_LEVEL_ERROR 54 FT_Message(
const char* fmt,
61 vfprintf( stderr, fmt, ap );
69 FT_Panic(
const char* fmt,
76 vfprintf( stderr, fmt, ap );
101 #ifdef FT_DEBUG_LEVEL_TRACE 104 int ft_trace_levels[trace_count];
108 #define FT_TRACE_DEF( x ) #x , 110 static const char* ft_trace_toggles[trace_count + 1] =
112 #include FT_INTERNAL_TRACE_H 137 return ft_trace_toggles[
idx];
164 const char* ft2_debug = getenv(
"FT2_DEBUG" );
169 const char*
p = ft2_debug;
176 if ( *p ==
' ' || *p ==
'\t' || *p ==
',' || *p ==
';' || *p ==
'=' )
181 while ( *p && *p !=
':' )
184 if ( *p ==
':' && p > q )
190 for ( n = 0; n < trace_count; n++ )
192 const char* toggle = ft_trace_toggles[
n];
195 for ( i = 0; i <
len; i++ )
197 if ( toggle[i] != q[i] )
201 if ( i == len && toggle[i] == 0 )
217 if ( found >= 0 && level >= 0 )
219 if ( found == trace_any )
222 for ( n = 0; n < trace_count; n++ )
223 ft_trace_levels[n] = level;
226 ft_trace_levels[found] =
level;
GLdouble GLdouble GLdouble GLdouble q
FT_Trace_Get_Name(FT_Int idx)