SkScalar upem = SkIntToScalar(dwfm.designUnitsPerEm);
if (mx) {
- my->fTop = -fRec.fTextSize * SkIntToScalar(dwfm.ascent) / upem;
- my->fAscent = my->fTop;
- my->fDescent = fRec.fTextSize * SkIntToScalar(dwfm.descent) / upem;
- my->fBottom = my->fDescent;
- my->fLeading = fRec.fTextSize * SkIntToScalar(dwfm.lineGap) / upem;
- my->fXHeight = fRec.fTextSize * SkIntToScalar(dwfm.xHeight) / upem;
+ mx->fTop = -fRec.fTextSize * SkIntToScalar(dwfm.ascent) / upem;
+ mx->fAscent = mx->fTop;
+ mx->fDescent = fRec.fTextSize * SkIntToScalar(dwfm.descent) / upem;
+ mx->fBottom = mx->fDescent;
+ mx->fLeading = fRec.fTextSize * SkIntToScalar(dwfm.lineGap) / upem;
+ mx->fXHeight = fRec.fTextSize * SkIntToScalar(dwfm.xHeight) / upem;
}
if (my) {