Lines Matching refs:emSize
63 inline SkScalar from_font_units(SkScalar scaled, uint16_t emSize) { in from_font_units() argument
64 return emSize == 1000 ? scaled : scaled * 1000 / emSize; in from_font_units()
67 inline SkScalar scaleFromFontUnits(int16_t val, uint16_t emSize) { in scaleFromFontUnits() argument
68 return from_font_units(SkIntToScalar(val), emSize); in scaleFromFontUnits()
241 uint16_t emSize, in PopulateCommonFontDescriptor() argument
246 scaleFromFontUnits(metrics.fAscent, emSize)); in PopulateCommonFontDescriptor()
248 scaleFromFontUnits(metrics.fDescent, emSize)); in PopulateCommonFontDescriptor()
250 scaleFromFontUnits(metrics.fStemV, emSize)); in PopulateCommonFontDescriptor()
252 scaleFromFontUnits(metrics.fCapHeight, emSize)); in PopulateCommonFontDescriptor()
255 SkPDFMakeArray(scaleFromFontUnits(metrics.fBBox.left(), emSize), in PopulateCommonFontDescriptor()
256 scaleFromFontUnits(metrics.fBBox.bottom(), emSize), in PopulateCommonFontDescriptor()
257 scaleFromFontUnits(metrics.fBBox.right(), emSize), in PopulateCommonFontDescriptor()
258 scaleFromFontUnits(metrics.fBBox.top(), emSize))); in PopulateCommonFontDescriptor()
261 scaleFromFontUnits(defaultWidth, emSize)); in PopulateCommonFontDescriptor()
295 uint16_t emSize = SkToU16(font.typeface()->getUnitsPerEm()); in emit_subset_type0() local
296 SkPDFFont::PopulateCommonFontDescriptor(descriptor.get(), metrics, emSize, 0); in emit_subset_type0()
544 SkScalar emSize = (SkScalar)unitsPerEm; in emit_subset_type3() local
552 float bitmapScale = kBitmapFontSize > 0 ? emSize / kBitmapFontSize : 1.0f; in emit_subset_type3()
558 fontMatrix.setScale(SkScalarInvert(emSize), -SkScalarInvert(emSize)); in emit_subset_type3()