Lines Matching refs:emSize
59 SkScalar from_font_units(SkScalar scaled, uint16_t emSize) { in from_font_units() argument
60 if (emSize == 1000) { in from_font_units()
63 return scaled * 1000 / emSize; in from_font_units()
67 SkScalar scaleFromFontUnits(int16_t val, uint16_t emSize) { in scaleFromFontUnits() argument
68 return from_font_units(SkIntToScalar(val), emSize); in scaleFromFontUnits()
243 uint16_t emSize, in add_common_font_descriptor_entries() argument
248 scaleFromFontUnits(metrics.fAscent, emSize)); in add_common_font_descriptor_entries()
250 scaleFromFontUnits(metrics.fDescent, emSize)); in add_common_font_descriptor_entries()
252 scaleFromFontUnits(metrics.fStemV, emSize)); in add_common_font_descriptor_entries()
254 scaleFromFontUnits(metrics.fCapHeight, emSize)); in add_common_font_descriptor_entries()
257 SkPDFMakeArray(scaleFromFontUnits(metrics.fBBox.left(), emSize), in add_common_font_descriptor_entries()
258 scaleFromFontUnits(metrics.fBBox.bottom(), emSize), in add_common_font_descriptor_entries()
259 scaleFromFontUnits(metrics.fBBox.right(), emSize), in add_common_font_descriptor_entries()
260 scaleFromFontUnits(metrics.fBBox.top(), emSize))); in add_common_font_descriptor_entries()
263 scaleFromFontUnits(defaultWidth, emSize)); in add_common_font_descriptor_entries()
300 uint16_t emSize = SkToU16(font.typeface()->getUnitsPerEm()); in emit_subset_type0() local
301 add_common_font_descriptor_entries(descriptor.get(), metrics, emSize , 0); in emit_subset_type0()
380 int emSize; in emit_subset_type0() local
381 auto glyphCache = SkPDFFont::MakeVectorCache(face, &emSize); in emit_subset_type0()
383 glyphCache.get(), &font.glyphUsage(), SkToS16(emSize), &defaultWidth); in emit_subset_type0()
388 "DW", scaleFromFontUnits(defaultWidth, SkToS16(emSize))); in emit_subset_type0()
423 uint16_t emSize = SkToU16(typeface->getUnitsPerEm()); in make_type1_font_descriptor() local
425 add_common_font_descriptor_entries(&descriptor, *info, emSize, 0); in make_type1_font_descriptor()
493 int emSize; in emit_subset_type1() local
494 auto glyphCache = SkPDFFont::MakeVectorCache(typeface, &emSize); in emit_subset_type1()
497 widths->appendScalar(from_font_units(advance, SkToU16(emSize))); in emit_subset_type1()
500 widths->appendScalar(from_font_units(advance, SkToU16(emSize))); in emit_subset_type1()
649 SkScalar emSize = (SkScalar)unitsPerEm; in emit_subset_type3() local
655 fontMatrix.setScale(SkScalarInvert(emSize), -SkScalarInvert(emSize)); in emit_subset_type3()