Lines Matching refs:metrics
91 SkPaint::FontMetrics metrics;
92 paint.getFontMetrics(&metrics);
102 bbox.fBottom += metrics.fBottom;
103 bbox.fTop += metrics.fTop;
113 // Set vertical bounds to max extents from font metrics
114 bbox.fTop = metrics.fTop;
115 bbox.fBottom = metrics.fBottom;
122 SkScalar pad = (metrics.fBottom - metrics.fTop) / 2;
184 SkPaint::FontMetrics metrics;
185 paint.getFontMetrics(&metrics);
186 bbox.fTop += metrics.fTop;
187 bbox.fBottom += metrics.fBottom;
190 SkScalar pad = (metrics.fTop - metrics.fBottom) / 2;
240 // but we filled our flat paint beforehand so that we could get font metrics.
255 SkPaint::FontMetrics metrics;
256 paint.getFontMetrics(&metrics);
259 SkScalar pad = metrics.fTop;