Home | History | Annotate | Download | only in autofit

Lines Matching refs:hints

242   af_get_segment_index( AF_GlyphHints  hints,
246 AF_AxisHints axis = &hints->axis[dimension];
247 AF_Point point = hints->points + point_idx;
287 af_get_edge_index( AF_GlyphHints hints,
291 AF_AxisHints axis = &hints->axis[dimension];
304 af_glyph_hints_dump_points( AF_GlyphHints hints,
307 AF_Point points = hints->points;
308 AF_Point limit = points + hints->num_points;
309 AF_Point* contour = hints->contours;
310 AF_Point* climit = contour + hints->num_contours;
316 if ( hints->num_points )
329 int segment_idx_0 = af_get_segment_index( hints, point_idx, 0 );
330 int segment_idx_1 = af_get_segment_index( hints, point_idx, 1 );
346 af_get_edge_index( hints, segment_idx_1, 1 ) ),
349 af_get_edge_index( hints, segment_idx_0, 0 ) ),
405 af_glyph_hints_dump_segments( AF_GlyphHints hints,
413 AF_AxisHints axis = &hints->axis[dimension];
414 AF_Point points = hints->points;
470 af_glyph_hints_get_num_segments( AF_GlyphHints hints,
480 axis = &hints->axis[dim];
496 af_glyph_hints_get_segment_offset( AF_GlyphHints hints,
513 axis = &hints->axis[dim];
544 af_glyph_hints_dump_edges( AF_GlyphHints hints,
552 AF_AxisHints axis = &hints->axis[dimension];
567 65536.0 * 64.0 / hints->x_scale,
568 10.0 * hints->x_scale / 65536.0 / 64.0 ));
572 65536.0 * 64.0 / hints->y_scale,
573 10.0 * hints->y_scale / 65536.0 / 64.0 ));
662 af_glyph_hints_init( AF_GlyphHints hints,
666 FT_MEM_ZERO( hints, sizeof ( *hints ) - sizeof ( hints->embedded ) );
667 hints->memory = memory;
672 af_glyph_hints_done( AF_GlyphHints hints )
678 if ( !( hints && hints->memory ) )
681 memory = hints->memory;
685 * buffers since they are really within the hints->points array
689 AF_AxisHints axis = &hints->axis[dim];
703 if ( hints->contours != hints->embedded.contours )
704 FT_FREE( hints->contours );
705 hints->max_contours = 0;
706 hints->num_contours = 0;
708 if ( hints->points != hints->embedded.points )
709 FT_FREE( hints->points );
710 hints->max_points = 0;
711 hints->num_points = 0;
713 hints->memory = NULL;
720 af_glyph_hints_rescale( AF_GlyphHints hints,
723 hints->metrics = metrics;
724 hints->scaler_flags = metrics->scaler.flags;
732 af_glyph_hints_reload( AF_GlyphHints hints,
738 FT_Fixed x_scale = hints->x_scale;
739 FT_Fixed y_scale = hints->y_scale;
740 FT_Pos x_delta = hints->x_delta;
741 FT_Pos y_delta = hints->y_delta;
742 FT_Memory memory = hints->memory;
745 hints->num_points = 0;
746 hints->num_contours = 0;
748 hints->axis[0].num_segments = 0;
749 hints->axis[0].num_edges = 0;
750 hints->axis[1].num_segments = 0;
751 hints->axis[1].num_edges = 0;
755 old_max = (FT_UInt)hints->max_contours;
759 if ( !hints->contours )
761 hints->contours = hints->embedded.contours;
762 hints->max_contours = AF_CONTOURS_EMBEDDED;
767 if ( hints->contours == hints->embedded.contours )
768 hints->contours = NULL;
772 if ( FT_RENEW_ARRAY( hints->contours, old_max, new_max ) )
775 hints->max_contours = (FT_Int)new_max;
784 old_max = (FT_UInt)hints->max_points;
788 if ( !hints->points )
790 hints->points = hints->embedded.points;
791 hints->max_points = AF_POINTS_EMBEDDED;
796 if ( hints->points == hints->embedded.points )
797 hints->points = NULL;
801 if ( FT_RENEW_ARRAY( hints->points, old_max, new_max ) )
804 hints->max_points = (FT_Int)new_max;
807 hints->num_points = outline->n_points;
808 hints->num_contours = outline->n_contours;
814 hints->axis[AF_DIMENSION_HORZ].major_dir = AF_DIR_UP;
815 hints->axis[AF_DIMENSION_VERT].major_dir = AF_DIR_LEFT;
819 hints->axis[AF_DIMENSION_HORZ].major_dir = AF_DIR_DOWN;
820 hints->axis[AF_DIMENSION_VERT].major_dir = AF_DIR_RIGHT;
823 hints->x_scale = x_scale;
824 hints->y_scale = y_scale;
825 hints->x_delta = x_delta;
826 hints->y_delta = y_delta;
828 hints->xmin_delta = 0;
829 hints->xmax_delta = 0;
831 points = hints->points;
832 if ( hints->num_points == 0 )
837 AF_Point point_limit = points + hints->num_points;
840 FT_UInt units_per_em = hints->metrics->scaler.face->units_per_EM;
906 AF_Point* contour = hints->contours;
907 AF_Point* contour_limit = contour + hints->num_contours;
935 AF_Point* contour_limit = hints->contours + hints->num_contours;
938 for ( contour = hints->contours; contour < contour_limit; contour++ )
1146 af_glyph_hints_save( AF_GlyphHints hints,
1149 AF_Point point = hints->points;
1150 AF_Point limit = point + hints->num_points;
1181 af_glyph_hints_align_edge_points( AF_GlyphHints hints,
1184 AF_AxisHints axis = & hints->axis[dim];
1256 af_glyph_hints_align_strong_points( AF_GlyphHints hints,
1259 AF_Point points = hints->points;
1260 AF_Point point_limit = points + hints->num_points;
1261 AF_AxisHints axis = &hints->axis[dim];
1507 af_glyph_hints_align_weak_points( AF_GlyphHints hints,
1510 AF_Point points = hints->points;
1511 AF_Point point_limit = points + hints->num_points;
1512 AF_Point* contour = hints->contours;
1513 AF_Point* contour_limit = contour + hints->num_contours;
1635 af_glyph_hints_scale_dim( AF_GlyphHints hints,
1640 AF_Point points = hints->points;
1641 AF_Point points_limit = points + hints->num_points;