Lines Matching refs:metrics
469 void SkScalerContext_DW::generateFontMetrics(SkPaint::FontMetrics* metrics) { in generateFontMetrics() argument
470 if (NULL == metrics) { in generateFontMetrics()
474 sk_bzero(metrics, sizeof(*metrics)); in generateFontMetrics()
491 metrics->fAscent = -fTextSizeRender * SkIntToScalar(dwfm.ascent) / upem; in generateFontMetrics()
492 metrics->fDescent = fTextSizeRender * SkIntToScalar(dwfm.descent) / upem; in generateFontMetrics()
493 metrics->fLeading = fTextSizeRender * SkIntToScalar(dwfm.lineGap) / upem; in generateFontMetrics()
494 metrics->fXHeight = fTextSizeRender * SkIntToScalar(dwfm.xHeight) / upem; in generateFontMetrics()
495 metrics->fUnderlineThickness = fTextSizeRender * SkIntToScalar(dwfm.underlineThickness) / upem; in generateFontMetrics()
496 metrics->fUnderlinePosition = -(fTextSizeRender * SkIntToScalar(dwfm.underlinePosition) / upem); in generateFontMetrics()
498 metrics->fFlags |= SkPaint::FontMetrics::kUnderlineThinknessIsValid_Flag; in generateFontMetrics()
499 metrics->fFlags |= SkPaint::FontMetrics::kUnderlinePositionIsValid_Flag; in generateFontMetrics()
505 metrics->fTop = -fTextSizeRender * SkIntToScalar(dwfm1.glyphBoxTop) / upem; in generateFontMetrics()
506 metrics->fBottom = -fTextSizeRender * SkIntToScalar(dwfm1.glyphBoxBottom) / upem; in generateFontMetrics()
507 metrics->fXMin = fTextSizeRender * SkIntToScalar(dwfm1.glyphBoxLeft) / upem; in generateFontMetrics()
508 metrics->fXMax = fTextSizeRender * SkIntToScalar(dwfm1.glyphBoxRight) / upem; in generateFontMetrics()
510 metrics->fMaxCharWidth = metrics->fXMax - metrics->fXMin; in generateFontMetrics()
522 metrics->fTop = -fTextSizeRender * (int16_t)SkEndian_SwapBE16(head->yMax) / upem; in generateFontMetrics()
523 metrics->fBottom = -fTextSizeRender * (int16_t)SkEndian_SwapBE16(head->yMin) / upem; in generateFontMetrics()
524 metrics->fXMin = fTextSizeRender * (int16_t)SkEndian_SwapBE16(head->xMin) / upem; in generateFontMetrics()
525 metrics->fXMax = fTextSizeRender * (int16_t)SkEndian_SwapBE16(head->xMax) / upem; in generateFontMetrics()
527 metrics->fMaxCharWidth = metrics->fXMax - metrics->fXMin; in generateFontMetrics()
531 metrics->fTop = metrics->fAscent; in generateFontMetrics()
532 metrics->fBottom = metrics->fDescent; in generateFontMetrics()