Home
last modified time | relevance | path

Searched refs:FT_MulFix (Results 1 – 25 of 46) sorted by relevance

12

/third_party/skia/third_party/externals/freetype/src/sdf/
Dftsdf.c1443 c = FT_MulFix( FT_MulFix( g, g ), g ) - v; in cube_root()
1444 c = FT_DivFix( c, 3 * FT_MulFix( g, g ) ); in cube_root()
1471 p = one - FT_MulFix( b, b ); in arc_cos()
1509 discriminant = FT_MulFix( b, b ) - 4 * FT_MulFix( a, c ); in solve_quadratic_equation()
1575 a1x2 = FT_MulFix( a1, a2 ); in solve_cubic_equation()
1576 a22 = FT_MulFix( a2, a2 ); in solve_cubic_equation()
1577 a23 = FT_MulFix( a22, a2 ); in solve_cubic_equation()
1584 q3 = FT_MulFix( q, q ); in solve_cubic_equation()
1585 q3 = FT_MulFix( q3, q ); in solve_cubic_equation()
1587 r2 = FT_MulFix( r, r ); in solve_cubic_equation()
[all …]
Dftbsdf.c484 FT_MulFix( alphas[3], 92681 ) - in compute_edge_distance()
487 FT_MulFix( alphas[5], 92681 ) + in compute_edge_distance()
491 FT_MulFix( alphas[1], 92681 ) - in compute_edge_distance()
494 FT_MulFix( alphas[7], 92681 ) + in compute_edge_distance()
525 square_root( 2 * FT_MulFix( gx, in compute_edge_distance()
526 FT_MulFix( gy, in compute_edge_distance()
530 dist = FT_MulFix( ONE / 2 - current_alpha, gx ); in compute_edge_distance()
534 square_root( 2 * FT_MulFix( gx, in compute_edge_distance()
535 FT_MulFix( gy, in compute_edge_distance()
539 g.x = FT_MulFix( g.x, dist ); in compute_edge_distance()
[all …]
Dftsdfcommon.h100 #define VECTOR_LENGTH_16D16( v ) ( FT_MulFix( v.x, v.x ) + \
101 FT_MulFix( v.y, v.y ) )
/third_party/skia/third_party/externals/freetype/src/autofit/
Dafloader.c147 darken_x = FT_MulFix( darken_by_font_units_x, in af_loader_embolden_glyph_in_slot()
165 darken_y = FT_MulFix( darken_by_font_units_y, in af_loader_embolden_glyph_in_slot()
256 FT_MulFix( face->ascender, in af_loader_load_glyph()
259 FT_MulFix( face->descender, in af_loader_load_glyph()
262 FT_MulFix( face->height, in af_loader_load_glyph()
270 FT_MulFix( face->max_advance_width, in af_loader_load_glyph()
404 loader->pp2.x = FT_MulFix( slot->metrics.horiAdvance, in af_loader_load_glyph()
513 vvector.x = FT_MulFix( vvector.x, style_metrics->scaler.x_scale ); in af_loader_load_glyph()
514 vvector.y = FT_MulFix( vvector.y, style_metrics->scaler.y_scale ); in af_loader_load_glyph()
552 FT_MulFix( slot->metrics.horiAdvance, in af_loader_load_glyph()
[all …]
Daflatin.c1225 scaled = FT_MulFix( blue->shoot.org, scale ); in af_latin_metrics_scale_dim()
1267 dist = FT_ABS( FT_MulFix( max_height, new_scale - scale ) ); in af_latin_metrics_scale_dim()
1325 width->cur = FT_MulFix( width->org, scale ); in af_latin_metrics_scale_dim()
1338 FT_BOOL( FT_MulFix( axis->standard_width, scale ) < 32 + 8 ); in af_latin_metrics_scale_dim()
1364 blue->ref.cur = FT_MulFix( blue->ref.org, scale ) + delta; in af_latin_metrics_scale_dim()
1366 blue->shoot.cur = FT_MulFix( blue->shoot.org, scale ) + delta; in af_latin_metrics_scale_dim()
1371 dist = FT_MulFix( blue->ref.org - blue->shoot.org, scale ); in af_latin_metrics_scale_dim()
1390 delta2 = FT_MulFix( delta2, scale ); in af_latin_metrics_scale_dim()
2195 edge_distance_threshold = FT_MulFix( laxis->edge_distance_threshold, in af_latin_hints_compute_edges()
2261 edge->opos = FT_MulFix( seg->pos, scale ); in af_latin_hints_compute_edges()
[all …]
Dafcjk.c701 blue->ref.cur = FT_MulFix( blue->ref.org, scale ) + delta; in af_cjk_metrics_scale_dim()
703 blue->shoot.cur = FT_MulFix( blue->shoot.org, scale ) + delta; in af_cjk_metrics_scale_dim()
708 dist = FT_MulFix( blue->ref.org - blue->shoot.org, scale ); in af_cjk_metrics_scale_dim()
722 delta2 = FT_MulFix( delta2, scale ); in af_cjk_metrics_scale_dim()
1036 edge_distance_threshold = FT_MulFix( laxis->edge_distance_threshold, in af_cjk_hints_compute_edges()
1120 edge->opos = FT_MulFix( seg->pos, scale ); in af_cjk_hints_compute_edges()
1301 best_dist0 = FT_MulFix( metrics->units_per_em / 40, scale ); in af_cjk_hints_compute_blue_edges()
1359 dist = FT_MulFix( dist, scale ); in af_cjk_hints_compute_blue_edges()
/third_party/skia/third_party/externals/freetype/src/psaux/
Dpshints.c205 hint->dsCoord = FT_MulFix( hint->csCoord, scale ); in cf2_hint_init()
337 return FT_MulFix( csCoord, hintmap->scale ); in cf2_hintmap_map()
361 return ADD_INT32( FT_MulFix( SUB_INT32( csCoord, in cf2_hintmap_map()
372 return ADD_INT32( FT_MulFix( SUB_INT32( csCoord, in cf2_hintmap_map()
699 FT_MulFix( SUB_INT32( secondHintEdge->csCoord, in cf2_hintmap_insertHint()
1187 pt.x = ADD_INT32( FT_MulFix( glyphpath->scaleX, x ), in cf2_glyphpath_hintPoint()
1188 FT_MulFix( glyphpath->scaleC, y ) ); in cf2_glyphpath_hintPoint()
1192 FT_MulFix( glyphpath->font->outerTransform.a, pt.x ), in cf2_glyphpath_hintPoint()
1194 FT_MulFix( glyphpath->font->outerTransform.c, pt.y ), in cf2_glyphpath_hintPoint()
1197 FT_MulFix( glyphpath->font->outerTransform.b, pt.x ), in cf2_glyphpath_hintPoint()
[all …]
Dpsblues.c162 FT_MulFix( in cf2_blues_init()
174 FT_MulFix( in cf2_blues_init()
433 FT_MulFix( in cf2_blues_init()
439 FT_MulFix( in cf2_blues_init()
Dpsfont.c139 stemWidthPer1000 = FT_MulFix( stemWidth + boldenAmount, emRatio ); in cf2_computeDarkening()
162 scaledStem = FT_MulFix( stemWidthPer1000, ppem ); in cf2_computeDarkening()
/third_party/skia/third_party/externals/freetype/src/truetype/
Dttgload.c1071 FT_MulFix( 1280 * ppem, in TT_Process_Simple_Glyph()
1107 vec->x = ( FT_MulFix( u->x, x_scale ) + 32 ) >> 6; in TT_Process_Simple_Glyph()
1108 vec->y = ( FT_MulFix( u->y, y_scale ) + 32 ) >> 6; in TT_Process_Simple_Glyph()
1116 vec->x = FT_MulFix( vec->x, x_scale ); in TT_Process_Simple_Glyph()
1117 vec->y = FT_MulFix( vec->y, y_scale ); in TT_Process_Simple_Glyph()
1128 loader->pp1.x = FT_MulFix( loader->pp1.x, x_scale ); in TT_Process_Simple_Glyph()
1129 loader->pp2.x = FT_MulFix( loader->pp2.x, x_scale ); in TT_Process_Simple_Glyph()
1145 loader->pp3.x = FT_MulFix( loader->pp3.x, x_scale ); in TT_Process_Simple_Glyph()
1146 loader->pp3.y = FT_MulFix( loader->pp3.y, y_scale ); in TT_Process_Simple_Glyph()
1147 loader->pp4.x = FT_MulFix( loader->pp4.x, x_scale ); in TT_Process_Simple_Glyph()
[all …]
Dttobjs.c1004 size->cvt[i] = FT_MulFix( face->cvt[i], scale ); in tt_size_run_prep()
1387 FT_MulFix( face->root.ascender, in tt_size_reset()
1390 FT_MulFix( face->root.descender, in tt_size_reset()
1393 FT_MulFix( face->root.height, in tt_size_reset()
1416 FT_MulFix( face->root.max_advance_width, in tt_size_reset()
Dttgxvar.c1022 scaledDelta = FT_MulFix( scalar, delta ); in ft_var_get_item_delta()
2048 design[i] = a->def + FT_MulFix( design[i], in ft_var_to_design()
2051 design[i] = a->def + FT_MulFix( design[i], in ft_var_to_design()
3507 cvt_deltas[j] = old_cvt_delta + FT_MulFix( deltas[j], apply ); in tt_face_vary_cvt()
3549 cvt_deltas[pindex] = old_cvt_delta + FT_MulFix( deltas[j], apply ); in tt_face_vary_cvt()
3712 out = out1 + FT_MulFix( out - in1, scale ); in tt_delta_interpolate()
4070 FT_Fixed point_delta_x = FT_MulFix( deltas_x[j], apply ); in TT_Vary_Apply_Glyph_Deltas()
4071 FT_Fixed point_delta_y = FT_MulFix( deltas_y[j], apply ); in TT_Vary_Apply_Glyph_Deltas()
4154 points_out[idx].x += FT_MulFix( deltas_x[j], apply ); in TT_Vary_Apply_Glyph_Deltas()
4155 points_out[idx].y += FT_MulFix( deltas_y[j], apply ); in TT_Vary_Apply_Glyph_Deltas()
Dttinterp.c1500 return FT_MulFix( exc->tt_metrics.ppem, Current_Ratio( exc ) ); in Current_Ppem_Stretched()
1523 return FT_MulFix( exc->cvt[idx], Current_Ratio( exc ) ); in Read_CVT_Stretched()
3186 exc->cvt[I] = FT_MulFix( args[1], exc->tt_metrics.scale ); in Ins_WCVTF()
4663 exc->GS.single_width_value = FT_MulFix( args[0], in Ins_SSW()
4988 D = FT_MulFix( D, exc->metrics.x_scale ); in Ins_MD()
4995 vec.x = FT_MulFix( vec1->x - vec2->x, exc->metrics.x_scale ); in Ins_MD()
4996 vec.y = FT_MulFix( vec1->y - vec2->y, exc->metrics.y_scale ); in Ins_MD()
6149 org_dist = FT_MulFix( org_dist, exc->metrics.x_scale ); in Ins_MDRP()
6156 vec.x = FT_MulFix( SUB_LONG( vec1->x, vec2->x ), in Ins_MDRP()
6158 vec.y = FT_MulFix( SUB_LONG( vec1->y, vec2->y ), in Ins_MDRP()
[all …]
/third_party/skia/third_party/externals/freetype/src/base/
Dftcalc.c43 #undef FT_MulFix
231 FT_MulFix( FT_Long a_, in FT_MulFix() function
508 FT_MulFix( FT_Long a_, in FT_MulFix() function
669 xx = ADD_LONG( FT_MulFix( a->xx, b->xx ), in FT_Matrix_Multiply()
670 FT_MulFix( a->xy, b->yx ) ); in FT_Matrix_Multiply()
671 xy = ADD_LONG( FT_MulFix( a->xx, b->xy ), in FT_Matrix_Multiply()
672 FT_MulFix( a->xy, b->yy ) ); in FT_Matrix_Multiply()
673 yx = ADD_LONG( FT_MulFix( a->yx, b->xx ), in FT_Matrix_Multiply()
674 FT_MulFix( a->yy, b->yx ) ); in FT_Matrix_Multiply()
675 yy = ADD_LONG( FT_MulFix( a->yx, b->xy ), in FT_Matrix_Multiply()
[all …]
Dftoutln.c692 xz = FT_MulFix( vector->x, matrix->xx ) + in FT_Vector_Transform()
693 FT_MulFix( vector->y, matrix->xy ); in FT_Vector_Transform()
695 yz = FT_MulFix( vector->x, matrix->yx ) + in FT_Vector_Transform()
696 FT_MulFix( vector->y, matrix->yy ); in FT_Vector_Transform()
976 d = FT_MulFix( in.x, out.x ) + FT_MulFix( in.y, out.y ); in FT_Outline_EmboldenXY()
993 q = FT_MulFix( out.x, in.y ) - FT_MulFix( out.y, in.x ); in FT_Outline_EmboldenXY()
1000 if ( FT_MulFix( xstrength, q ) <= FT_MulFix( l, d ) ) in FT_Outline_EmboldenXY()
1006 if ( FT_MulFix( ystrength, q ) <= FT_MulFix( l, d ) ) in FT_Outline_EmboldenXY()
Dftsynth.c108 xstr = FT_MulFix( face->units_per_EM, in FT_GlyphSlot_Embolden()
Dftstroke.c559 a1.x = FT_MulFix( -a0.y, coef ); in ft_stroke_border_arcto()
560 a1.y = FT_MulFix( a0.x, coef ); in ft_stroke_border_arcto()
572 a2.x = FT_MulFix( a3.y, coef ); in ft_stroke_border_arcto()
573 a2.y = FT_MulFix( -a3.x, coef ); in ft_stroke_border_arcto()
1114 FT_MulFix( radius, stroker->miter_limit ), in ft_stroker_outside()
1118 delta.x = FT_MulFix( middle.y, coef ); in ft_stroker_outside()
1119 delta.y = FT_MulFix( -middle.x, coef ); in ft_stroker_outside()
Dftobjs.c3081 metrics->ascender = FT_PIX_CEIL( FT_MulFix( face->ascender, in ft_recompute_scaled_metrics()
3084 metrics->descender = FT_PIX_FLOOR( FT_MulFix( face->descender, in ft_recompute_scaled_metrics()
3087 metrics->height = FT_PIX_ROUND( FT_MulFix( face->height, in ft_recompute_scaled_metrics()
3090 metrics->max_advance = FT_PIX_ROUND( FT_MulFix( face->max_advance_width, in ft_recompute_scaled_metrics()
3093 metrics->ascender = FT_MulFix( face->ascender, in ft_recompute_scaled_metrics()
3096 metrics->descender = FT_MulFix( face->descender, in ft_recompute_scaled_metrics()
3099 metrics->height = FT_MulFix( face->height, in ft_recompute_scaled_metrics()
3102 metrics->max_advance = FT_MulFix( face->max_advance_width, in ft_recompute_scaled_metrics()
3235 scaled_w = FT_MulFix( face->units_per_EM, metrics->x_scale ); in FT_Request_Metrics()
3236 scaled_h = FT_MulFix( face->units_per_EM, metrics->y_scale ); in FT_Request_Metrics()
[all …]
/third_party/skia/third_party/externals/freetype/src/pshinter/
Dpshglob.c54 width->cur = FT_MulFix( width->org, scale ); in psh_globals_scale_widths()
65 w = FT_MulFix( width->org, scale ); in psh_globals_scale_widths()
89 FT_Pos width = FT_MulFix( org_width, dimension->scale_mult );
423 while ( threshold > 0 && FT_MulFix( threshold, scale ) > 32 ) in psh_blues_scale_zones()
454 zone->cur_top = FT_MulFix( zone->org_top, scale ) + delta; in psh_blues_scale_zones()
455 zone->cur_bottom = FT_MulFix( zone->org_bottom, scale ) + delta; in psh_blues_scale_zones()
456 zone->cur_ref = FT_MulFix( zone->org_ref, scale ) + delta; in psh_blues_scale_zones()
457 zone->cur_delta = FT_MulFix( zone->org_delta, scale ); in psh_blues_scale_zones()
511 if ( FT_MulFix( Delta, scale ) < 64 ) in psh_blues_scale_zones()
Dpshalgo.c410 hint->cur_pos = FT_MulFix( hint->org_pos, scale ) + delta; in ps_simple_scale()
411 hint->cur_len = FT_MulFix( hint->org_len, scale ); in ps_simple_scale()
449 FT_Pos pos = FT_MulFix( hint->org_pos, scale ) + delta; in psh_hint_align()
450 FT_Pos len = FT_MulFix( hint->org_len, scale ); in psh_hint_align()
526 cur_delta = FT_MulFix( cur_org_center - par_org_center, scale ); in psh_hint_align()
677 FT_Pos pos = FT_MulFix( hint->org_pos, scale ) + delta;
678 FT_Pos len = FT_MulFix( hint->org_len, scale );
747 cur_delta = FT_MulFix( cur_org_center - par_org_center, scale );
1741 point->cur_u = hint->cur_pos + FT_MulFix( delta, scale ); in psh_glyph_interpolate_strong_points()
1745 FT_MulFix( delta - hint->org_len, scale ); in psh_glyph_interpolate_strong_points()
[all …]
/third_party/skia/third_party/externals/freetype/src/cid/
Dcidgload.c460 metrics->horiAdvance = FT_MulFix( metrics->horiAdvance, in cid_slot_load_glyph()
462 metrics->vertAdvance = FT_MulFix( metrics->vertAdvance, in cid_slot_load_glyph()
490 vec->x = FT_MulFix( vec->x, x_scale ); in cid_slot_load_glyph()
491 vec->y = FT_MulFix( vec->y, y_scale ); in cid_slot_load_glyph()
495 metrics->horiAdvance = FT_MulFix( metrics->horiAdvance, x_scale ); in cid_slot_load_glyph()
496 metrics->vertAdvance = FT_MulFix( metrics->vertAdvance, y_scale ); in cid_slot_load_glyph()
/third_party/skia/third_party/externals/freetype/src/cff/
Dcffgload.c616 metrics->horiAdvance = FT_MulFix( metrics->horiAdvance, in cff_slot_load()
618 metrics->vertAdvance = FT_MulFix( metrics->vertAdvance, in cff_slot_load()
646 vec->x = FT_MulFix( vec->x, x_scale ); in cff_slot_load()
647 vec->y = FT_MulFix( vec->y, y_scale ); in cff_slot_load()
651 metrics->horiAdvance = FT_MulFix( metrics->horiAdvance, x_scale ); in cff_slot_load()
652 metrics->vertAdvance = FT_MulFix( metrics->vertAdvance, y_scale ); in cff_slot_load()
668 metrics->vertBearingY = FT_MulFix( metrics->vertBearingY, in cff_slot_load()
/third_party/skia/third_party/externals/freetype/src/type1/
Dt1gload.c519 metrics->horiAdvance = FT_MulFix( metrics->horiAdvance, in T1_Load_Glyph()
521 metrics->vertAdvance = FT_MulFix( metrics->vertAdvance, in T1_Load_Glyph()
550 vec->x = FT_MulFix( vec->x, x_scale ); in T1_Load_Glyph()
551 vec->y = FT_MulFix( vec->y, y_scale ); in T1_Load_Glyph()
555 metrics->horiAdvance = FT_MulFix( metrics->horiAdvance, x_scale ); in T1_Load_Glyph()
556 metrics->vertAdvance = FT_MulFix( metrics->vertAdvance, y_scale ); in T1_Load_Glyph()
/third_party/skia/third_party/externals/freetype/src/pfr/
Dpfrobjs.c443 vec->x = FT_MulFix( vec->x, x_scale ); in pfr_slot_load()
444 vec->y = FT_MulFix( vec->y, y_scale ); in pfr_slot_load()
448 metrics->horiAdvance = FT_MulFix( metrics->horiAdvance, x_scale ); in pfr_slot_load()
449 metrics->vertAdvance = FT_MulFix( metrics->vertAdvance, y_scale ); in pfr_slot_load()
/third_party/skia/third_party/externals/harfbuzz/src/
Dhb-ft.cc552 metrics->ascender = FT_MulFix(ft_face->ascender, ft_face->size->metrics.y_scale); in hb_ft_get_font_h_extents()
553 metrics->descender = FT_MulFix(ft_face->descender, ft_face->size->metrics.y_scale); in hb_ft_get_font_h_extents()
554 …metrics->line_gap = FT_MulFix( ft_face->height, ft_face->size->metrics.y_scale ) - (metrics->ascen… in hb_ft_get_font_h_extents()

12