Lines Matching refs:metrics

380      * The length of the metrics array must be >= 8.  This method will
382 * metrics[0]: ascent
383 * metrics[1]: descent
384 * metrics[2]: leading
385 * metrics[3]: max advance
386 * metrics[4]: strikethrough offset
387 * metrics[5]: strikethrough thickness
388 * metrics[6]: underline offset
389 * metrics[7]: underline thickness
393 float metrics[]) {
401 metrics[0] = strikeMetrics.getAscent();
402 metrics[1] = strikeMetrics.getDescent();
403 metrics[2] = strikeMetrics.getLeading();
404 metrics[3] = strikeMetrics.getMaxAdvance();
406 getStyleMetrics(font.getSize2D(), metrics, 4);
410 * The length of the metrics array must be >= offset+4, and offset must be
413 * metrics[off+0]: strikethrough offset
414 * metrics[off+1]: strikethrough thickness
415 * metrics[off+2]: underline offset
416 * metrics[off+3]: underline thickness
421 public void getStyleMetrics(float pointSize, float[] metrics, int offset) {
422 metrics[offset] = -metrics[0] / 2.5f;
423 metrics[offset+1] = pointSize / 12;
424 metrics[offset+2] = metrics[offset+1] / 1.5f;
425 metrics[offset+3] = metrics[offset+1];
429 * The length of the metrics array must be >= 4. This method will
431 * metrics[0]: ascent
432 * metrics[1]: descent
433 * metrics[2]: leading
434 * metrics[3]: max advance
437 float metrics[]) {
439 metrics[0] = strikeMetrics.getAscent();
440 metrics[1] = strikeMetrics.getDescent();
441 metrics[2] = strikeMetrics.getLeading();
442 metrics[3] = strikeMetrics.getMaxAdvance();
523 StrikeMetrics metrics = strike.getFontMetrics();
524 if (metrics.ascentY == 0 || metrics.ascentX == 0) {
530 return metrics.ascentX/-metrics.ascentY;