/external/harfbuzz_ng/src/ |
D | test-ot-color.cc | 90 unsigned int upem = hb_face_get_upem (face); in png_dump() local 93 for (unsigned int ppem = 1; ppem < upem; ppem++) in png_dump() 131 unsigned int upem = hb_face_get_upem (face); in layered_glyph_dump() local 151 cairo_set_font_size (cr, upem); in layered_glyph_dump() 186 cairo_set_font_size (cr, upem); in layered_glyph_dump() 218 dump_glyphs (cairo_font_face_t *cairo_face, unsigned int upem, in dump_glyphs() argument 232 cairo_set_font_size (cr, upem); in dump_glyphs() 252 cairo_set_font_size (cr, upem); in dump_glyphs() 321 unsigned int upem = hb_face_get_upem (face); in main() local 327 dump_glyphs (cairo_face, upem, num_glyphs, face_index); in main()
|
D | hb-ot-head-table.hh | 52 unsigned int upem = unitsPerEm; in get_upem() local 54 return 16 <= upem && upem <= 16384 ? upem : 1000; in get_upem()
|
D | test-buffer-serialize.cc | 50 unsigned int upem = hb_face_get_upem (face); in main() local 53 hb_font_set_scale (font, upem, upem); in main()
|
D | test.cc | 52 unsigned int upem = hb_face_get_upem (face); in main() local 55 hb_font_set_scale (font, upem, upem); in main()
|
D | sample.py | 31 upem = hb.face_get_upem (face) variable 33 hb.font_set_scale (font, upem, upem)
|
D | hb-face.hh | 56 mutable hb_atomic_int_t upem; /* Units-per-EM. */ member 86 unsigned int ret = upem.get_relaxed (); in get_upem()
|
D | hb-ot-color-cbdt-table.hh | 390 upem = hb_face_get_upem (face); in init() 445 double x_scale = upem / (double) strike.ppemX; in get_extents() 446 double y_scale = upem / (double) strike.ppemY; in get_extents() 514 unsigned int upem; member
|
D | hb-face.cc | 435 unsigned int upem) in hb_face_set_upem() argument 440 face->upem.set_relaxed (upem); in hb_face_set_upem()
|
D | hb-font.hh | 604 int upem = face->get_upem (); in em_scale() local 606 scaled += scaled >= 0 ? upem/2 : -upem/2; /* Round. */ in em_scale() 607 return (hb_position_t) (scaled / upem); in em_scale()
|
D | hb-graphite2.cc | 391 unsigned int upem = hb_face_get_upem (face); in _hb_graphite2_shape() local 392 float xscale = (float) font->x_scale / upem; in _hb_graphite2_shape() 393 float yscale = (float) font->y_scale / upem; in _hb_graphite2_shape()
|
D | hb-static.cc | 71 upem.set_relaxed (ret); in load_upem()
|
D | hb-face.h | 106 unsigned int upem);
|
/external/skqp/src/ports/ |
D | SkScalerContext_win_dw.cpp | 750 SkScalar upem = SkIntToScalar(dwfm.designUnitsPerEm); in generateFontMetrics() local 752 metrics->fAscent = -fTextSizeRender * SkIntToScalar(dwfm.ascent) / upem; in generateFontMetrics() 753 metrics->fDescent = fTextSizeRender * SkIntToScalar(dwfm.descent) / upem; in generateFontMetrics() 754 metrics->fLeading = fTextSizeRender * SkIntToScalar(dwfm.lineGap) / upem; in generateFontMetrics() 755 metrics->fXHeight = fTextSizeRender * SkIntToScalar(dwfm.xHeight) / upem; in generateFontMetrics() 756 metrics->fCapHeight = fTextSizeRender * SkIntToScalar(dwfm.capHeight) / upem; in generateFontMetrics() 757 metrics->fUnderlineThickness = fTextSizeRender * SkIntToScalar(dwfm.underlineThickness) / upem; in generateFontMetrics() 758 metrics->fUnderlinePosition = -(fTextSizeRender * SkIntToScalar(dwfm.underlinePosition) / upem); in generateFontMetrics() 759 …metrics->fStrikeoutThickness = fTextSizeRender * SkIntToScalar(dwfm.strikethroughThickness) / upem; in generateFontMetrics() 760 …etrics->fStrikeoutPosition = -(fTextSizeRender * SkIntToScalar(dwfm.strikethroughPosition) / upem); in generateFontMetrics() [all …]
|
D | SkFontHost_FreeType.cpp | 752 SkScalar upem = SkIntToScalar(face->units_per_EM); in GetUnitsPerEm() local 754 if (upem == 0) { in GetUnitsPerEm() 757 upem = SkIntToScalar(ttHeader->Units_Per_EM); in GetUnitsPerEm() 760 return upem; in GetUnitsPerEm() 946 SkScalar upem = fFaceRec->fFace->units_per_EM; in SkScalerContext_FreeType() local 948 SkScalar x_ppem = upem * SkFT_FixedToScalar(ftmetrics.x_scale) / 64.0f; in SkScalerContext_FreeType() 949 SkScalar y_ppem = upem * SkFT_FixedToScalar(ftmetrics.y_scale) / 64.0f; in SkScalerContext_FreeType() 1390 SkScalar upem = SkIntToScalar(SkTypeface_FreeType::GetUnitsPerEm(face)); in generateFontMetrics() local 1399 x_height = SkIntToScalar(os2->sxHeight) / upem * fScale.y(); in generateFontMetrics() 1400 avgCharWidth = SkIntToScalar(os2->xAvgCharWidth) / upem; in generateFontMetrics() [all …]
|
/external/skia/src/ports/ |
D | SkScalerContext_win_dw.cpp | 752 SkScalar upem = SkIntToScalar(dwfm.designUnitsPerEm); in generateFontMetrics() local 754 metrics->fAscent = -fTextSizeRender * SkIntToScalar(dwfm.ascent) / upem; in generateFontMetrics() 755 metrics->fDescent = fTextSizeRender * SkIntToScalar(dwfm.descent) / upem; in generateFontMetrics() 756 metrics->fLeading = fTextSizeRender * SkIntToScalar(dwfm.lineGap) / upem; in generateFontMetrics() 757 metrics->fXHeight = fTextSizeRender * SkIntToScalar(dwfm.xHeight) / upem; in generateFontMetrics() 758 metrics->fCapHeight = fTextSizeRender * SkIntToScalar(dwfm.capHeight) / upem; in generateFontMetrics() 759 metrics->fUnderlineThickness = fTextSizeRender * SkIntToScalar(dwfm.underlineThickness) / upem; in generateFontMetrics() 760 metrics->fUnderlinePosition = -(fTextSizeRender * SkIntToScalar(dwfm.underlinePosition) / upem); in generateFontMetrics() 761 …metrics->fStrikeoutThickness = fTextSizeRender * SkIntToScalar(dwfm.strikethroughThickness) / upem; in generateFontMetrics() 762 …etrics->fStrikeoutPosition = -(fTextSizeRender * SkIntToScalar(dwfm.strikethroughPosition) / upem); in generateFontMetrics() [all …]
|
D | SkFontHost_FreeType.cpp | 752 SkScalar upem = SkIntToScalar(face->units_per_EM); in GetUnitsPerEm() local 754 if (upem == 0) { in GetUnitsPerEm() 757 upem = SkIntToScalar(ttHeader->Units_Per_EM); in GetUnitsPerEm() 760 return upem; in GetUnitsPerEm() 946 SkScalar upem = fFaceRec->fFace->units_per_EM; in SkScalerContext_FreeType() local 948 SkScalar x_ppem = upem * SkFT_FixedToScalar(ftmetrics.x_scale) / 64.0f; in SkScalerContext_FreeType() 949 SkScalar y_ppem = upem * SkFT_FixedToScalar(ftmetrics.y_scale) / 64.0f; in SkScalerContext_FreeType() 1390 SkScalar upem = SkIntToScalar(SkTypeface_FreeType::GetUnitsPerEm(face)); in generateFontMetrics() local 1399 x_height = SkIntToScalar(os2->sxHeight) / upem * fScale.y(); in generateFontMetrics() 1400 avgCharWidth = SkIntToScalar(os2->xAvgCharWidth) / upem; in generateFontMetrics() [all …]
|
/external/fonttools/Lib/fontTools/pens/ |
D | statisticsPen.py | 73 def _test(glyphset, upem, glyphs): argument 77 print('upem', upem) 84 transformer = TransformPen(pen, Scale(1./upem))
|
/external/harfbuzz_ng/test/api/ |
D | test-font.c | 128 unsigned int upem = hb_face_get_upem (hb_font_get_face (font)); in _test_font_nil_funcs() local 136 g_assert_cmpint (x, ==, upem); in _test_font_nil_funcs() 470 unsigned int upem; in test_font_properties() local 497 upem = hb_face_get_upem (hb_font_get_face (font)); in test_font_properties() 501 g_assert_cmpint (x_scale, ==, upem); in test_font_properties() 504 g_assert_cmpint (y_scale, ==, upem); in test_font_properties() 507 g_assert_cmpint (x_scale, ==, upem); in test_font_properties() 508 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/harfbuzz_ng/test/shaping/data/aots/ |
D | hb-aots-tester.cpp | 53 unsigned int upem = hb_face_get_upem (face); in runTest() local 55 hb_font_set_scale(font, upem, upem); in runTest()
|
/external/fonttools/Lib/fontTools/varLib/ |
D | interpolatable.py | 148 upem = 2048 149 item_cost = round((matching_cost / len(m0) / len(m0[0])) ** .5 / upem * 100)
|
/external/freetype/src/sfnt/ |
D | ttsbit.c | 408 FT_UShort upem, ppem, resolution; in tt_face_load_strike_metrics() local 433 upem = face->header.Units_Per_EM; in tt_face_load_strike_metrics() 442 FT_MulDiv( hori->Ascender, ppem_ * 64, upem ); in tt_face_load_strike_metrics() 444 FT_MulDiv( hori->Descender, ppem_ * 64, upem ); in tt_face_load_strike_metrics() 447 ppem_ * 64, upem ); in tt_face_load_strike_metrics() 449 FT_MulDiv( hori->advance_Width_Max, ppem_ * 64, upem ); in tt_face_load_strike_metrics()
|
/external/freetype/docs/ |
D | TODO | 25 Use top-level font matrix entry for setting the upem value, not the
|
/external/skia/tools/fonts/ |
D | SkTestSVGTypeface.h | 50 int upem,
|
/external/skqp/tools/fonts/ |
D | SkTestSVGTypeface.h | 50 int upem,
|