[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[freetype2] gsoc-anurag-2022 89572e394 08/18: Remove printfs
From: |
Werner Lemberg |
Subject: |
[freetype2] gsoc-anurag-2022 89572e394 08/18: Remove printfs |
Date: |
Thu, 11 Aug 2022 04:28:55 -0400 (EDT) |
branch: gsoc-anurag-2022
commit 89572e394ecb596a35d97f57b46c9eb96b2d8905
Author: Anurag Thakur <anurag105csec21@bpitindia.edu.in>
Commit: Anurag Thakur <anurag105csec21@bpitindia.edu.in>
Remove printfs
---
src/dense/ftdense.c | 61 ++++++++++++++++++++++++++-------------------------
src/smooth/ftgrays.c | 6 ++---
src/smooth/ftsmooth.c | 2 --
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 )
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [freetype2] gsoc-anurag-2022 89572e394 08/18: Remove printfs,
Werner Lemberg <=