/external/harfbuzz_ng/src/ |
D | hb-ot-head-table.hh | 50 unsigned int upem = unitsPerEm; in get_upem() local 52 return 16 <= upem && upem <= 16384 ? upem : 1000; in get_upem()
|
D | hb-face-private.hh | 54 mutable unsigned int upem; /* Units-per-EM. */ member 85 if (unlikely (!upem)) in get_upem() 87 return upem; in get_upem()
|
D | hb-face.cc | 93 face->upem = 0; in hb_face_create_for_tables() 398 unsigned int upem) in hb_face_set_upem() argument 403 face->upem = upem; in hb_face_set_upem() 427 upem = head_table->get_upem (); in load_upem()
|
D | test-buffer-serialize.cc | 91 unsigned int upem = hb_face_get_upem (face); in main() local 94 hb_font_set_scale (font, upem, upem); in main()
|
D | sample.py | 30 upem = hb.face_get_upem (face) variable 32 hb.font_set_scale (font, upem, upem)
|
D | test.cc | 94 unsigned int upem = hb_face_get_upem (face); in main() local 97 hb_font_set_scale (font, upem, upem); in main()
|
D | hb-ot-font.cc | 227 float upem; member 231 upem = face->get_upem(); in init() 255 unsigned int x_ppem = upem, y_ppem = upem; /* TODO Use font ppem if available. */ in get_extents() 295 extents->x_bearing *= upem / (float) x_ppem; in get_extents() 296 extents->y_bearing *= upem / (float) y_ppem; in get_extents() 297 extents->width *= upem / (float) x_ppem; in get_extents() 298 extents->height *= upem / (float) y_ppem; in get_extents()
|
D | hb-font-private.hh | 535 int upem = face->get_upem (); in em_scale() local 537 scaled += scaled >= 0 ? upem/2 : -upem/2; /* Round. */ in em_scale() 538 return (hb_position_t) (scaled / upem); in em_scale()
|
D | hb-face.h | 102 unsigned int upem);
|
/external/skia/src/ports/ |
D | SkScalerContext_win_dw.cpp | 614 SkScalar upem = SkIntToScalar(dwfm.designUnitsPerEm); in generateFontMetrics() local 616 metrics->fAscent = -fTextSizeRender * SkIntToScalar(dwfm.ascent) / upem; in generateFontMetrics() 617 metrics->fDescent = fTextSizeRender * SkIntToScalar(dwfm.descent) / upem; in generateFontMetrics() 618 metrics->fLeading = fTextSizeRender * SkIntToScalar(dwfm.lineGap) / upem; in generateFontMetrics() 619 metrics->fXHeight = fTextSizeRender * SkIntToScalar(dwfm.xHeight) / upem; in generateFontMetrics() 620 metrics->fCapHeight = fTextSizeRender * SkIntToScalar(dwfm.capHeight) / upem; in generateFontMetrics() 621 metrics->fUnderlineThickness = fTextSizeRender * SkIntToScalar(dwfm.underlineThickness) / upem; in generateFontMetrics() 622 metrics->fUnderlinePosition = -(fTextSizeRender * SkIntToScalar(dwfm.underlinePosition) / upem); in generateFontMetrics() 630 metrics->fTop = -fTextSizeRender * SkIntToScalar(dwfm1.glyphBoxTop) / upem; in generateFontMetrics() 631 metrics->fBottom = -fTextSizeRender * SkIntToScalar(dwfm1.glyphBoxBottom) / upem; in generateFontMetrics() [all …]
|
D | SkFontHost_FreeType.cpp | 1344 SkScalar upem = SkIntToScalar(face->units_per_EM); in generateFontMetrics() local 1345 if (!upem) { in generateFontMetrics() 1348 upem = SkIntToScalar(ttHeader->Units_Per_EM); in generateFontMetrics() 1358 x_height = SkIntToScalar(os2->sxHeight) / upem * fScale.y(); in generateFontMetrics() 1359 avgCharWidth = SkIntToScalar(os2->xAvgCharWidth) / upem; in generateFontMetrics() 1361 cap_height = SkIntToScalar(os2->sCapHeight) / upem * fScale.y(); in generateFontMetrics() 1375 ascent = -SkIntToScalar(os2->sTypoAscender) / upem; in generateFontMetrics() 1376 descent = -SkIntToScalar(os2->sTypoDescender) / upem; in generateFontMetrics() 1377 leading = SkIntToScalar(os2->sTypoLineGap) / upem; in generateFontMetrics() 1379 ascent = -SkIntToScalar(face->ascender) / upem; in generateFontMetrics() [all …]
|
D | SkFontHost_win.cpp | 726 SkScalar upem = SkIntToScalar(otm.otmEMSquare); in SkScalerContext_GDI() local 728 SkScalar gdiTextSizeToEMScale = upem / gdiTextSize; in SkScalerContext_GDI() 734 SkScalar removeEMScale = SkScalarInvert(upem); in SkScalerContext_GDI() 2191 unsigned int upem = calculateUPEM(hdc, fLogFont); in onGetUPEM() local 2197 return upem; in onGetUPEM()
|
D | SkFontHost_mac.cpp | 1327 unsigned upem = CTFontGetUnitsPerEm(this->fCTFont.get()); in generateFontMetrics() local 1328 unsigned maxSaneHeight = upem * 2; in generateFontMetrics() 1331 metrics->fXHeight = CGToScalar(xHeight * fontSize / upem); in generateFontMetrics() 1335 metrics->fCapHeight = CGToScalar(capHeight * fontSize / upem); in generateFontMetrics()
|
/external/harfbuzz_ng/test/api/ |
D | test-font.c | 118 unsigned int upem = hb_face_get_upem (hb_font_get_face (font)); in _test_font_nil_funcs() local 126 g_assert_cmpint (x, ==, upem); in _test_font_nil_funcs() 379 unsigned int upem; in test_font_properties() local 406 upem = hb_face_get_upem (hb_font_get_face (font)); in test_font_properties() 410 g_assert_cmpint (x_scale, ==, upem); in test_font_properties() 413 g_assert_cmpint (y_scale, ==, upem); in test_font_properties() 416 g_assert_cmpint (x_scale, ==, upem); in test_font_properties() 417 g_assert_cmpint (y_scale, ==, upem); in test_font_properties()
|
/external/freetype/src/autofit/ |
D | afshaper.c | 453 FT_Int upem; in af_shaper_get_cluster() local 462 upem = (FT_Int)metrics->globals->face->units_per_EM; in af_shaper_get_cluster() 469 hb_font_set_scale( font, upem, upem ); in af_shaper_get_cluster()
|
/external/freetype/src/sfnt/ |
D | ttsbit.c | 404 FT_UShort upem, ppem, resolution; in tt_face_load_strike_metrics() local 429 upem = face->header.Units_Per_EM; in tt_face_load_strike_metrics() 438 FT_MulDiv( hori->Ascender, ppem_ * 64, upem ); in tt_face_load_strike_metrics() 440 FT_MulDiv( hori->Descender, ppem_ * 64, upem ); in tt_face_load_strike_metrics() 443 ppem_ * 64, upem ); in tt_face_load_strike_metrics() 445 FT_MulDiv( hori->advance_Width_Max, ppem_ * 64, upem ); in tt_face_load_strike_metrics()
|
/external/pdfium/third_party/freetype/src/sfnt/ |
D | ttsbit.c | 272 FT_UInt offset, upem; in tt_face_load_strike_metrics() local 303 upem = face->header.Units_Per_EM; in tt_face_load_strike_metrics() 310 upem_ = (FT_Pos)upem; in tt_face_load_strike_metrics()
|