Home
last modified time | relevance | path

Searched refs:x_scale (Results 1 – 25 of 59) sorted by relevance

123

/external/harfbuzz_ng/test/api/
Dtest-font.c377 int x_scale, y_scale; in test_font_properties() local
408 x_scale = y_scale = 13; in test_font_properties()
409 hb_font_get_scale (font, &x_scale, NULL); in test_font_properties()
410 g_assert_cmpint (x_scale, ==, upem); in test_font_properties()
411 x_scale = y_scale = 13; in test_font_properties()
414 x_scale = y_scale = 13; in test_font_properties()
415 hb_font_get_scale (font, &x_scale, &y_scale); in test_font_properties()
416 g_assert_cmpint (x_scale, ==, upem); in test_font_properties()
421 x_scale = y_scale = 13; in test_font_properties()
422 hb_font_get_scale (font, &x_scale, &y_scale); in test_font_properties()
[all …]
/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()
79 x_scale = face->size->metrics.x_scale; in FT_Get_PFR_Metrics()
84 *ametrics_x_scale = x_scale; in FT_Get_PFR_Metrics()
Dftobjs.c775 metrics->x_scale, 64 ); in FT_Load_Glyph()
2660 metrics->x_scale ) ); in ft_recompute_scaled_metrics()
2672 metrics->x_scale ); in ft_recompute_scaled_metrics()
2693 metrics->x_scale = FT_DivFix( bsize->x_ppem, in FT_Select_Metrics()
2702 metrics->x_scale = 1L << 16; in FT_Select_Metrics()
2712 metrics->x_scale, metrics->x_scale / 65536.0 )); in FT_Select_Metrics()
2759 metrics->x_scale = (FT_Fixed)req->width; in FT_Request_Metrics()
2761 if ( !metrics->x_scale ) in FT_Request_Metrics()
2762 metrics->x_scale = metrics->y_scale; in FT_Request_Metrics()
2764 metrics->y_scale = metrics->x_scale; in FT_Request_Metrics()
[all …]
/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
246 x_scale = FT_MulDiv( size->metrics.x_scale, top_upm, sub_upm ); in cff_size_select()
251 x_scale = size->metrics.x_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
318 x_scale = FT_MulDiv( size->metrics.x_scale, top_upm, sub_upm ); in cff_size_request()
323 x_scale = size->metrics.x_scale; in cff_size_request()
328 x_scale, y_scale, 0, 0 ); in cff_size_request()
Dcf2ft.c256 CF2_Fixed* x_scale, in cf2_getScaleAndHintFlag() argument
269 *x_scale = ( decoder->builder.glyph->x_scale + 32 ) / 64; in cf2_getScaleAndHintFlag()
277 *x_scale = 0x0400; /* 1/64 as 16.16 */ in cf2_getScaleAndHintFlag()
Dcffobjs.h78 FT_Fixed x_scale; member
/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
246 x_scale = FT_MulDiv( size->metrics.x_scale, top_upm, sub_upm ); in cff_size_select()
251 x_scale = size->metrics.x_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
318 x_scale = FT_MulDiv( size->metrics.x_scale, top_upm, sub_upm ); in cff_size_request()
323 x_scale = size->metrics.x_scale; in cff_size_request()
328 x_scale, y_scale, 0, 0 ); in cff_size_request()
Dcf2ft.c256 CF2_Fixed* x_scale, in cf2_getScaleAndHintFlag() argument
269 *x_scale = ( decoder->builder.glyph->x_scale + 32 ) / 64; in cf2_getScaleAndHintFlag()
277 *x_scale = 0x0400; /* 1/64 as 16.16 */ in cf2_getScaleAndHintFlag()
Dcffobjs.h78 FT_Fixed x_scale; member
/external/harfbuzz_ng/src/
Dhb-font-private.hh105 int x_scale; member
119 inline hb_position_t em_scale_x (int16_t v) { return em_scale (v, this->x_scale); } in em_scale_x()
124 if (unlikely (parent && parent->x_scale != x_scale)) in parent_scale_x_distance()
125 return (hb_position_t) (v * (int64_t) this->x_scale / this->parent->x_scale); in parent_scale_x_distance()
308 extents->ascender = x_scale / 2; in get_extents_for_direction()
309 extents->descender = x_scale - extents->ascender; in get_extents_for_direction()
Dhb-ft.cc204 if (font->x_scale < 0) in hb_ft_get_glyph_h_advance()
249 if (font->x_scale < 0) in hb_ft_get_glyph_v_origin()
291 if (font->x_scale < 0) in hb_ft_get_glyph_extents()
585 …(int) (((uint64_t) ft_face->size->metrics.x_scale * (uint64_t) ft_face->units_per_EM + (1<<15)) >>… in hb_ft_font_create()
681 abs (font->x_scale), abs (font->y_scale), in hb_ft_font_set_funcs()
684 font->x_ppem * 72 * 64 / font->x_scale, in hb_ft_font_set_funcs()
687 if (font->x_scale < 0 || font->y_scale < 0) in hb_ft_font_set_funcs()
689 FT_Matrix matrix = { font->x_scale < 0 ? -1 : +1, 0, in hb_ft_font_set_funcs()
Dhb-font.cc144 return font->x_scale; in hb_font_get_glyph_h_advance_nil()
1136 font->x_scale = font->y_scale = hb_face_get_upem (face); in hb_font_create()
1164 font->x_scale = parent->x_scale; in hb_font_create_sub_font()
1470 int x_scale, in hb_font_set_scale() argument
1476 font->x_scale = x_scale; in hb_font_set_scale()
1492 int *x_scale, in hb_font_get_scale() argument
1495 if (x_scale) *x_scale = font->x_scale; in hb_font_get_scale()
/external/pdfium/third_party/freetype/src/type1/
Dt1gload.c312 glyph->x_scale = t1size->metrics.x_scale; in T1_Load_Glyph()
317 glyph->x_scale = 0x10000L; in T1_Load_Glyph()
457 FT_Fixed x_scale = glyph->x_scale; in T1_Load_Glyph() local
465 vec->x = FT_MulFix( vec->x, x_scale ); in T1_Load_Glyph()
470 metrics->horiAdvance = FT_MulFix( metrics->horiAdvance, x_scale ); in T1_Load_Glyph()
Dt1objs.h126 FT_Fixed x_scale; member
/external/pdfium/third_party/freetype/src/cid/
Dcidgload.c294 glyph->x_scale = cidsize->metrics.x_scale; in cid_slot_load_glyph()
407 FT_Fixed x_scale = glyph->x_scale; in cid_slot_load_glyph() local
415 vec->x = FT_MulFix( vec->x, x_scale ); in cid_slot_load_glyph()
420 metrics->horiAdvance = FT_MulFix( metrics->horiAdvance, x_scale ); in cid_slot_load_glyph()
Dcidobjs.h108 FT_Fixed x_scale; member
/external/pdfium/third_party/freetype/src/truetype/
Dttgload.c767 loader->exec->metrics.x_scale = 1 << 16; in TT_Hint_Glyph()
774 loader->exec->metrics.x_scale = loader->size->metrics.x_scale; in TT_Hint_Glyph()
910 FT_Fixed x_scale = 0; /* pacify compiler */ in TT_Process_Simple_Glyph() local
931 x_scale = FT_MulDiv( loader->size->metrics.x_scale, in TT_Process_Simple_Glyph()
953 x_scale = loader->size->metrics.x_scale; in TT_Process_Simple_Glyph()
964 vec->x = FT_MulFix( vec->x, x_scale ); in TT_Process_Simple_Glyph()
1112 FT_Fixed x_scale = loader->size->metrics.x_scale; in TT_Process_Composite_Component() local
1116 x = FT_MulFix( x, x_scale ); in TT_Process_Composite_Component()
1385 FT_Fixed x_scale, y_scale; in load_truetype_glyph() local
1420 x_scale = loader->size->metrics.x_scale; in load_truetype_glyph()
[all …]
/external/freetype/src/autofit/
Dafdummy.c31 hints->x_scale = metrics->scaler.x_scale; in af_dummy_hints_init()
Dafloader.c134 hints->x_scale ) + hints->x_delta; in af_loader_load_g()
244 vvector.x = FT_MulFix( vvector.x, metrics->scaler.x_scale ); in af_loader_load_g()
282 x_scale ); in af_loader_load_g()
290 metrics->scaler.x_scale ); in af_loader_load_g()
348 scaler.x_scale = size->metrics.x_scale; in af_loader_load_glyph()
Daftypes.h179 FT_Fixed x_scale; /* from font units to 1/64th device pixels */ member
190 ( (a)->x_scale == (b)->x_scale && \
/external/freetype/src/truetype/
Dttgload.c790 loader->exec->metrics.x_scale = 1 << 16; in TT_Hint_Glyph()
797 loader->exec->metrics.x_scale = in TT_Hint_Glyph()
798 ((TT_Size)loader->size)->metrics.x_scale; in TT_Hint_Glyph()
935 FT_Fixed x_scale = 0; /* pacify compiler */ in TT_Process_Simple_Glyph() local
956 x_scale = FT_MulDiv( ((TT_Size)loader->size)->metrics.x_scale, in TT_Process_Simple_Glyph()
978 x_scale = ((TT_Size)loader->size)->metrics.x_scale; in TT_Process_Simple_Glyph()
989 vec->x = FT_MulFix( vec->x, x_scale ); in TT_Process_Simple_Glyph()
1138 FT_Fixed x_scale = ((TT_Size)loader->size)->metrics.x_scale; in TT_Process_Composite_Component() local
1142 x = FT_MulFix( x, x_scale ); in TT_Process_Composite_Component()
1413 FT_Fixed x_scale, y_scale; in load_truetype_glyph() local
[all …]
/external/pdfium/core/src/fpdfapi/fpdf_render/
Dfpdf_render_pattern.cpp605 int x_scale, in _BiInterpol() argument
607 int x1 = c0 + (c3 - c0) * x / x_scale; in _BiInterpol()
608 int x2 = c1 + (c2 - c1) * x / x_scale; in _BiInterpol()
617 int x_scale, in BiInterpol()
622 colors[3].comp[i], x, y, x_scale, y_scale); in BiInterpol()
645 void Draw(int x_scale, in Draw()
657 div_colors[0].BiInterpol(patch_colors, left, bottom, x_scale, y_scale); in Draw()
659 div_colors[1].BiInterpol(patch_colors, left, bottom + 1, x_scale, in Draw()
661 div_colors[2].BiInterpol(patch_colors, left + 1, bottom + 1, x_scale, in Draw()
663 div_colors[3].BiInterpol(patch_colors, left + 1, bottom, x_scale, in Draw()
[all …]
/external/freetype/src/base/
Dftobjs.c775 metrics->x_scale, 64 ); in FT_Load_Glyph()
2643 metrics->x_scale ) ); in ft_recompute_scaled_metrics()
2655 metrics->x_scale ); in ft_recompute_scaled_metrics()
2676 metrics->x_scale = FT_DivFix( bsize->x_ppem, in FT_Select_Metrics()
2685 metrics->x_scale = 1L << 16; in FT_Select_Metrics()
2695 metrics->x_scale, metrics->x_scale / 65536.0 )); in FT_Select_Metrics()
2742 metrics->x_scale = (FT_Fixed)req->width; in FT_Request_Metrics()
2744 if ( !metrics->x_scale ) in FT_Request_Metrics()
2745 metrics->x_scale = metrics->y_scale; in FT_Request_Metrics()
2747 metrics->y_scale = metrics->x_scale; in FT_Request_Metrics()
[all …]
/external/opencv/otherlibs/highgui/
Dgrfmt_jpeg.cpp1641 int x_scale = channels > 1 ? 2 : 1, y_scale = x_scale; in WriteImage() local
1643 int x_step = x_scale * 8; in WriteImage()
1647 int luma_count = x_scale*y_scale; in WriteImage()
1649 int Y_step = x_scale*8; in WriteImage()
1717 lowstrm.PutByte(x_scale*16 + y_scale); // chroma scale factors in WriteImage()
1770 int j2 = j >> (x_scale - 1); in WriteImage()
1796 int src_step = x_scale * 8; in WriteImage()
/external/opencv3/modules/videoio/src/
Dcap_mjpeg_encoder.cpp1143 int x_scale = channels > 1 ? 2 : 1, y_scale = x_scale; in writeFrameData() local
1145 int x_step = x_scale * 8; in writeFrameData()
1150 int luma_count = x_scale*y_scale; in writeFrameData()
1152 int Y_step = x_scale*8; in writeFrameData()
1222 strm.putByte(x_scale*16 + y_scale); // chroma scale factors in writeFrameData()
1377 int j2 = j >> (x_scale - 1); in writeFrameData()
1405 int src_step = x_scale * 8; in writeFrameData()

123