Lines Matching refs:emSize
60 SkScalar from_font_units(SkScalar scaled, uint16_t emSize) { in from_font_units() argument
61 if (emSize == 1000) { in from_font_units()
64 return scaled * 1000 / emSize; in from_font_units()
68 SkScalar scaleFromFontUnits(int16_t val, uint16_t emSize) { in scaleFromFontUnits() argument
69 return from_font_units(SkIntToScalar(val), emSize); in scaleFromFontUnits()
244 uint16_t emSize, in add_common_font_descriptor_entries() argument
249 scaleFromFontUnits(metrics.fAscent, emSize)); in add_common_font_descriptor_entries()
251 scaleFromFontUnits(metrics.fDescent, emSize)); in add_common_font_descriptor_entries()
253 scaleFromFontUnits(metrics.fStemV, emSize)); in add_common_font_descriptor_entries()
255 scaleFromFontUnits(metrics.fCapHeight, emSize)); in add_common_font_descriptor_entries()
258 SkPDFMakeArray(scaleFromFontUnits(metrics.fBBox.left(), emSize), in add_common_font_descriptor_entries()
259 scaleFromFontUnits(metrics.fBBox.bottom(), emSize), in add_common_font_descriptor_entries()
260 scaleFromFontUnits(metrics.fBBox.right(), emSize), in add_common_font_descriptor_entries()
261 scaleFromFontUnits(metrics.fBBox.top(), emSize))); in add_common_font_descriptor_entries()
264 scaleFromFontUnits(defaultWidth, emSize)); in add_common_font_descriptor_entries()
298 uint16_t emSize = SkToU16(font.typeface()->getUnitsPerEm()); in emit_subset_type0() local
299 add_common_font_descriptor_entries(descriptor.get(), metrics, emSize , 0); in emit_subset_type0()
376 int emSize; in emit_subset_type0() local
377 auto glyphCache = SkPDFFont::MakeVectorCache(face, &emSize); in emit_subset_type0()
379 glyphCache.get(), &font.glyphUsage(), SkToS16(emSize), &defaultWidth); in emit_subset_type0()
384 "DW", scaleFromFontUnits(defaultWidth, SkToS16(emSize))); in emit_subset_type0()
419 uint16_t emSize = SkToU16(typeface->getUnitsPerEm()); in make_type1_font_descriptor() local
421 add_common_font_descriptor_entries(&descriptor, *info, emSize, 0); in make_type1_font_descriptor()
489 int emSize; in emit_subset_type1() local
490 auto glyphCache = SkPDFFont::MakeVectorCache(typeface, &emSize); in emit_subset_type1()
493 widths->appendScalar(from_font_units(advance, SkToU16(emSize))); in emit_subset_type1()
496 widths->appendScalar(from_font_units(advance, SkToU16(emSize))); in emit_subset_type1()
645 SkScalar emSize = (SkScalar)unitsPerEm; in emit_subset_type3() local
651 fontMatrix.setScale(SkScalarInvert(emSize), -SkScalarInvert(emSize)); in emit_subset_type3()