Home
last modified time | relevance | path

Searched refs:upem (Results 1 – 25 of 78) sorted by relevance

1234

/third_party/flutter/skia/third_party/externals/harfbuzz/src/
Dtest-ot-color.cc90 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()
Dhb-ot-head-table.hh52 unsigned int upem = unitsPerEm; in get_upem() local
54 return 16 <= upem && upem <= 16384 ? upem : 1000; in get_upem()
Dtest-buffer-serialize.cc50 unsigned int upem = hb_face_get_upem (face); in main() local
53 hb_font_set_scale (font, upem, upem); in main()
Dtest.cc52 unsigned int upem = hb_face_get_upem (face); in main() local
55 hb_font_set_scale (font, upem, upem); in main()
Dsample.py31 upem = hb.face_get_upem (face) variable
33 hb.font_set_scale (font, upem, upem)
/third_party/skia/gm/
Duserfont.cpp21 const float upem = font.getTypefaceOrDefault()->getUnitsPerEm(); in make_tf() local
24 font.setSize(upem); in make_tf()
28 const SkMatrix scale = SkMatrix::Scale(1.0f/upem, 1.0f/upem); in make_tf()
33 builder.setMetrics(metrics, 1.0f/upem); in make_tf()
47 builder.setGlyph(index, width/upem, path.makeTransform(scale)); in make_tf()
/third_party/skia/tools/fonts/
DToolUtilsFont.cpp69 const float upem = 200; in sample_user_typeface() local
89 builder.setMetrics(metrics, 1.0f/upem); in sample_user_typeface()
93 const SkMatrix scale = SkMatrix::Scale(1.0f/upem, 1.0f/upem); in sample_user_typeface()
98 builder.setGlyph(index, width/upem, SkPath::Circle(50, -50, 75).makeTransform(scale)); in sample_user_typeface()
/third_party/harfbuzz/src/
Dhb-ot-head-table.hh52 unsigned int upem = unitsPerEm; in get_upem() local
54 return 16 <= upem && upem <= 16384 ? upem : 1000; in get_upem()
Dtest-buffer-serialize.cc56 unsigned int upem = hb_face_get_upem (face); in main() local
59 hb_font_set_scale (font, upem, upem); in main()
Dtest.cc52 unsigned int upem = hb_face_get_upem (face); in main() local
55 hb_font_set_scale (font, upem, upem); in main()
Dsample.py16 upem = hb.face_get_upem (face) variable
18 hb.font_set_scale (font, upem, upem)
Dhb-face.hh56 mutable hb_atomic_int_t upem; /* Units-per-EM. */ member
86 unsigned int ret = upem.get_relaxed (); in get_upem()
/third_party/skia/third_party/externals/harfbuzz/src/
Dhb-ot-head-table.hh52 unsigned int upem = unitsPerEm; in get_upem() local
54 return 16 <= upem && upem <= 16384 ? upem : 1000; in get_upem()
Dtest-buffer-serialize.cc57 unsigned int upem = hb_face_get_upem (face); in main() local
60 hb_font_set_scale (font, upem, upem); in main()
Dtest.cc53 unsigned int upem = hb_face_get_upem (face); in main() local
56 hb_font_set_scale (font, upem, upem); in main()
Dsample.py16 upem = hb.face_get_upem (face) variable
18 hb.font_set_scale (font, upem, upem)
/third_party/flutter/skia/src/ports/
DSkScalerContext_win_dw.cpp747 SkScalar upem = SkIntToScalar(dwfm.designUnitsPerEm); in generateFontMetrics() local
749 metrics->fAscent = -fTextSizeRender * SkIntToScalar(dwfm.ascent) / upem; in generateFontMetrics()
750 metrics->fDescent = fTextSizeRender * SkIntToScalar(dwfm.descent) / upem; in generateFontMetrics()
751 metrics->fLeading = fTextSizeRender * SkIntToScalar(dwfm.lineGap) / upem; in generateFontMetrics()
752 metrics->fXHeight = fTextSizeRender * SkIntToScalar(dwfm.xHeight) / upem; in generateFontMetrics()
753 metrics->fCapHeight = fTextSizeRender * SkIntToScalar(dwfm.capHeight) / upem; in generateFontMetrics()
754 metrics->fUnderlineThickness = fTextSizeRender * SkIntToScalar(dwfm.underlineThickness) / upem; in generateFontMetrics()
755 metrics->fUnderlinePosition = -(fTextSizeRender * SkIntToScalar(dwfm.underlinePosition) / upem); in generateFontMetrics()
756 …metrics->fStrikeoutThickness = fTextSizeRender * SkIntToScalar(dwfm.strikethroughThickness) / upem; in generateFontMetrics()
757 …etrics->fStrikeoutPosition = -(fTextSizeRender * SkIntToScalar(dwfm.strikethroughPosition) / upem); in generateFontMetrics()
[all …]
DSkFontHost_FreeType.cpp775 SkScalar upem = SkIntToScalar(face->units_per_EM); in GetUnitsPerEm() local
777 if (upem == 0) { in GetUnitsPerEm()
780 upem = SkIntToScalar(ttHeader->Units_Per_EM); in GetUnitsPerEm()
783 return upem; in GetUnitsPerEm()
972 SkScalar upem = fFaceRec->fFace->units_per_EM; in SkScalerContext_FreeType() local
974 SkScalar x_ppem = upem * SkFT_FixedToScalar(ftmetrics.x_scale) / 64.0f; in SkScalerContext_FreeType()
975 SkScalar y_ppem = upem * SkFT_FixedToScalar(ftmetrics.y_scale) / 64.0f; in SkScalerContext_FreeType()
1407 SkScalar upem = SkIntToScalar(SkTypeface_FreeType::GetUnitsPerEm(face)); in generateFontMetrics() local
1416 x_height = SkIntToScalar(os2->sxHeight) / upem * fScale.y(); in generateFontMetrics()
1417 avgCharWidth = SkIntToScalar(os2->xAvgCharWidth) / upem; in generateFontMetrics()
[all …]
/third_party/skia/src/ports/
DSkFontHost_FreeType.cpp686 SkScalar upem = SkIntToScalar(face->units_per_EM); in GetUnitsPerEm() local
688 if (upem == 0) { in GetUnitsPerEm()
691 upem = SkIntToScalar(ttHeader->Units_Per_EM); in GetUnitsPerEm()
694 return upem; in GetUnitsPerEm()
882 SkScalar upem = fFaceRec->fFace->units_per_EM; in SkScalerContext_FreeType() local
884 SkScalar x_ppem = upem * SkFT_FixedToScalar(ftmetrics.x_scale) / 64.0f; in SkScalerContext_FreeType()
885 SkScalar y_ppem = upem * SkFT_FixedToScalar(ftmetrics.y_scale) / 64.0f; in SkScalerContext_FreeType()
1377 SkScalar upem = SkIntToScalar(SkTypeface_FreeType::GetUnitsPerEm(face)); in generateFontMetrics() local
1386 x_height = SkIntToScalar(os2->sxHeight) / upem * fScale.y(); in generateFontMetrics()
1387 avgCharWidth = SkIntToScalar(os2->xAvgCharWidth) / upem; in generateFontMetrics()
[all …]
DSkScalerContext_win_dw.cpp805 SkScalar upem = SkIntToScalar(dwfm.designUnitsPerEm); in generateFontMetrics() local
807 metrics->fAscent = -fTextSizeRender * SkIntToScalar(dwfm.ascent) / upem; in generateFontMetrics()
808 metrics->fDescent = fTextSizeRender * SkIntToScalar(dwfm.descent) / upem; in generateFontMetrics()
809 metrics->fLeading = fTextSizeRender * SkIntToScalar(dwfm.lineGap) / upem; in generateFontMetrics()
810 metrics->fXHeight = fTextSizeRender * SkIntToScalar(dwfm.xHeight) / upem; in generateFontMetrics()
811 metrics->fCapHeight = fTextSizeRender * SkIntToScalar(dwfm.capHeight) / upem; in generateFontMetrics()
812 metrics->fUnderlineThickness = fTextSizeRender * SkIntToScalar(dwfm.underlineThickness) / upem; in generateFontMetrics()
813 metrics->fUnderlinePosition = -(fTextSizeRender * SkIntToScalar(dwfm.underlinePosition) / upem); in generateFontMetrics()
814 …metrics->fStrikeoutThickness = fTextSizeRender * SkIntToScalar(dwfm.strikethroughThickness) / upem; in generateFontMetrics()
815 …etrics->fStrikeoutPosition = -(fTextSizeRender * SkIntToScalar(dwfm.strikethroughPosition) / upem); in generateFontMetrics()
[all …]
/third_party/flutter/txt/src/minikin/
DHbFontCache.cpp102 unsigned int upem = hb_face_get_upem(face); in getHbFontLocked() local
103 hb_font_set_scale(parent_font, upem, upem); in getHbFontLocked()
/third_party/flutter/engine/flutter/third_party/txt/src/minikin/
DHbFontCache.cpp102 unsigned int upem = hb_face_get_upem(face); in getHbFontLocked() local
103 hb_font_set_scale(parent_font, upem, upem); in getHbFontLocked()
/third_party/flutter/skia/third_party/externals/harfbuzz/test/api/
Dtest-font.c128 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()
467 unsigned int upem; in test_font_properties() local
494 upem = hb_face_get_upem (hb_font_get_face (font)); in test_font_properties()
498 g_assert_cmpint (x_scale, ==, upem); in test_font_properties()
501 g_assert_cmpint (y_scale, ==, upem); in test_font_properties()
504 g_assert_cmpint (x_scale, ==, upem); in test_font_properties()
505 g_assert_cmpint (y_scale, ==, upem); in test_font_properties()
/third_party/harfbuzz/test/api/
Dtest-font.c128 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()
467 unsigned int upem; in test_font_properties() local
494 upem = hb_face_get_upem (hb_font_get_face (font)); in test_font_properties()
498 g_assert_cmpint (x_scale, ==, upem); in test_font_properties()
501 g_assert_cmpint (y_scale, ==, upem); in test_font_properties()
504 g_assert_cmpint (x_scale, ==, upem); in test_font_properties()
505 g_assert_cmpint (y_scale, ==, upem); in test_font_properties()
/third_party/skia/third_party/externals/harfbuzz/test/api/
Dtest-font.c128 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()
467 unsigned int upem; in test_font_properties() local
494 upem = hb_face_get_upem (hb_font_get_face (font)); in test_font_properties()
498 g_assert_cmpint (x_scale, ==, upem); in test_font_properties()
501 g_assert_cmpint (y_scale, ==, upem); in test_font_properties()
504 g_assert_cmpint (x_scale, ==, upem); in test_font_properties()
505 g_assert_cmpint (y_scale, ==, upem); in test_font_properties()

1234