# Font Metrics Viewer

A tiny Qt Widgets tool to inspect QFont metrics and visualize baseline, boundingRect, and tightBoundingRect.

## Build

From the repository root:

```bash
qmake bianbu-accounts.pro
make -j"$(nproc)"
```

The binary will be at `build/tools/font-metrics-viewer/font-metrics-viewer` (shadow build).

Or build just this tool:

```bash
qmake tools/font-metrics-viewer/font-metrics-viewer.pro -o build/fontviewer
make -C build/fontviewer -j"$(nproc)"
```

## Run

```bash
./build/tools/font-metrics-viewer/font-metrics-viewer
```

## What it shows
- Change font family, weight, style, and size (point/pixel).
- Live metrics: ascent, descent, leading, height, lineSpacing, xHeight, capHeight (approx), averageCharWidth, maxWidth.
- Bounding boxes for a sample text:
  - `boundingRect()` (cyan outline)
  - `tightBoundingRect()` (magenta outline)
  - Baseline (red) and ascent/descent guides.
