Home
last modified time | relevance | path

Searched refs:x_ppem (Results 1 – 25 of 42) sorted by relevance

12

/external/harfbuzz_ng/test/api/
Dtest-font.c466 unsigned int x_ppem, y_ppem; in test_font_properties() local
518 x_ppem = y_ppem = 13; in test_font_properties()
519 hb_font_get_ppem (font, &x_ppem, NULL); in test_font_properties()
520 g_assert_cmpint (x_ppem, ==, 0); in test_font_properties()
521 x_ppem = y_ppem = 13; in test_font_properties()
524 x_ppem = y_ppem = 13; in test_font_properties()
525 hb_font_get_ppem (font, &x_ppem, &y_ppem); in test_font_properties()
526 g_assert_cmpint (x_ppem, ==, 0); in test_font_properties()
531 x_ppem = y_ppem = 13; in test_font_properties()
532 hb_font_get_ppem (font, &x_ppem, &y_ppem); in test_font_properties()
[all …]
/external/harfbuzz_ng/src/OT/Layout/GPOS/
DAnchorFormat2.hh36 unsigned int x_ppem = font->x_ppem; in get_anchor() local
41 ret = (x_ppem || y_ppem) && in get_anchor()
43 *x = ret && x_ppem ? cx : font->em_fscale_x (xCoordinate); in get_anchor()
DAnchorFormat3.hh38 if (font->x_ppem || font->num_coords) in get_anchor()
DValueFormat.hh112 bool use_x_device = font->x_ppem || font->num_coords; in apply_value()
/external/pdfium/core/fxge/android/
Dcfpf_skiafont.cpp97 int32_t x_ppem = GetFaceRec()->size->metrics.x_ppem; in GetGlyphBBox() local
99 rtBBox.left = static_cast<int32_t>(FPF_EM_ADJUST(x_ppem, cbox.xMin)); in GetGlyphBBox()
100 rtBBox.right = static_cast<int32_t>(FPF_EM_ADJUST(x_ppem, cbox.xMax)); in GetGlyphBBox()
/external/harfbuzz_ng/util/
Dfont-options.hh63 int x_ppem = 0; member
100 hb_font_set_ppem (font, x_ppem, y_ppem); in post_parse()
236 switch (sscanf (arg, "%d%*[ ,]%d", &font_opts->x_ppem, &font_opts->y_ppem)) { in parse_font_ppem()
237 case 1: font_opts->y_ppem = font_opts->x_ppem; HB_FALLTHROUGH; in parse_font_ppem()
/external/freetype/src/truetype/
Dttobjs.c925 size_metrics->x_ppem = 0; in tt_size_run_fpgm()
1367 if ( size_metrics->x_ppem < 1 || size_metrics->y_ppem < 1 ) in tt_size_reset_height()
1423 size_metrics->x_scale = FT_DivFix( size_metrics->x_ppem << 6, in tt_size_reset()
1434 if ( size_metrics->x_ppem >= size_metrics->y_ppem ) in tt_size_reset()
1437 size->ttmetrics.ppem = size_metrics->x_ppem; in tt_size_reset()
1440 size_metrics->x_ppem ); in tt_size_reset()
1446 size->ttmetrics.x_ratio = FT_DivFix( size_metrics->x_ppem, in tt_size_reset()
1451 size->widthp = tt_face_get_device_metrics( face, size_metrics->x_ppem, 0 ); in tt_size_reset()
Dttsubpix.c908 FT_UInt ppem = loader->size->metrics->x_ppem; in sph_set_tweaks()
Dttdriver.c377 ttsize->metrics->x_ppem > ttsize->metrics->y_ppem in tt_size_request()
/external/harfbuzz_ng/src/
Dhb-font.cc1802 font->x_ppem = parent->x_ppem; in hb_font_create_sub_font()
2241 unsigned int x_ppem, in hb_font_set_ppem() argument
2247 if (font->x_ppem == x_ppem && font->y_ppem == y_ppem) in hb_font_set_ppem()
2252 font->x_ppem = x_ppem; in hb_font_set_ppem()
2268 unsigned int *x_ppem, in hb_font_get_ppem() argument
2271 if (x_ppem) *x_ppem = font->x_ppem; in hb_font_get_ppem()
Dhb-ft.cc153 font->x_ppem * 72 * 64 / font->x_scale, in _hb_ft_hb_font_changed()
161 int x_scale = ft_face->available_sizes[0].x_ppem; in _hb_ft_hb_font_changed()
562 FT_Kerning_Mode mode = font->x_ppem ? FT_KERNING_DEFAULT : FT_KERNING_UNFITTED; in hb_ft_get_glyph_h_kerning()
1092 ft_face->size->metrics.x_ppem, in hb_ft_font_changed()
Dhb-font.h1054 unsigned int x_ppem,
1059 unsigned int *x_ppem,
Dhb-ot-color-sbix-table.hh242 unsigned int requested_ppem = hb_max (font->x_ppem, font->y_ppem); in choose_strike()
/external/freetype/src/autofit/
Dafloader.c104 FT_Bool size_changed = size_metrics->x_ppem != in af_loader_embolden_glyph_in_slot()
151 globals->stem_darkening_for_ppem = size_metrics->x_ppem; in af_loader_embolden_glyph_in_slot()
169 globals->stem_darkening_for_ppem = size_metrics->x_ppem; in af_loader_embolden_glyph_in_slot()
262 size_metrics->x_scale = FT_DivFix( size_metrics->x_ppem << 6, in af_loader_load_glyph()
600 af_intToFixed( face->size->metrics.x_ppem ) ); in af_loader_compute_darkening()
/external/freetype/src/sfnt/
Dttsbit.c315 metrics->x_ppem = (FT_UShort)strike[44]; in tt_face_load_strike_metrics()
347 metrics->x_ppem, metrics->y_ppem )); in tt_face_load_strike_metrics()
375 metrics->x_ppem, metrics->y_ppem )); in tt_face_load_strike_metrics()
388 metrics->x_scale = FT_DivFix( metrics->x_ppem * 64, in tt_face_load_strike_metrics()
425 metrics->x_ppem = ppem; in tt_face_load_strike_metrics()
1576 face->root.size->metrics.x_ppem / in tt_face_load_sbix_image()
1589 face->root.size->metrics.x_ppem / in tt_face_load_sbix_image()
Dsfobjs.c1264 ( avgwidth * metrics.x_ppem + em_size / 2 ) / em_size ); in sfnt_load_face()
1266 bsize->x_ppem = metrics.x_ppem << 6; in sfnt_load_face()
1273 if ( bsize->x_ppem && bsize->y_ppem ) in sfnt_load_face()
/external/freetype/include/freetype/internal/
Dtttypes.h688 FT_Byte x_ppem; member
757 FT_Byte x_ppem; member
/external/freetype/src/pfr/
Dpfrdrivr.c121 x_scale = FT_DivFix( size->metrics.x_ppem << 6, in pfr_get_metrics()
Dpfrsbit.c610 if ( strike->x_ppm == (FT_UInt)size->root.metrics.x_ppem && in pfr_slot_load_bitmap()
677 advance = FT_MulDiv( (FT_Fixed)size->root.metrics.x_ppem << 8, in pfr_slot_load_bitmap()
Dpfrobjs.c230 size->x_ppem = (FT_Pos)( strike->x_ppm << 6 ); in pfr_face_init()
/external/freetype/src/base/
Dftobjs.c925 if ( face->size->metrics.x_ppem == 0 || in FT_Load_Glyph()
2768 if ( bsize->x_ppem < 0 ) in ft_open_face_internal()
2769 bsize->x_ppem = -bsize->x_ppem; in ft_open_face_internal()
2774 if ( bsize->height < 0 || bsize->x_ppem < 0 || bsize->y_ppem < 0 ) in ft_open_face_internal()
2782 bsize->x_ppem = 0; in ft_open_face_internal()
3121 if ( w == FT_PIX_ROUND( bsize->x_ppem ) || ignore_width ) in FT_Match_Size()
3211 metrics->x_ppem = (FT_UShort)( ( bsize->x_ppem + 32 ) >> 6 ); in FT_Select_Metrics()
3216 metrics->x_scale = FT_DivFix( bsize->x_ppem, in FT_Select_Metrics()
3230 metrics->max_advance = bsize->x_ppem; in FT_Select_Metrics()
3356 metrics->x_ppem = (FT_UShort)scaled_w; in FT_Request_Metrics()
[all …]
/external/freetype/include/freetype/
Dfreetype.h398 FT_Pos x_ppem; member
1775 FT_UShort x_ppem; /* horizontal pixels per EM */ member
/external/freetype/src/winfonts/
Dwinfnt.c849 bsize->x_ppem = FT_MulDiv( bsize->size, x_res, 72 ); in FNT_Face_Init()
850 bsize->x_ppem = FT_PIX_ROUND( bsize->x_ppem ); in FNT_Face_Init()
/external/freetype/src/bdf/
Dbdfdrivr.c588 bsize->x_ppem = FT_MulDiv( bsize->y_ppem, in BDF_Face_Init()
592 bsize->x_ppem = bsize->y_ppem; in BDF_Face_Init()
/external/skia/src/ports/
DSkFontHost_FreeType.cpp993 SkScalar x_ppem = upem * SkFT_FixedToScalar(ftmetrics.x_scale) / 64.0f; in SkScalerContext_FreeType() local
995 fMatrix22Scalar.preScale(fScale.x() / x_ppem, fScale.y() / y_ppem); in SkScalerContext_FreeType()
1023 fMatrix22Scalar.preScale(fScale.x() / fFaceRec->fFace->size->metrics.x_ppem, in SkScalerContext_FreeType()
1619 SkScalar xppem = SkIntToScalar(face->size->metrics.x_ppem); in generateFontMetrics()

12