# Fonts

Portal Pro ships with **no font binaries in this working copy** — they have to be added
once, by hand. Everything else is already wired up: the Settings tab has a picker, and the
addon probes each candidate at load and falls back cleanly if a file is missing.

Both supported fonts are **SIL Open Font License 1.1**, which permits redistribution
inside another package, so they can be bundled in the CurseForge/Wago release.

---

## Install

Download, rename to the exact filename below, drop it in this folder.

| Font | Filename Portal Pro looks for | Source |
|---|---|---|
| Inter | `Inter.ttf` | https://github.com/rsms/inter/releases |
| Noto Sans | `NotoSans.ttf` | https://fonts.google.com/noto/specimen/Noto+Sans |

Then pick it under **Settings → Interface → Interface font** and `/reload`.

### Why the rename

Upstream filenames move. Inter 4.x renamed its static builds (`Inter-Regular.ttf` became
`Inter_18pt-Regular.ttf`), and hardcoding whatever the archive is called this month means
the next release silently breaks the font. Portal Pro looks for a fixed name; you rename
once and it keeps working.

---

## It must be a static `.ttf`

This is the part that catches people out.

- **Variable fonts do not work.** Inter's headline download is a variable-axis TTF
  (`InterVariable.ttf`). WoW's renderer won't load it. Take a file out of the
  `static/` folder in the archive.
- **`.otf` does not work.** The client dropped OpenType support. TTF only.
- Both failures are **silent**: `SetFont` appears to succeed and then nothing draws.

That's exactly why Portal Pro measures a probe string instead of trusting `SetFont`, and
why the Settings screen tells you which font is genuinely in use rather than which one you
picked. If you install a variable build, the picker will say "not installed" — that's the
probe correctly refusing a file it can't render.

**Recommended pick:** Inter `static/Inter-Regular.ttf` (or `Inter_18pt-Regular.ttf` on 4.x)
— it was drawn for UI at small sizes and holds up better than Noto Sans in the 10–12px
range this addon uses. Noto Sans is the better choice if you need wider script coverage.

---

## Licensing obligation

The OFL requires the licence text to travel with the font. When you add a font here, also
copy its `OFL.txt` from the download into `Media/licence/`:

```
Media/licence/OFL-Inter.txt
Media/licence/OFL-NotoSans.txt
```

`Media/licence/README.md` covers this. The addon's own code is MIT (see `LICENSE`); the
fonts stay under OFL and are not relicensed by inclusion.

Do **not** rename a font's internal family name — OFL 1.1 reserves that, and both Inter and
Noto Sans would need renaming only if you modified the font itself, which we don't.
