Lines Matching refs:emSize
95 static void output_fixed(SkScalar num, int emSize, SkString* out) { in output_fixed() argument
96 int hex = (int) (num * 65536 / emSize); in output_fixed()
101 static void output_scalar(SkScalar num, int emSize, SkString* out) { in output_scalar() argument
102 num /= emSize; in output_scalar()
120 static int output_points(const SkPoint* pts, int emSize, int count, SkString* ptsOut) { in output_points() argument
123 output_scalar(pts[index].fX, emSize, ptsOut); in output_points()
125 output_scalar(pts[index].fY, emSize, ptsOut); in output_points()
131 int emSize, SkString* ptsOut, SkTDArray<SkPath::Verb>* verbs, in output_path_data() argument
147 output_points(&pts[0], emSize, 1, ptsOut); in output_path_data()
150 output_points(&pts[1], emSize, 1, ptsOut); in output_path_data()
153 output_points(&pts[1], emSize, 2, ptsOut); in output_path_data()
156 output_points(&pts[1], emSize, 3, ptsOut); in output_path_data()
218 int emSize = face->getUnitsPerEm() * 2; in output_font() local
223 paint.setTextSize(emSize); in output_font()
229 output_path_data(paint, emSize, &ptsOut, &verbs, &charCodes, &widths); in output_font()
282 output_fixed(widths[index], emSize, &widthsStr); in output_font()
295 output_scalar(metrics.fTop, emSize, &metricsStr); in output_font()
296 output_scalar(metrics.fAscent, emSize, &metricsStr); in output_font()
297 output_scalar(metrics.fDescent, emSize, &metricsStr); in output_font()
298 output_scalar(metrics.fBottom, emSize, &metricsStr); in output_font()
299 output_scalar(metrics.fLeading, emSize, &metricsStr); in output_font()
300 output_scalar(metrics.fAvgCharWidth, emSize, &metricsStr); in output_font()
301 output_scalar(metrics.fMaxCharWidth, emSize, &metricsStr); in output_font()
302 output_scalar(metrics.fXMin, emSize, &metricsStr); in output_font()
303 output_scalar(metrics.fXMax, emSize, &metricsStr); in output_font()
304 output_scalar(metrics.fXHeight, emSize, &metricsStr); in output_font()
305 output_scalar(metrics.fCapHeight, emSize, &metricsStr); in output_font()
306 output_scalar(metrics.fUnderlineThickness, emSize, &metricsStr); in output_font()
307 output_scalar(metrics.fUnderlinePosition, emSize, &metricsStr); in output_font()