Lines Matching full:metrics
216 void TextStyle::getFontMetrics(RSFontMetrics* metrics) const { in getFontMetrics()
218 void TextStyle::getFontMetrics(SkFontMetrics* metrics) const { in getFontMetrics()
227 compressFont.GetMetrics(metrics); in getFontMetrics()
228 metricsIncludeFontPadding(metrics, font); in getFontMetrics()
234 font.getMetrics(metrics); in getFontMetrics()
238 auto height = metrics->fDescent - metrics->fAscent + metrics->fLeading; in getFontMetrics()
239 metrics->fAscent = (metrics->fAscent - metrics->fLeading / 2) * multiplier / height; in getFontMetrics()
240 metrics->fDescent = (metrics->fDescent + metrics->fLeading / 2) * multiplier / height; in getFontMetrics()
243 metrics->fAscent = (metrics->fAscent - metrics->fLeading / 2); in getFontMetrics()
244 metrics->fDescent = (metrics->fDescent + metrics->fLeading / 2); in getFontMetrics()
247 metrics->fAscent += fBaselineShift; in getFontMetrics()
248 metrics->fDescent += fBaselineShift; in getFontMetrics()