# BoringLayout.Metrics

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  
Summary:[Fields](https://developer.android.com/reference/android/text/BoringLayout.Metrics#lfields)\|[Inherited Fields](https://developer.android.com/reference/android/text/BoringLayout.Metrics#inhfields)\|[Ctors](https://developer.android.com/reference/android/text/BoringLayout.Metrics#pubctors)\|[Methods](https://developer.android.com/reference/android/text/BoringLayout.Metrics#pubmethods)\|[Inherited Methods](https://developer.android.com/reference/android/text/BoringLayout.Metrics#inhmethods)  

# BoringLayout.Metrics

*** ** * ** ***

[Kotlin](https://developer.android.com/reference/kotlin/android/text/BoringLayout.Metrics "View this page in Kotlin")\|Java

`
public
static


class
BoringLayout.Metrics
`  
`


``

extends `[Paint.FontMetricsInt](https://developer.android.com/reference/android/graphics/Paint.FontMetricsInt)`


``


`

|---|---|-----------------------------------|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object) |||
| ↳ | [android.graphics.Paint.FontMetricsInt](https://developer.android.com/reference/android/graphics/Paint.FontMetricsInt) ||
|   | ↳ | android.text.BoringLayout.Metrics |

<br />

*** ** * ** ***

## Summary

|                                                   ### Fields                                                   ||
|---------------|-------------------------------------------------------------------------------------------------|
| ` public int` | [width](https://developer.android.com/reference/android/text/BoringLayout.Metrics#width) <br /> |

|                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             ### Inherited fields                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| From class[android.graphics.Paint.FontMetricsInt](https://developer.android.com/reference/android/graphics/Paint.FontMetricsInt) |---------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ` public int` | [ascent](https://developer.android.com/reference/android/graphics/Paint.FontMetricsInt#ascent) The recommended distance above the baseline for singled spaced text.                           | | ` public int` | [bottom](https://developer.android.com/reference/android/graphics/Paint.FontMetricsInt#bottom) The maximum distance below the baseline for the lowest glyph in the font at a given text size. | | ` public int` | [descent](https://developer.android.com/reference/android/graphics/Paint.FontMetricsInt#descent) The recommended distance below the baseline for singled spaced text.                         | | ` public int` | [leading](https://developer.android.com/reference/android/graphics/Paint.FontMetricsInt#leading) The recommended additional space to add between lines of text.                               | | ` public int` | [top](https://developer.android.com/reference/android/graphics/Paint.FontMetricsInt#top) The maximum distance above the baseline for the tallest glyph in the font at a given text size.      | |

|                                          ### Public constructors                                          ||
|--------------------------------------------------------------------------------------------------------|---|
| ` `[Metrics](https://developer.android.com/reference/android/text/BoringLayout.Metrics#Metrics())`() ` |

|                                                                                                              ### Public methods                                                                                                              ||
|----------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` `[RectF](https://developer.android.com/reference/android/graphics/RectF) | ` `[getDrawingBoundingBox](https://developer.android.com/reference/android/text/BoringLayout.Metrics#getDrawingBoundingBox())`() ` Returns drawing bounding box. |
| ` `[String](https://developer.android.com/reference/java/lang/String)      | ` `[toString](https://developer.android.com/reference/android/text/BoringLayout.Metrics#toString())`() ` Returns a string representation of the object.          |

| ### Inherited methods |
|-----------------------|---|
| From class` `[android.graphics.Paint.FontMetricsInt](https://developer.android.com/reference/android/graphics/Paint.FontMetricsInt)` ` |-----------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ` boolean`                                                            | ` `[equals](https://developer.android.com/reference/android/graphics/Paint.FontMetricsInt#equals(java.lang.Object))`(`[Object](https://developer.android.com/reference/java/lang/Object)` o) ` Indicates whether some other object is "equal to" this one.                                                                                                                           | | ` int`                                                                | ` `[hashCode](https://developer.android.com/reference/android/graphics/Paint.FontMetricsInt#hashCode())`() ` Returns a hash code value for the object.                                                                                                                                                                                                                               | | ` void`                                                               | ` `[set](https://developer.android.com/reference/android/graphics/Paint.FontMetricsInt#set(android.graphics.Paint.FontMetricsInt))`(`[Paint.FontMetricsInt](https://developer.android.com/reference/android/graphics/Paint.FontMetricsInt)` fontMetricsInt) ` Set values from[FontMetricsInt](https://developer.android.com/reference/android/graphics/Paint.FontMetricsInt).        | | ` void`                                                               | ` `[set](https://developer.android.com/reference/android/graphics/Paint.FontMetricsInt#set(android.graphics.Paint.FontMetrics))`(`[Paint.FontMetrics](https://developer.android.com/reference/android/graphics/Paint.FontMetrics)` fontMetrics) ` Set values from[FontMetrics](https://developer.android.com/reference/android/graphics/Paint.FontMetrics)with rounding accordingly. | | ` `[String](https://developer.android.com/reference/java/lang/String) | ` `[toString](https://developer.android.com/reference/android/graphics/Paint.FontMetricsInt#toString())`() ` Returns a string representation of the object.                                                                                                                                                                                                                          | ||
| From class` `[java.lang.Object](https://developer.android.com/reference/java/lang/Object)` ` |--------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ` `[Object](https://developer.android.com/reference/java/lang/Object)          | ` `[clone](https://developer.android.com/reference/java/lang/Object#clone())`() ` Creates and returns a copy of this object.                                                                                                                                                      | | ` boolean`                                                                     | ` `[equals](https://developer.android.com/reference/java/lang/Object#equals(java.lang.Object))`(`[Object](https://developer.android.com/reference/java/lang/Object)` obj) ` Indicates whether some other object is "equal to" this one.                                           | | ` void`                                                                        | ` `[finalize](https://developer.android.com/reference/java/lang/Object#finalize())`() ` Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.                                                          | | ` final `[Class](https://developer.android.com/reference/java/lang/Class)`<?>` | ` `[getClass](https://developer.android.com/reference/java/lang/Object#getClass())`() ` Returns the runtime class of this`Object`.                                                                                                                                                | | ` int`                                                                         | ` `[hashCode](https://developer.android.com/reference/java/lang/Object#hashCode())`() ` Returns a hash code value for the object.                                                                                                                                                 | | ` final void`                                                                  | ` `[notify](https://developer.android.com/reference/java/lang/Object#notify())`() ` Wakes up a single thread that is waiting on this object's monitor.                                                                                                                            | | ` final void`                                                                  | ` `[notifyAll](https://developer.android.com/reference/java/lang/Object#notifyAll())`() ` Wakes up all threads that are waiting on this object's monitor.                                                                                                                         | | ` `[String](https://developer.android.com/reference/java/lang/String)          | ` `[toString](https://developer.android.com/reference/java/lang/Object#toString())`() ` Returns a string representation of the object.                                                                                                                                            | | ` final void`                                                                  | ` `[wait](https://developer.android.com/reference/java/lang/Object#wait(long,%20int))`(long timeoutMillis, int nanos) ` Causes the current thread to wait until it is awakened, typically by being*notified* or*interrupted*, or until a certain amount of real time has elapsed. | | ` final void`                                                                  | ` `[wait](https://developer.android.com/reference/java/lang/Object#wait(long))`(long timeoutMillis) ` Causes the current thread to wait until it is awakened, typically by being*notified* or*interrupted*, or until a certain amount of real time has elapsed.                   | | ` final void`                                                                  | ` `[wait](https://developer.android.com/reference/java/lang/Object#wait())`() ` Causes the current thread to wait until it is awakened, typically by being*notified* or*interrupted*.                                                                                             | ||

## Fields

### width

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public int width
```

<br />

<br />

## Public constructors

### Metrics

```
public Metrics ()
```

<br />

<br />

## Public methods

### getDrawingBoundingBox

Added in[API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public RectF getDrawingBoundingBox ()
```

Returns drawing bounding box.

<br />

|                                                               Returns                                                               ||
|-------------------------------------------------------------------------|------------------------------------------------------------|
| [RectF](https://developer.android.com/reference/android/graphics/RectF) | a drawing bounding box. This value cannot be`null`. <br /> |

### toString

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public String toString ()
```

Returns a string representation of the object.

<br />

|                                                      Returns                                                      ||
|--------------------------------------------------------------------|-----------------------------------------------|
| [String](https://developer.android.com/reference/java/lang/String) | a string representation of the object. <br /> |