[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[freetype2] gsoc-anurag-2023 2727d668b: silence
From: |
Werner Lemberg |
Subject: |
[freetype2] gsoc-anurag-2023 2727d668b: silence |
Date: |
Fri, 29 Sep 2023 16:17:01 -0400 (EDT) |
branch: gsoc-anurag-2023
commit 2727d668bf5ea0776274032e1ec0a8748757296e
Author: Anurag Thakur <anurag105csec21@bpitindia.edu.in>
Commit: Anurag Thakur <anurag105csec21@bpitindia.edu.in>
silence
---
src/base/ftobjs.c | 27 ++++++++++++++-------------
src/dense/ftdense.c | 4 ++--
2 files changed, 16 insertions(+), 15 deletions(-)
diff --git a/src/base/ftobjs.c b/src/base/ftobjs.c
index a50395557..c5d2e5df3 100644
--- a/src/base/ftobjs.c
+++ b/src/base/ftobjs.c
@@ -2573,8 +2573,8 @@ int conic_to2(FT_GlyphSlot* slot, FT_Vector *control,
FT_Vector *from, FT_Vector
The division by four is omitted to save time.
*/
//FT_PreLine ptr = (*slot)->prelines;
- if((*slot)->glyph_index == 38)
- printf("conic from %d, %d to %d, %d via %d, %d\n", from->x, from->y, to->x,
to->y, control->x, control->y);
+ //if((*slot)->glyph_index == 38)
+ //printf("conic from %d, %d to %d, %d via %d, %d\n", from->x, from->y,
to->x, to->y, control->x, control->y);
FT_Vector aP0 = { from->x , from->y};
FT_Vector aP1 = { control->x, control->y };
FT_Vector aP2 = { to->x, to->y };
@@ -2725,10 +2725,10 @@ int conic_to2(FT_GlyphSlot* slot, FT_Vector *control,
FT_Vector *from, FT_Vector
tags--;
}
- if (((*slot)->glyph_index == 37))
- {
- printf("moveit\n");
- }
+ // if (((*slot)->glyph_index == 37))
+ // {
+ // printf("moveit\n");
+ // }
FT_TRACE5(( " move to (%.2f, %.2f)\n",
(double)v_start.x / 64, (double)v_start.y / 64 ));
@@ -2773,9 +2773,9 @@ int conic_to2(FT_GlyphSlot* slot, FT_Vector *control,
FT_Vector *from, FT_Vector
FT_TRACE5(( " line to (%.2f, %.2f)\n",
(double)vec.x / 64, (double)vec.y / 64 ));
//error = func_interface->line_to( &vec, user );
- if((*slot)->glyph_index == 37)
- printf( " line to (%.2f, %.2f)\n",
- (double)vec.x / 64, (double)vec.y / 64 );
+ //if((*slot)->glyph_index == 37)
+ // printf( " line to (%.2f, %.2f)\n",
+ //(double)vec.x / 64, (double)vec.y / 64 );
FT_PreLine pl3 = malloc(sizeof(FT_PreLineRec));
pl3->x1 = ptr->x2;
pl3->y1 = ptr->y2;
@@ -2865,9 +2865,9 @@ int conic_to2(FT_GlyphSlot* slot, FT_Vector *control,
FT_Vector *from, FT_Vector
// FT_TRACE5(( " line to (%.2f, %.2f)\n",
// (double)v_start.x / 64, (double)v_start.y / 64 ));
// error = func_interface->line_to( &v_start, user );
- if((*slot)->glyph_index == 37)
- printf( " line to (%.2f, %.2f)\n",
- (double)v_start.x / 64, (double)v_start.y / 64 );
+ //if((*slot)->glyph_index == 37)
+ //printf( " line to (%.2f, %.2f)\n",
+ // (double)v_start.x / 64, (double)v_start.y / 64 );
FT_PreLine pl2 = malloc(sizeof(FT_PreLineRec));
pl2->x1 = ptr->x2;
pl2->y1 = ptr->y2;
@@ -3139,7 +3139,8 @@ int conic_to2(FT_GlyphSlot* slot, FT_Vector *control,
FT_Vector *from, FT_Vector
face->garray = (FT_GlyphSlot*)malloc(
face->driver->clazz->slot_object_size * face->num_glyphs );
- error = FT_Set_Char_Size( face, 0, 160 * 64, 300, 300 );
+ //error = FT_Set_Char_Size( face, 0, 160 * 64, 300, 300 );
+ error = FT_Set_Pixel_Sizes( face, 0, 500);
// int glyph_index = FT_Get_Char_Index( face, 'A' );
// error = FT_Load_Glyph( face, glyph_index,
FT_LOAD_NO_HINTING );
diff --git a/src/dense/ftdense.c b/src/dense/ftdense.c
index 0b066774f..363126a48 100644
--- a/src/dense/ftdense.c
+++ b/src/dense/ftdense.c
@@ -88,7 +88,7 @@ dense_line_to( const FT_Vector* to, dense_worker* worker )
void
dense_render_line( dense_worker* worker, FT_Pos tox, FT_Pos toy )
{
- printf("Line from %d, %d to %d, %d\n", worker->prev_x, worker->prev_y, tox,
toy);
+ //printf("Line from %d, %d to %d, %d\n", worker->prev_x, worker->prev_y,
tox, toy);
FT26D6 fx = worker->prev_x>>2;
FT26D6 fy = worker->prev_y>>2;
@@ -521,7 +521,7 @@ dense_raster_render( FT_Raster raster, const
FT_Raster_Params* params )
const FT_Outline* outline = (const FT_Outline*)params->source;
FT_Bitmap* target_map = params->target;
FT_PreLine pl = params->prelines;
- printf("%d\n", pl->next->x1);
+ //printf("%d\n", pl->next->x1);
dense_worker worker[1];
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [freetype2] gsoc-anurag-2023 2727d668b: silence,
Werner Lemberg <=