# Text Size
Utility classes for controlling text size. Each class sets the correct font family, size, line-height, and smoothing for the active density tier: pixel bundle on low-density displays, Inter Variable on high-density displays.
### Text Size Utilities
Use `text--{size}` utility classes to set font family, size, line-height, and smoothing in one declaration. Density decides which font family the utility resolves to. To compare these sizes with every other element, see [Element Sizes](/framework/docs/3.4/element_sizes) .
- **Low-density displays:** the three smallest sizes use the active pixel-font bundle (Classic NicoPups/NicoClean/BlockKie or TRMNL TRMNL12/16/21).
- **High-density displays:** every text size uses Inter Variable, regardless of bundle.
- **Sizes from xlarge onward:** Inter Variable on every display.
- **Any Scale or Text Scale other than Regular:** Inter Variable at every size, because pixel bundles only render correctly at their native sizes.
Text Size selects one typography role for an element. Use [Text Scale](/framework/docs/3.4/text_scale) to adjust every typography role from the screen.
**High-density font notice:** This preview is using Inter because the selected device is high-density. Classic and TRMNL pixel bundles still apply on low-density displays; choose a 1x-density model in Device Preview to compare those bundles.
| Class | Size | Line-height | Classic (low-density) | TRMNL (low-density) | High-density |
| --- | --- | --- | --- | --- | --- |
| `text--small` | 12px | 1 | NicoPups @ 16px | TRMNL12 | Inter Variable |
| `text--base` | 16px | 1.25 | NicoClean | TRMNL16 | Inter Variable |
| `text--large` | 21px | 1 | BlockKie @ 26px | TRMNL21 | Inter Variable |
| `text--xlarge` | 26px | 29px | Inter Variable | Inter Variable | Inter Variable |
| `text--xxlarge` | 38px | 42px | Inter Variable | Inter Variable | Inter Variable |
| `text--xxxlarge` | 58px | 70px | Inter Variable | Inter Variable | Inter Variable |
| `text--mega` | 74px | 86px | Inter Variable | Inter Variable | Inter Variable |
| `text--giga` | 96px | 108px | Inter Variable | Inter Variable | Inter Variable |
| `text--tera` | 128px | 128px | Inter Variable | Inter Variable | Inter Variable |
| `text--peta` | 170px | 180px | Inter Variable | Inter Variable | Inter Variable |
These sizes belong to the `text--` ladder only. The Value element reuses the same tier names on a much larger ladder, where `value--xlarge` is 74px against 26px here, so read the size table on each page before mixing the two.
#### Small
The `text--small` class. Low-density previews show the active pixel-font bundle where that size supports it; high-density previews show Inter.
The quick brown fox jumps over the lazy dogThe quick brown fox jumps over the lazy dog
Text SizeSmall
```
Regular text
Bold text
```
#### Base
The `text--base` class. Low-density previews show the active pixel-font bundle where that size supports it; high-density previews show Inter.
The quick brown fox jumps over the lazy dogThe quick brown fox jumps over the lazy dog
Text SizeBase
```
Regular text
Bold text
```
#### Large
The `text--large` class. Low-density previews show the active pixel-font bundle where that size supports it; high-density previews show Inter.
The quick brown fox jumps over the lazy dogThe quick brown fox jumps over the lazy dog
Text SizeLarge
```
Regular text
Bold text
```
#### XLarge
The `text--xlarge` class. Low-density previews show the active pixel-font bundle where that size supports it; high-density previews show Inter.
The quick brown fox jumps over the lazy dogThe quick brown fox jumps over the lazy dog
Text SizeXLarge
```
Regular text
Bold text
```
#### XXLarge
The `text--xxlarge` class. Low-density previews show the active pixel-font bundle where that size supports it; high-density previews show Inter.
The quick brown fox jumps over the lazy dogThe quick brown fox jumps over the lazy dog
Text SizeXXLarge
```
Regular text
Bold text
```
#### XXXLarge
The `text--xxxlarge` class. Low-density previews show the active pixel-font bundle where that size supports it; high-density previews show Inter.
The quick brown fox jumps over the lazy dogThe quick brown fox jumps over the lazy dog
Text SizeXXXLarge
```
Regular text
Bold text
```
### Responsive & bit-depth variants
All text size utilities support responsive, orientation, and bit-depth prefixes. Combine them to fine-tune typography across screen sizes and display types.
| Variant | Example | Description |
| --- | --- | --- |
| Responsive | `md:text--large` | Apply at medium breakpoint and up |
| Orientation | `portrait:text--small` | Apply in portrait orientation |
| Bit-depth | `4bit:text--xlarge` | Apply on 4-bit displays only |
| Combined | `md:4bit:text--xxlarge` | Apply at medium breakpoint on 4-bit displays |
```
Responsive text sizing
Larger on 4-bit displays
```
### Deprecated font--{size} aliases
Ten `font--{size}` classes ship as aliases of the text size utilities: `font--small`, `font--base`, `font--large`, `font--xlarge`, `font--xxlarge`, `font--xxxlarge`, `font--mega`, `font--giga`, `font--tera`, and `font--peta`. Each renders exactly like the `text--{size}` class with the same suffix, down to the responsive, orientation, and bit-depth variants.
They are deprecated and will be removed in Framework 4.0. Prefer `text--{size}` in new markup. The weight aliases `font--bold` and `font--regular` carry the same removal release, with `text--bold` and `text--regular` as their successors; see [Font Weight](/framework/docs/3.4/font_weight) .
```
Large text
Mega text
Large text
Mega text
```
Previous [
## Font Glyphs
Browse every glyph available in each Framework font bundle
](/framework/docs/3.4/font_glyphs)
Next [
## Text Scale
Scale all framework typography independently of interface geometry
](/framework/docs/3.4/text_scale)