Searched refs:fontMetrics (Results 1 – 9 of 9) sorted by relevance
36 Paint paint, CharSequence text, int start, int end, Paint.FontMetricsInt fontMetrics) { in getSize() argument40 if (fontMetrics != null) { in getSize()42 fontMetrics.ascent = paintFontMetrics.ascent; in getSize()43 fontMetrics.descent = paintFontMetrics.descent; in getSize()44 fontMetrics.top = paintFontMetrics.top; in getSize()45 fontMetrics.bottom = paintFontMetrics.bottom; in getSize()
66 Paint.FontMetrics fontMetrics = paint.getFontMetrics(); in draw() local67 float distance = (fontMetrics.bottom - fontMetrics.top) / 2 - fontMetrics.bottom; in draw()
65 Paint.FontMetricsInt fontMetrics) { in getSize() argument66 int size = super.getSize(paint, text, start, end, fontMetrics); in getSize()
107 Paint.FontMetrics fontMetrics = mTextPaint.getFontMetrics(); in invalidateTextPaintAndMeasurements() local108 mTextHeight = fontMetrics.bottom; in invalidateTextPaintAndMeasurements()
126 val metrics = paint.fontMetrics in initializeAttributes()
2458 public void set(@NonNull FontMetrics fontMetrics) { in set() argument2460 top = (int) Math.floor(fontMetrics.top); in set()2461 ascent = Math.round(fontMetrics.ascent); in set()2462 descent = Math.round(fontMetrics.descent); in set()2463 bottom = (int) Math.ceil(fontMetrics.bottom); in set()2464 leading = Math.round(fontMetrics.leading); in set()
408 @Nullable Paint.FontMetricsInt fontMetrics) { in getSize() argument
118 get() = paint?.fontMetrics?.bottom ?: 0f in <lambda>()
5387 final Paint.FontMetrics fontMetrics = mTextView.getPaint().getFontMetrics(); in tooLargeTextForMagnifier() local5388 final float glyphHeight = fontMetrics.descent - fontMetrics.ascent; in tooLargeTextForMagnifier()