Home
last modified time | relevance | path

Searched refs:y_scale (Results 1 – 25 of 67) sorted by relevance

123

/external/harfbuzz_ng/test/api/
Dtest-font.c367 int x_scale, y_scale; in test_font_properties() local
384 x_scale = y_scale = 13; in test_font_properties()
387 x_scale = y_scale = 13; in test_font_properties()
388 hb_font_get_scale (font, NULL, &y_scale); in test_font_properties()
389 g_assert_cmpint (y_scale, ==, 0); in test_font_properties()
390 x_scale = y_scale = 13; in test_font_properties()
391 hb_font_get_scale (font, &x_scale, &y_scale); in test_font_properties()
393 g_assert_cmpint (y_scale, ==, 0); in test_font_properties()
397 x_scale = y_scale = 13; in test_font_properties()
398 hb_font_get_scale (font, &x_scale, &y_scale); in test_font_properties()
[all …]
/external/mesa3d/src/mesa/drivers/dri/i965/
Dgen7_viewport_state.c36 GLfloat y_scale, y_bias; in gen7_upload_sf_clip_viewport() local
54 y_scale = 1.0; in gen7_upload_sf_clip_viewport()
57 y_scale = -1.0; in gen7_upload_sf_clip_viewport()
63 vp->viewport.m11 = v[MAT_SY] * y_scale; in gen7_upload_sf_clip_viewport()
66 vp->viewport.m31 = v[MAT_TY] * y_scale + y_bias; in gen7_upload_sf_clip_viewport()
Dgen6_viewport_state.c73 GLfloat y_scale, y_bias; in gen6_upload_sf_vp() local
83 y_scale = 1.0; in gen6_upload_sf_vp()
86 y_scale = -1.0; in gen6_upload_sf_vp()
92 sfv->viewport.m11 = v[MAT_SY] * y_scale; in gen6_upload_sf_vp()
95 sfv->viewport.m31 = v[MAT_TY] * y_scale + y_bias; in gen6_upload_sf_vp()
Dbrw_sf_state.c48 GLfloat y_scale, y_bias; in upload_sf_vp() local
57 y_scale = 1.0; in upload_sf_vp()
61 y_scale = -1.0; in upload_sf_vp()
68 sfv->viewport.m11 = v[MAT_SY] * y_scale; in upload_sf_vp()
71 sfv->viewport.m31 = v[MAT_TY] * y_scale + y_bias; in upload_sf_vp()
/external/pdfium/third_party/freetype/src/base/
Dftpfr.c66 FT_Fixed x_scale, y_scale; in FT_Get_PFR_Metrics() local
76 x_scale = y_scale = 0x10000L; in FT_Get_PFR_Metrics()
80 y_scale = face->size->metrics.y_scale; in FT_Get_PFR_Metrics()
87 *ametrics_y_scale = y_scale; in FT_Get_PFR_Metrics()
Dftobjs.c778 metrics->y_scale, 64 ); in FT_Load_Glyph()
2638 metrics->y_scale ) ); in ft_recompute_scaled_metrics()
2641 metrics->y_scale ) ); in ft_recompute_scaled_metrics()
2644 metrics->y_scale ) ); in ft_recompute_scaled_metrics()
2650 metrics->y_scale ); in ft_recompute_scaled_metrics()
2653 metrics->y_scale ); in ft_recompute_scaled_metrics()
2656 metrics->y_scale ); in ft_recompute_scaled_metrics()
2682 metrics->y_scale = FT_DivFix( bsize->y_ppem, in FT_Select_Metrics()
2690 metrics->y_scale = 1L << 16; in FT_Select_Metrics()
2701 metrics->y_scale, metrics->y_scale / 65536.0 )); in FT_Select_Metrics()
[all …]
/external/pdfium/third_party/freetype/src/cff/
Dcffobjs.c234 size->metrics.x_scale, size->metrics.y_scale, in cff_size_select()
241 FT_Pos x_scale, y_scale; in cff_size_select() local
247 y_scale = FT_MulDiv( size->metrics.y_scale, top_upm, sub_upm ); in cff_size_select()
252 y_scale = size->metrics.y_scale; in cff_size_select()
256 x_scale, y_scale, 0, 0 ); in cff_size_select()
306 size->metrics.x_scale, size->metrics.y_scale, in cff_size_request()
313 FT_Pos x_scale, y_scale; in cff_size_request() local
319 y_scale = FT_MulDiv( size->metrics.y_scale, top_upm, sub_upm ); in cff_size_request()
324 y_scale = size->metrics.y_scale; in cff_size_request()
328 x_scale, y_scale, 0, 0 ); in cff_size_request()
Dcf2ft.c257 CF2_Fixed* y_scale, in cf2_getScaleAndHintFlag() argument
270 *y_scale = ( decoder->builder.glyph->y_scale + 32 ) / 64; in cf2_getScaleAndHintFlag()
278 *y_scale = 0x0400; in cf2_getScaleAndHintFlag()
/external/harfbuzz_ng/src/
Dhb-font-private.hh101 int y_scale; member
115 inline hb_position_t em_scale_y (int16_t v) { return em_scale (v, this->y_scale); } in em_scale_y()
124 if (unlikely (parent && parent->y_scale != y_scale)) in parent_scale_y_distance()
125 return (hb_position_t) (v * (int64_t) this->y_scale / this->parent->y_scale); in parent_scale_y_distance()
272 *y = y_scale; in guess_v_origin_minus_h_origin()
Dhb-font.cc83 return font->y_scale; in hb_font_get_glyph_v_advance_nil()
894 font->y_scale = parent->y_scale; in hb_font_create_sub_font()
1171 int y_scale) in hb_font_set_scale() argument
1177 font->y_scale = y_scale; in hb_font_set_scale()
1193 int *y_scale) in hb_font_get_scale() argument
1196 if (y_scale) *y_scale = font->y_scale; in hb_font_get_scale()
Dhb-ft.cc442 …(int) (((uint64_t) ft_face->size->metrics.y_scale * (uint64_t) ft_face->units_per_EM + (1<<15)) >>… in hb_ft_font_create()
537 abs (font->x_scale), abs (font->y_scale), in hb_ft_font_set_funcs()
541 font->y_ppem * 72 * 64 / font->y_scale); in hb_ft_font_set_funcs()
543 if (font->x_scale < 0 || font->y_scale < 0) in hb_ft_font_set_funcs()
546 0, font->y_scale < 0 ? -1 : +1}; in hb_ft_font_set_funcs()
/external/pdfium/third_party/freetype/src/truetype/
Dttgload.c770 loader->exec->metrics.y_scale = 1 << 16; in TT_Hint_Glyph()
778 loader->exec->metrics.y_scale = in TT_Hint_Glyph()
779 ((TT_Size)loader->size)->metrics.y_scale; in TT_Hint_Glyph()
932 FT_Fixed y_scale = 0; in TT_Process_Simple_Glyph() local
954 y_scale = ((TT_Size)loader->size)->metrics.y_scale; in TT_Process_Simple_Glyph()
975 y_scale = ((TT_Size)loader->size)->metrics.y_scale; in TT_Process_Simple_Glyph()
986 vec->y = FT_MulFix( vec->y, y_scale ); in TT_Process_Simple_Glyph()
1135 FT_Fixed y_scale = ((TT_Size)loader->size)->metrics.y_scale; in TT_Process_Composite_Component() local
1139 y = FT_MulFix( y, y_scale ); in TT_Process_Composite_Component()
1406 FT_Fixed x_scale, y_scale; in load_truetype_glyph() local
[all …]
Dttobjs.c787 metrics->y_scale = 0; in tt_size_run_fpgm()
1197 metrics->y_scale = FT_DivFix( metrics->y_ppem << 6, in tt_size_reset()
1201 FT_PIX_ROUND( FT_MulFix( face->root.ascender, metrics->y_scale ) ); in tt_size_reset()
1203 FT_PIX_ROUND( FT_MulFix( face->root.descender, metrics->y_scale ) ); in tt_size_reset()
1205 FT_PIX_ROUND( FT_MulFix( face->root.height, metrics->y_scale ) ); in tt_size_reset()
1222 size->ttmetrics.scale = metrics->y_scale; in tt_size_reset()
/external/freetype/src/cff/
Dcffobjs.c234 size->metrics.x_scale, size->metrics.y_scale, in cff_size_select()
241 FT_Pos x_scale, y_scale; in cff_size_select() local
247 y_scale = FT_MulDiv( size->metrics.y_scale, top_upm, sub_upm ); in cff_size_select()
252 y_scale = size->metrics.y_scale; in cff_size_select()
256 x_scale, y_scale, 0, 0 ); in cff_size_select()
306 size->metrics.x_scale, size->metrics.y_scale, in cff_size_request()
313 FT_Pos x_scale, y_scale; in cff_size_request() local
319 y_scale = FT_MulDiv( size->metrics.y_scale, top_upm, sub_upm ); in cff_size_request()
324 y_scale = size->metrics.y_scale; in cff_size_request()
328 x_scale, y_scale, 0, 0 ); in cff_size_request()
Dcf2ft.c257 CF2_Fixed* y_scale, in cf2_getScaleAndHintFlag() argument
270 *y_scale = ( decoder->builder.glyph->y_scale + 32 ) / 64; in cf2_getScaleAndHintFlag()
278 *y_scale = 0x0400; in cf2_getScaleAndHintFlag()
/external/freetype/src/truetype/
Dttgload.c791 loader->exec->metrics.y_scale = 1 << 16; in TT_Hint_Glyph()
799 loader->exec->metrics.y_scale = in TT_Hint_Glyph()
800 ((TT_Size)loader->size)->metrics.y_scale; in TT_Hint_Glyph()
936 FT_Fixed y_scale = 0; in TT_Process_Simple_Glyph() local
958 y_scale = ((TT_Size)loader->size)->metrics.y_scale; in TT_Process_Simple_Glyph()
979 y_scale = ((TT_Size)loader->size)->metrics.y_scale; in TT_Process_Simple_Glyph()
990 vec->y = FT_MulFix( vec->y, y_scale ); in TT_Process_Simple_Glyph()
1139 FT_Fixed y_scale = ((TT_Size)loader->size)->metrics.y_scale; in TT_Process_Composite_Component() local
1143 y = FT_MulFix( y, y_scale ); in TT_Process_Composite_Component()
1413 FT_Fixed x_scale, y_scale; in load_truetype_glyph() local
[all …]
Dttobjs.c780 metrics->y_scale = 0; in tt_size_run_fpgm()
1190 metrics->y_scale = FT_DivFix( metrics->y_ppem << 6, in tt_size_reset()
1194 FT_PIX_ROUND( FT_MulFix( face->root.ascender, metrics->y_scale ) ); in tt_size_reset()
1196 FT_PIX_ROUND( FT_MulFix( face->root.descender, metrics->y_scale ) ); in tt_size_reset()
1198 FT_PIX_ROUND( FT_MulFix( face->root.height, metrics->y_scale ) ); in tt_size_reset()
1215 size->ttmetrics.scale = metrics->y_scale; in tt_size_reset()
/external/pdfium/third_party/freetype/src/type1/
Dt1gload.c313 glyph->y_scale = t1size->metrics.y_scale; in T1_Load_Glyph()
318 glyph->y_scale = 0x10000L; in T1_Load_Glyph()
456 FT_Fixed y_scale = glyph->y_scale; in T1_Load_Glyph() local
464 vec->y = FT_MulFix( vec->y, y_scale ); in T1_Load_Glyph()
469 metrics->vertAdvance = FT_MulFix( metrics->vertAdvance, y_scale ); in T1_Load_Glyph()
/external/freetype/src/autofit/
Dafdummy.c32 hints->y_scale = metrics->scaler.y_scale; in af_dummy_hints_init()
Daftypes.h180 FT_Fixed y_scale; /* from font units to 1/64th device pixels */ member
191 (a)->y_scale == (b)->y_scale && \
Dafloader.c245 vvector.y = FT_MulFix( vvector.y, metrics->scaler.y_scale ); in af_loader_load_g()
306 metrics->scaler.y_scale ); in af_loader_load_g()
350 scaler.y_scale = size->metrics.y_scale; in af_loader_load_glyph()
/external/pdfium/third_party/freetype/src/cid/
Dcidgload.c295 glyph->y_scale = cidsize->metrics.y_scale; in cid_slot_load_glyph()
404 FT_Fixed y_scale = glyph->y_scale; in cid_slot_load_glyph() local
412 vec->y = FT_MulFix( vec->y, y_scale ); in cid_slot_load_glyph()
417 metrics->vertAdvance = FT_MulFix( metrics->vertAdvance, y_scale ); in cid_slot_load_glyph()
/external/pdfium/core/src/fpdfapi/fpdf_render/
Dfpdf_render_pattern.cpp562 static int _BiInterpol(int c0, int c1, int c2, int c3, int x, int y, int x_scale, int y_scale) in _BiInterpol() argument
566 return x1 + (x2 - x1) * y / y_scale; in _BiInterpol()
574 void BiInterpol(Coon_Color colors[4], int x, int y, int x_scale, int y_scale) in BiInterpol()
578 x, y, x_scale, y_scale); in BiInterpol()
602 …void Draw(int x_scale, int y_scale, int left, int bottom, Coon_Bezier C1, Coon_Bezier C2, Coon_Bez… in Draw()
607 div_colors[0].BiInterpol(patch_colors, left, bottom, x_scale, y_scale); in Draw()
609 div_colors[1].BiInterpol(patch_colors, left, bottom + 1, x_scale, y_scale); in Draw()
610 div_colors[2].BiInterpol(patch_colors, left + 1, bottom + 1, x_scale, y_scale); in Draw()
611 div_colors[3].BiInterpol(patch_colors, left + 1, bottom, x_scale, y_scale); in Draw()
634 y_scale *= 2; in Draw()
[all …]
/external/freetype/src/base/
Dftobjs.c778 metrics->y_scale, 64 ); in FT_Load_Glyph()
2634 metrics->y_scale ) ); in ft_recompute_scaled_metrics()
2637 metrics->y_scale ) ); in ft_recompute_scaled_metrics()
2640 metrics->y_scale ) ); in ft_recompute_scaled_metrics()
2646 metrics->y_scale ); in ft_recompute_scaled_metrics()
2649 metrics->y_scale ); in ft_recompute_scaled_metrics()
2652 metrics->y_scale ); in ft_recompute_scaled_metrics()
2678 metrics->y_scale = FT_DivFix( bsize->y_ppem, in FT_Select_Metrics()
2686 metrics->y_scale = 1L << 16; in FT_Select_Metrics()
2697 metrics->y_scale, metrics->y_scale / 65536.0 )); in FT_Select_Metrics()
[all …]
/external/freetype/src/pshinter/
Dpshglob.c756 FT_Fixed y_scale, in psh_globals_set_scale() argument
774 if ( y_scale != dim->scale_mult || in psh_globals_set_scale()
777 dim->scale_mult = y_scale; in psh_globals_set_scale()
781 psh_blues_scale_zones( &globals->blues, y_scale, y_delta ); in psh_globals_set_scale()

123