Anurag Thakur pushed to branch gsoc-anurag-2023 at FreeType / FreeType
Commits:
2 changed files:
Changes:
src/base/ftobjs.c
... |
... |
@@ -2573,8 +2573,8 @@ int conic_to2(FT_GlyphSlot* slot, FT_Vector *control, FT_Vector *from, FT_Vector |
2573
|
2573
|
The division by four is omitted to save time.
|
2574
|
2574
|
*/
|
2575
|
2575
|
//FT_PreLine ptr = (*slot)->prelines;
|
2576
|
|
- if((*slot)->glyph_index == 38)
|
2577
|
|
- printf("conic from %d, %d to %d, %d via %d, %d\n", from->x, from->y, to->x, to->y, control->x, control->y);
|
|
2576
|
+ //if((*slot)->glyph_index == 38)
|
|
2577
|
+ //printf("conic from %d, %d to %d, %d via %d, %d\n", from->x, from->y, to->x, to->y, control->x, control->y);
|
2578
|
2578
|
FT_Vector aP0 = { from->x , from->y};
|
2579
|
2579
|
FT_Vector aP1 = { control->x, control->y };
|
2580
|
2580
|
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 |
2725
|
2725
|
tags--;
|
2726
|
2726
|
}
|
2727
|
2727
|
|
2728
|
|
- if (((*slot)->glyph_index == 37))
|
2729
|
|
- {
|
2730
|
|
- printf("moveit\n");
|
2731
|
|
- }
|
|
2728
|
+ // if (((*slot)->glyph_index == 37))
|
|
2729
|
+ // {
|
|
2730
|
+ // printf("moveit\n");
|
|
2731
|
+ // }
|
2732
|
2732
|
|
2733
|
2733
|
FT_TRACE5(( " move to (%.2f, %.2f)\n",
|
2734
|
2734
|
(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 |
2773
|
2773
|
FT_TRACE5(( " line to (%.2f, %.2f)\n",
|
2774
|
2774
|
(double)vec.x / 64, (double)vec.y / 64 ));
|
2775
|
2775
|
//error = func_interface->line_to( &vec, user );
|
2776
|
|
- if((*slot)->glyph_index == 37)
|
2777
|
|
- printf( " line to (%.2f, %.2f)\n",
|
2778
|
|
- (double)vec.x / 64, (double)vec.y / 64 );
|
|
2776
|
+ //if((*slot)->glyph_index == 37)
|
|
2777
|
+ // printf( " line to (%.2f, %.2f)\n",
|
|
2778
|
+ //(double)vec.x / 64, (double)vec.y / 64 );
|
2779
|
2779
|
FT_PreLine pl3 = malloc(sizeof(FT_PreLineRec));
|
2780
|
2780
|
pl3->x1 = ptr->x2;
|
2781
|
2781
|
pl3->y1 = ptr->y2;
|
... |
... |
@@ -2865,9 +2865,9 @@ int conic_to2(FT_GlyphSlot* slot, FT_Vector *control, FT_Vector *from, FT_Vector |
2865
|
2865
|
// FT_TRACE5(( " line to (%.2f, %.2f)\n",
|
2866
|
2866
|
// (double)v_start.x / 64, (double)v_start.y / 64 ));
|
2867
|
2867
|
// error = func_interface->line_to( &v_start, user );
|
2868
|
|
- if((*slot)->glyph_index == 37)
|
2869
|
|
- printf( " line to (%.2f, %.2f)\n",
|
2870
|
|
- (double)v_start.x / 64, (double)v_start.y / 64 );
|
|
2868
|
+ //if((*slot)->glyph_index == 37)
|
|
2869
|
+ //printf( " line to (%.2f, %.2f)\n",
|
|
2870
|
+ // (double)v_start.x / 64, (double)v_start.y / 64 );
|
2871
|
2871
|
FT_PreLine pl2 = malloc(sizeof(FT_PreLineRec));
|
2872
|
2872
|
pl2->x1 = ptr->x2;
|
2873
|
2873
|
pl2->y1 = ptr->y2;
|
... |
... |
@@ -3139,7 +3139,8 @@ int conic_to2(FT_GlyphSlot* slot, FT_Vector *control, FT_Vector *from, FT_Vector |
3139
|
3139
|
|
3140
|
3140
|
face->garray = (FT_GlyphSlot*)malloc(
|
3141
|
3141
|
face->driver->clazz->slot_object_size * face->num_glyphs );
|
3142
|
|
- error = FT_Set_Char_Size( face, 0, 160 * 64, 300, 300 );
|
|
3142
|
+ //error = FT_Set_Char_Size( face, 0, 160 * 64, 300, 300 );
|
|
3143
|
+ error = FT_Set_Pixel_Sizes( face, 0, 500);
|
3143
|
3144
|
// int glyph_index = FT_Get_Char_Index( face, 'A' );
|
3144
|
3145
|
// error = FT_Load_Glyph( face, glyph_index, FT_LOAD_NO_HINTING );
|
3145
|
3146
|
|
src/dense/ftdense.c
... |
... |
@@ -88,7 +88,7 @@ dense_line_to( const FT_Vector* to, dense_worker* worker ) |
88
|
88
|
void
|
89
|
89
|
dense_render_line( dense_worker* worker, FT_Pos tox, FT_Pos toy )
|
90
|
90
|
{
|
91
|
|
- printf("Line from %d, %d to %d, %d\n", worker->prev_x, worker->prev_y, tox, toy);
|
|
91
|
+ //printf("Line from %d, %d to %d, %d\n", worker->prev_x, worker->prev_y, tox, toy);
|
92
|
92
|
|
93
|
93
|
FT26D6 fx = worker->prev_x>>2;
|
94
|
94
|
FT26D6 fy = worker->prev_y>>2;
|
... |
... |
@@ -521,7 +521,7 @@ dense_raster_render( FT_Raster raster, const FT_Raster_Params* params ) |
521
|
521
|
const FT_Outline* outline = (const FT_Outline*)params->source;
|
522
|
522
|
FT_Bitmap* target_map = params->target;
|
523
|
523
|
FT_PreLine pl = params->prelines;
|
524
|
|
- printf("%d\n", pl->next->x1);
|
|
524
|
+ //printf("%d\n", pl->next->x1);
|
525
|
525
|
|
526
|
526
|
dense_worker worker[1];
|
527
|
527
|
|
|