Home | History | Annotate | Download | only in tools

Lines Matching refs:emSize

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