summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnurag Thakur <anurag105csec21@bpitindia.edu.in>2021-10-31 18:57:21 +0530
committerAnurag Thakur <anurag105csec21@bpitindia.edu.in>2022-10-04 03:16:11 +0530
commite122ecf1e5a8596834775e520aa111b0bca06e92 (patch)
treeb2c91d2a9fb688e5b2b3bd6d04440b908730b53f
parent1e0918c41cf423f732bfee19eaaa906f97e2393a (diff)
downloadfreetype2-e122ecf1e5a8596834775e520aa111b0bca06e92.tar.gz
Remove printfs
-rw-r--r--src/dense/ftdense.c61
-rw-r--r--src/smooth/ftgrays.c6
-rw-r--r--src/smooth/ftsmooth.c2
3 files changed, 34 insertions, 35 deletions
diff --git a/src/dense/ftdense.c b/src/dense/ftdense.c
index bd4a49b2d..0cf5f2793 100644
--- a/src/dense/ftdense.c
+++ b/src/dense/ftdense.c
@@ -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;
diff --git a/src/smooth/ftgrays.c b/src/smooth/ftgrays.c
index 0a40aa237..083eb9c8c 100644
--- a/src/smooth/ftgrays.c
+++ b/src/smooth/ftgrays.c
@@ -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 ) ||
diff --git a/src/smooth/ftsmooth.c b/src/smooth/ftsmooth.c
index 41778870b..df227c375 100644
--- a/src/smooth/ftsmooth.c
+++ b/src/smooth/ftsmooth.c
@@ -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 )