Home
last modified time | relevance | path

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

/third_party/skia/gm/
H A 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/
H A 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()
H A DTestSVGTypeface.h55 int upem,
H A DTestSVGTypeface.cpp53 int upem, in TestSVGTypeface()
59 , fUpem(upem) in TestSVGTypeface()
178 SkScalar upem = this->getTestSVGTypeface()->fUpem; in SkTestSVGScalerContext() local
179 fMatrix.preScale(1.f / upem, 1.f / upem); in SkTestSVGScalerContext()
52 TestSVGTypeface(const char* name, int upem, const SkFontMetrics& fontMetrics, SkSpan<const SkSVGTestTypefaceGlyphData> data, const SkFontStyle& style) TestSVGTypeface() argument
/third_party/skia/third_party/externals/harfbuzz/src/
H A Dhb-ot-head-table.hh52 unsigned int upem = unitsPerEm; in get_upem() local
54 return 16 <= upem && upem <= 16384 ? upem : 1000; in get_upem()
H A 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()
H A Dtest.cc53 unsigned int upem = hb_face_get_upem (face); in main() local
56 hb_font_set_scale (font, upem, upem); in main()
H A Dsample.py16 upem = hb.face_get_upem (face) variable
18 hb.font_set_scale (font, upem, upem)
H A Dhb-face.hh56 mutable hb_atomic_int_t upem; /* Units-per-EM. */ member
86 unsigned int ret = upem.get_relaxed (); in get_upem()
H A Dhb-face.cc93 1000, /* upem */
458 * @upem: The units-per-em value to assign
460 * Sets the units-per-em (upem) for a face object to the specified value.
466 unsigned int upem) in hb_face_set_upem()
471 face->upem.set_relaxed (upem); in hb_face_set_upem()
478 * Fetches the units-per-em (upem) value of the specified face object.
480 * Return value: The upem value of @face
465 hb_face_set_upem(hb_face_t *face, unsigned int upem) hb_face_set_upem() argument
H A Dhb-graphite2.cc325 unsigned int upem = hb_face_get_upem (face); in _hb_graphite2_shape() local
326 float xscale = (float) font->x_scale / upem; in _hb_graphite2_shape()
327 float yscale = (float) font->y_scale / upem; in _hb_graphite2_shape()
H A Dhb-face.h125 unsigned int upem);
H A Dhb-static.cc76 upem.set_relaxed (ret); in load_upem()
H A Dhb-ot-color-cbdt-table.hh817 upem = hb_face_get_upem (face); in init()
866 float x_scale = upem / (float) strike.ppemX; in get_extents()
867 float y_scale = upem / (float) strike.ppemY; in get_extents()
932 unsigned int upem; member
H A Dhb-font.hh617 signed upem = face->get_upem (); in mults_changed() local
618 x_mult = ((int64_t) x_scale << 16) / upem; in mults_changed()
619 y_mult = ((int64_t) y_scale << 16) / upem; in mults_changed()
H A Dmain.cc94 unsigned upem = hb_face_get_upem (face); in png_dump() local
97 for (unsigned ppem = 1; ppem < upem; ++ppem) in png_dump()
/third_party/skia/src/ports/
H A 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 metrics->fStrikeoutPosition = -(fTextSizeRender * SkIntToScalar(dwfm.strikethroughPosition) / upem); in generateFontMetrics()
[all...]
H A DSkFontHost_FreeType.cpp691 SkScalar upem = SkIntToScalar(face->units_per_EM);
693 if (upem == 0) {
696 upem = SkIntToScalar(ttHeader->Units_Per_EM);
699 return upem;
887 SkScalar upem = fFaceRec->fFace->units_per_EM;
889 SkScalar x_ppem = upem * SkFT_FixedToScalar(ftmetrics.x_scale) / 64.0f;
890 SkScalar y_ppem = upem * SkFT_FixedToScalar(ftmetrics.y_scale) / 64.0f;
1382 SkScalar upem = SkIntToScalar(SkTypeface_FreeType::GetUnitsPerEm(face));
1391 x_height = SkIntToScalar(os2->sxHeight) / upem * fScale.y();
1392 avgCharWidth = SkIntToScalar(os2->xAvgCharWidth) / upem;
[all...]
H A DSkScalerContext_mac_ct.cpp711 unsigned upem = CTFontGetUnitsPerEm(this->fCTFont.get()); in generateFontMetrics() local
712 unsigned maxSaneHeight = upem * 2; in generateFontMetrics()
715 metrics->fXHeight = SkScalarFromCGFloat(xHeight * fontSize / upem); in generateFontMetrics()
719 metrics->fCapHeight = SkScalarFromCGFloat(capHeight * fontSize / upem); in generateFontMetrics()
H A DSkFontHost_win.cpp748 SkScalar upem = SkIntToScalar(otm.otmEMSquare); in SkScalerContext_GDI() local
750 SkScalar gdiTextSizeToEMScale = upem / gdiTextSize; in SkScalerContext_GDI()
756 SkScalar removeEMScale = SkScalarInvert(upem); in SkScalerContext_GDI()
/third_party/skia/third_party/externals/harfbuzz/test/api/
H A 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/freetype/src/autofit/
H A Dafshaper.c467 FT_Int upem; in af_shaper_get_cluster() local
476 upem = (FT_Int)metrics->globals->face->units_per_EM; in af_shaper_get_cluster()
483 hb_font_set_scale( font, upem, upem ); in af_shaper_get_cluster()
/third_party/skia/src/utils/
H A DSkCustomTypeface.cpp260 static void compress_write(SkWStream* stream, const SkPath& path, int upem) { in compress_write() argument
275 stream->write16(upem); // share w/ other paths? in compress_write()
294 const float scale = (float)upem; in compress_write()
/third_party/skia/third_party/externals/harfbuzz/test/shape/data/aots/
H A Dhb-aots-tester.cpp75 unsigned int upem = hb_face_get_upem (face); in runTest() local
77 hb_font_set_scale(font, upem, upem); in runTest()
/third_party/skia/third_party/externals/freetype/src/sfnt/
H A Dttsbit.c411 FT_UShort upem, ppem, resolution; in FT_LOCAL_DEF() local
436 upem = face->header.Units_Per_EM; in FT_LOCAL_DEF()
445 FT_MulDiv( hori->Ascender, ppem_ * 64, upem ); in FT_LOCAL_DEF()
447 FT_MulDiv( hori->Descender, ppem_ * 64, upem ); in FT_LOCAL_DEF()
450 ppem_ * 64, upem ); in FT_LOCAL_DEF()
452 FT_MulDiv( hori->advance_Width_Max, ppem_ * 64, upem ); in FT_LOCAL_DEF()

Completed in 27 milliseconds