• Home
  • Raw
  • Download

Lines Matching refs:emSize

64 inline SkScalar from_font_units(SkScalar scaled, uint16_t emSize) {  in from_font_units()  argument
65 return emSize == 1000 ? scaled : scaled * 1000 / emSize; in from_font_units()
68 inline SkScalar scaleFromFontUnits(int16_t val, uint16_t emSize) { in scaleFromFontUnits() argument
69 return from_font_units(SkIntToScalar(val), emSize); in scaleFromFontUnits()
238 uint16_t emSize, in PopulateCommonFontDescriptor() argument
243 scaleFromFontUnits(metrics.fAscent, emSize)); in PopulateCommonFontDescriptor()
245 scaleFromFontUnits(metrics.fDescent, emSize)); in PopulateCommonFontDescriptor()
247 scaleFromFontUnits(metrics.fStemV, emSize)); in PopulateCommonFontDescriptor()
249 scaleFromFontUnits(metrics.fCapHeight, emSize)); in PopulateCommonFontDescriptor()
252 SkPDFMakeArray(scaleFromFontUnits(metrics.fBBox.left(), emSize), in PopulateCommonFontDescriptor()
253 scaleFromFontUnits(metrics.fBBox.bottom(), emSize), in PopulateCommonFontDescriptor()
254 scaleFromFontUnits(metrics.fBBox.right(), emSize), in PopulateCommonFontDescriptor()
255 scaleFromFontUnits(metrics.fBBox.top(), emSize))); in PopulateCommonFontDescriptor()
258 scaleFromFontUnits(defaultWidth, emSize)); in PopulateCommonFontDescriptor()
292 uint16_t emSize = SkToU16(font.typeface()->getUnitsPerEm()); in emit_subset_type0() local
293 SkPDFFont::PopulateCommonFontDescriptor(descriptor.get(), metrics, emSize , 0); in emit_subset_type0()
526 SkScalar emSize = (SkScalar)unitsPerEm; in emit_subset_type3() local
532 fontMatrix.setScale(SkScalarInvert(emSize), -SkScalarInvert(emSize)); in emit_subset_type3()