# FontInfo
> Enum containing Minecraft default font character widths for pixel-perfect text alignment.
`gg.lode.bookshelfapi.api.util.FontInfo`
---
## Signature
```java
public enum FontInfo
```
---
## Constants (Partial)
Each constant maps to a character and its pixel width.
| Constant | Character | Width (px) |
|----------|-----------|------------|
| `A` | A | 7 |
| `a` | a | 5 |
| `B` | B | 5 |
| `I` | I | 3 |
| `i` | i | 1 |
| `l` | l | 2 |
| `f` | f | 4 |
| `t` | t | 3 |
| `NUM_0` - `NUM_9` | 0-9 | 5 |
| `EXCLAMATION_POINT` | ! | 1 |
| `AT_SYMBOL` | @ | 6 |
Most uppercase and lowercase letters have a width of 5. See the enum source for the full list.
---
## Methods
| Method | Return Type | Description |
|--------|-------------|-------------|
| `getCharacter()` | `char` | Returns the character this constant represents. |
| `getLength()` | `int` | Returns the pixel width of the character. |
| `getBoldLength()` | `int` | Returns the pixel width when rendered bold. |
| `static getDefaultFontInfo(char c)` | `FontInfo` | Returns the FontInfo for the given character. |
---
## Usage
```java
FontInfo info = FontInfo.getDefaultFontInfo('A');
int width = info.getLength(); // 7
int boldWidth = info.getBoldLength(); // typically length + 1
```
---
## Related Pages
- [[MiniMessageHelper]]