Remove printfs

This commit is contained in:
Anurag Thakur 2021-10-31 18:57:21 +05:30
parent 44892f8212
commit dffb269d06
3 changed files with 34 additions and 35 deletions

View File

@ -139,6 +139,7 @@ RasterFP_DrawLine( RasterFP* aRasterFP, RasterFP_Point aP0, RasterFP_Point aP1 )
}
if ( recursive )
{
printf("Recursive shit\n");
aP0.m_x += aRasterFP->m_origin_x;
aP0.m_y += aRasterFP->m_origin_y;
aP1.m_x += aRasterFP->m_origin_x;
@ -420,36 +421,36 @@ dense_render_glyph( RasterFP* aRasterFP, const FT_Bitmap* target )
// }
// printf("pulu %d\n", aRasterFP->m_h);
printf( "Outputting bitmap\n" );
for ( int i = 0; i < aRasterFP->m_h; i++ )
{
printf( "\n" );
for ( int j = 0; j < aRasterFP->m_w; j++ )
{
float strength = *( source + ( i * aRasterFP->m_w + j ) );
if ( strength > 0.90 )
{
printf( "@|" );
}
else if ( strength > 0.70 )
{
printf( "#|" );
}
else if ( strength > 0.45 )
{
printf( "+|" );
}
else if ( strength > 0.20 )
{
printf( "*|" );
}
else
{
printf( ".|" );
}
}
}
printf( "\n" );
//printf( "Outputting bitmap\n" );
// for ( int i = 0; i < aRasterFP->m_h; i++ )
// {
// printf( "\n" );
// for ( int j = 0; j < aRasterFP->m_w; j++ )
// {
// float strength = *( source + ( i * aRasterFP->m_w + j ) );
// if ( strength > 0.90 )
// {
// printf( "@|" );
// }
// else if ( strength > 0.70 )
// {
// printf( "#|" );
// }
// else if ( strength > 0.45 )
// {
// printf( "+|" );
// }
// else if ( strength > 0.20 )
// {
// printf( "*|" );
// }
// else
// {
// printf( ".|" );
// }
// }
// }
// printf( "\n" );
unsigned char* dest = target->buffer;
unsigned char* dest_end = target->buffer + aRasterFP->m_w * aRasterFP->m_h;

View File

@ -876,12 +876,12 @@ typedef ptrdiff_t FT_PtrDist;
TCoord fx1, fy1, fx2, fy2;
TCoord ex1, ey1, ex2, ey2;
printf( "Line from {%li, %li} to {%li, %li}, with a maximum dimensions of %d by %d\n", ras.x, ras.y, to_x,
to_y, ras.max_ex, ras.max_ey );
// printf( "Line from {%li, %li} to {%li, %li}, with a maximum dimensions of %d by %d\n", ras.x, ras.y, to_x,
// to_y, ras.max_ex, ras.max_ey );
ey1 = TRUNC( ras.y );
ey2 = TRUNC( to_y );
printf("Truncation reduced prev y from %ld to %d\n", ras.y, ey1);
// printf("Truncation reduced prev y from %ld to %d\n", ras.y, ey1);
/* perform vertical clipping */
if ( ( ey1 >= ras.max_ey && ey2 >= ras.max_ey ) ||

View File

@ -493,8 +493,6 @@
/* translate outline to render it into the bitmap */
if ( x_shift || y_shift )
FT_Outline_Translate( outline, x_shift, y_shift );
printf( "x_shift is %li\n", x_shift );
printf( "y_shift is %li\n", y_shift );
if ( mode == FT_RENDER_MODE_NORMAL ||
mode == FT_RENDER_MODE_LIGHT )