Home | History | Annotate | Download | only in autofit

Lines Matching refs:hints

240   af_get_segment_index( AF_GlyphHints  hints,
244 AF_AxisHints axis = &hints->axis[dimension];
245 AF_Point point = hints->points + point_idx;
285 af_get_edge_index( AF_GlyphHints hints,
289 AF_AxisHints axis = &hints->axis[dimension];
302 af_glyph_hints_dump_points( AF_GlyphHints hints,
305 AF_Point points = hints->points;
306 AF_Point limit = points + hints->num_points;
312 if ( hints->num_points )
321 int segment_idx_0 = af_get_segment_index( hints, point_idx, 0 );
322 int segment_idx_1 = af_get_segment_index( hints, point_idx, 1 );
331 af_get_edge_index( hints, segment_idx_1, 1 ) ),
334 af_get_edge_index( hints, segment_idx_0, 0 ) ),
387 af_glyph_hints_dump_segments( AF_GlyphHints hints,
395 AF_AxisHints axis = &hints->axis[dimension];
396 AF_Point points = hints->points;
448 af_glyph_hints_get_num_segments( AF_GlyphHints hints,
458 axis = &hints->axis[dim];
474 af_glyph_hints_get_segment_offset( AF_GlyphHints hints,
491 axis = &hints->axis[dim];
522 af_glyph_hints_dump_edges( AF_GlyphHints hints,
530 AF_AxisHints axis = &hints->axis[dimension];
628 af_glyph_hints_init( AF_GlyphHints hints,
632 FT_MEM_ZERO( hints, sizeof ( *hints ) - sizeof ( hints->embedded ) );
633 hints->memory = memory;
638 af_glyph_hints_done( AF_GlyphHints hints )
644 if ( !( hints && hints->memory ) )
647 memory = hints->memory;
651 * buffers since they are really within the hints->points array
655 AF_AxisHints axis = &hints->axis[dim];
669 if ( hints->contours != hints->embedded.contours )
670 FT_FREE( hints->contours );
671 hints->max_contours = 0;
672 hints->num_contours = 0;
674 if ( hints->points != hints->embedded.points )
675 FT_FREE( hints->points );
676 hints->max_points = 0;
677 hints->num_points = 0;
679 hints->memory = NULL;
686 af_glyph_hints_rescale( AF_GlyphHints hints,
689 hints->metrics = metrics;
690 hints->scaler_flags = metrics->scaler.flags;
698 af_glyph_hints_reload( AF_GlyphHints hints,
704 FT_Fixed x_scale = hints->x_scale;
705 FT_Fixed y_scale = hints->y_scale;
706 FT_Pos x_delta = hints->x_delta;
707 FT_Pos y_delta = hints->y_delta;
708 FT_Memory memory = hints->memory;
711 hints->num_points = 0;
712 hints->num_contours = 0;
714 hints->axis[0].num_segments = 0;
715 hints->axis[0].num_edges = 0;
716 hints->axis[1].num_segments = 0;
717 hints->axis[1].num_edges = 0;
721 old_max = (FT_UInt)hints->max_contours;
725 if ( hints->contours == NULL )
727 hints->contours = hints->embedded.contours;
728 hints->max_contours = AF_CONTOURS_EMBEDDED;
733 if ( hints->contours == hints->embedded.contours )
734 hints->contours = NULL;
738 if ( FT_RENEW_ARRAY( hints->contours, old_max, new_max ) )
741 hints->max_contours = (FT_Int)new_max;
750 old_max = (FT_UInt)hints->max_points;
754 if ( hints->points == NULL )
756 hints->points = hints->embedded.points;
757 hints->max_points = AF_POINTS_EMBEDDED;
762 if ( hints->points == hints->embedded.points )
763 hints->points = NULL;
767 if ( FT_RENEW_ARRAY( hints->points, old_max, new_max ) )
770 hints->max_points = (FT_Int)new_max;
773 hints->num_points = outline->n_points;
774 hints->num_contours = outline->n_contours;
780 hints->axis[AF_DIMENSION_HORZ].major_dir = AF_DIR_UP;
781 hints->axis[AF_DIMENSION_VERT].major_dir = AF_DIR_LEFT;
785 hints->axis[AF_DIMENSION_HORZ].major_dir = AF_DIR_DOWN;
786 hints->axis[AF_DIMENSION_VERT].major_dir = AF_DIR_RIGHT;
789 hints->x_scale = x_scale;
790 hints->y_scale = y_scale;
791 hints->x_delta = x_delta;
792 hints->y_delta = y_delta;
794 hints->xmin_delta = 0;
795 hints->xmax_delta = 0;
797 points = hints->points;
798 if ( hints->num_points == 0 )
803 AF_Point point_limit = points + hints->num_points;
854 AF_Point* contour = hints->contours;
855 AF_Point* contour_limit = contour + hints->num_contours;
880 FT_UInt units_per_em = hints->metrics->scaler.face->units_per_EM;
885 AF_Point* contour_limit = hints->contours + hints->num_contours;
888 for ( contour = hints->contours; contour < contour_limit; contour++ )
1096 af_glyph_hints_save( AF_GlyphHints hints,
1099 AF_Point point = hints->points;
1100 AF_Point limit = point + hints->num_points;
1131 af_glyph_hints_align_edge_points( AF_GlyphHints hints,
1134 AF_AxisHints axis = & hints->axis[dim];
1206 af_glyph_hints_align_strong_points( AF_GlyphHints hints,
1209 AF_Point points = hints->points;
1210 AF_Point point_limit = points + hints->num_points;
1211 AF_AxisHints axis = &hints->axis[dim];
1457 af_glyph_hints_align_weak_points( AF_GlyphHints hints,
1460 AF_Point points = hints->points;
1461 AF_Point point_limit = points + hints->num_points;
1462 AF_Point* contour = hints->contours;
1463 AF_Point* contour_limit = contour + hints->num_contours;
1585 af_glyph_hints_scale_dim( AF_GlyphHints hints,
1590 AF_Point points = hints->points;
1591 AF_Point points_limit = points + hints->num_points;