Home | History | Annotate | Download | only in autofit

Lines Matching refs:hints

171   af_glyph_hints_dump_points( AF_GlyphHints  hints )
173 AF_Point points = hints->points;
174 AF_Point limit = points + hints->num_points;
241 af_glyph_hints_dump_segments( AF_GlyphHints hints )
248 AF_AxisHints axis = &hints->axis[dimension];
286 af_glyph_hints_get_num_segments( AF_GlyphHints hints,
296 axis = &hints->axis[dim];
312 af_glyph_hints_get_segment_offset( AF_GlyphHints hints,
327 axis = &hints->axis[dim];
349 af_glyph_hints_dump_edges( AF_GlyphHints hints )
356 AF_AxisHints axis = &hints->axis[dimension];
402 af_glyph_hints_dump_points( AF_GlyphHints hints )
404 FT_UNUSED( hints );
409 af_glyph_hints_dump_segments( AF_GlyphHints hints )
411 FT_UNUSED( hints );
416 af_glyph_hints_get_num_segments( AF_GlyphHints hints,
420 FT_UNUSED( hints );
429 af_glyph_hints_get_segment_offset( AF_GlyphHints hints,
434 FT_UNUSED( hints );
444 af_glyph_hints_dump_edges( AF_GlyphHints hints )
446 FT_UNUSED( hints );
508 af_glyph_hints_init( AF_GlyphHints hints,
511 FT_ZERO( hints );
512 hints->memory = memory;
517 af_glyph_hints_done( AF_GlyphHints hints )
519 if ( hints && hints->memory )
521 FT_Memory memory = hints->memory;
527 * buffers since they are really within the hints->points array
531 AF_AxisHints axis = &hints->axis[dim];
543 FT_FREE( hints->contours );
544 hints->max_contours = 0;
545 hints->num_contours = 0;
547 FT_FREE( hints->points );
548 hints->num_points = 0;
549 hints->max_points = 0;
551 hints->memory = NULL;
559 af_glyph_hints_rescale( AF_GlyphHints hints,
562 hints->metrics = metrics;
563 hints->scaler_flags = metrics->scaler.flags;
571 af_glyph_hints_reload( AF_GlyphHints hints,
577 FT_Fixed x_scale = hints->x_scale;
578 FT_Fixed y_scale = hints->y_scale;
579 FT_Pos x_delta = hints->x_delta;
580 FT_Pos y_delta = hints->y_delta;
581 FT_Memory memory = hints->memory;
584 hints->num_points = 0;
585 hints->num_contours = 0;
587 hints->axis[0].num_segments = 0;
588 hints->axis[0].num_edges = 0;
589 hints->axis[1].num_segments = 0;
590 hints->axis[1].num_edges = 0;
594 old_max = hints->max_contours;
599 if ( FT_RENEW_ARRAY( hints->contours, old_max, new_max ) )
602 hints->max_contours = new_max;
611 old_max = hints->max_points;
616 if ( FT_RENEW_ARRAY( hints->points, old_max, new_max ) )
619 hints->max_points = new_max;
622 hints->num_points = outline->n_points;
623 hints->num_contours = outline->n_contours;
629 hints->axis[AF_DIMENSION_HORZ].major_dir = AF_DIR_UP;
630 hints->axis[AF_DIMENSION_VERT].major_dir = AF_DIR_LEFT;
634 hints->axis[AF_DIMENSION_HORZ].major_dir = AF_DIR_DOWN;
635 hints->axis[AF_DIMENSION_VERT].major_dir = AF_DIR_RIGHT;
638 hints->x_scale = x_scale;
639 hints->y_scale = y_scale;
640 hints->x_delta = x_delta;
641 hints->y_delta = y_delta;
643 hints->xmin_delta = 0;
644 hints
646 points = hints->points;
647 if ( hints->num_points == 0 )
652 AF_Point point_limit = points + hints->num_points;
700 AF_Point* contour = hints->contours;
701 AF_Point* contour_limit = contour + hints->num_contours;
779 af_glyph_hints_save( AF_GlyphHints hints,
782 AF_Point point = hints->points;
783 AF_Point limit = point + hints->num_points;
814 af_glyph_hints_align_edge_points( AF_GlyphHints hints,
817 AF_AxisHints axis = & hints->axis[dim];
889 af_glyph_hints_align_strong_points( AF_GlyphHints hints,
892 AF_Point points = hints->points;
893 AF_Point point_limit = points + hints->num_points;
894 AF_AxisHints axis = &hints->axis[dim];
1144 af_glyph_hints_align_weak_points( AF_GlyphHints hints,
1147 AF_Point points = hints->points;
1148 AF_Point point_limit = points + hints->num_points;
1149 AF_Point* contour = hints->contours;
1150 AF_Point* contour_limit = contour + hints->num_contours;
1275 af_glyph_hints_scale_dim( AF_GlyphHints hints,
1280 AF_Point points = hints->points;
1281 AF_Point points_limit = points + hints->num_points;