# RuneScape interface fonts (RuneStar, CC0)

The three TrueType fonts in this folder are the exact Old School RuneScape
interface fonts, reconstructed by the RuneStar project and released into the
public domain under **CC0 1.0** (see `LICENSE`). They are the **only**
game-derived art committed to this repository; per the Phase 6 "The Real Arena"
asset rules, every other arena asset is reproduced at build time and gitignored.
These live outside `Resources/ArenaAssets/` precisely because that tree is fully
gitignored.

- Source: <https://github.com/RuneStar/fonts> — release `1.103-0`, asset
  `RuneScape-Fonts.zip`, `ttf/` variants.
- License: CC0 1.0 Universal (public domain dedication).

## Files and names

Family names were read directly from each TTF `name` table (name id 1) and are
what `Font.custom(_:size:)` expects.

| File | Family name (`Font.custom`) | PostScript name | In-game |
|---|---|---|---|
| `RuneScape-Plain-11.ttf` | `RuneScape Plain 11` | `RuneScape-Plain-11` | PLAIN11 (id 494) |
| `RuneScape-Plain-12.ttf` | `RuneScape Plain 12` | `RuneScape-Plain-12` | PLAIN12 (id 495) |
| `RuneScape-Bold-12.ttf`  | `RuneScape Bold 12`  | `RuneScape-Bold-12`  | BOLD12  (id 496) |

Usage from SwiftUI:

```swift
Text("Wave 1").font(.custom("RuneScape Plain 12", size: 16))
```

Render HUD text with `.interpolation(.none)` and integer scaling so the bitmap
glyphs stay crisp.

## Registration

Registered declaratively via `ATSApplicationFontsPath` in the app `Info.plist`
(generated by xcodegen from `mac/project.yml`; do not hand-edit the generated
plist). This `Fonts/` directory is bundled as a **folder reference**, so it
lands at `ElyraRS.app/Contents/Resources/Fonts/` and macOS auto-registers every
font in it at launch — no runtime `CTFontManager` call is required.

Re-verify the family names on any machine with Font Book, or:

```sh
python3 - <<'PY'
from pathlib import Path
# name id 1 (Family) lives in the TTF 'name' table; Font Book shows the same.
PY
```
