Files
akbasic/assets/fonts/PROVENANCE.md

42 lines
2.2 KiB
Markdown
Raw Permalink Normal View History

# C64_Pro_Mono-STYLE.ttf
| | |
|---|---|
| Font | C64 Pro Mono, by STYLE — <https://style64.org/c64-truetype> |
| Copied from | `basicinterpreter@d76162c`, `fonts/C64_Pro_Mono-STYLE.ttf` |
| Copied on | 2026-07-31 |
| Verified | `cmp`-identical to the submodule copy |
## Why it is here
It is the font `deps/basicinterpret/main.go` opens, at the size it opens it, and reproducing
that is part of what the SDL frontend is for. It was reached for inside the submodule until the
Go dependency started being deprecated; the build now has no reason to clone that repository,
and this was the last thing tying it to one.
Two things use it, both through compile definitions in `CMakeLists.txt`:
- `AKBASIC_FONT_PATH` — what an `-DAKBASIC_WITH_AKGL=ON` build of `basic` opens. Overridable at
runtime with the `AKBASIC_FONT` environment variable, which is what an installed copy or a
different font wants.
- `AKBASIC_TEST_C64_FONT` — what `tests/akgl_frontend.c` opens, because `TODO.md` §3's
acceptance asks the drawn text to be proved in *this* font rather than any monospaced one.
## The licence question, which is open
**STYLE's C64 TrueType fonts are not public domain and this repository does not carry their
licence.** Neither did `basicinterpreter`, which is where the file came from. The terms at
<https://style64.org/c64-truetype/license> permit free personal and non-commercial use and
require the licence to accompany redistribution; commercial redistribution needs their
permission.
Copying it here changes nothing legally — the same file was already being redistributed from
the same owner's other public repository — but it does move the question into a project that
is meant to be embeddable in other people's games, which is where it starts to matter.
**Before this is shipped in anything commercial, or vendored into a game that is:** either
obtain STYLE's permission and include their licence file beside this one, or replace the font.
Replacing it is cheap — the frontend measures whatever font it is handed
(`akbasic_sink_init_akgl` derives the character grid from `akgl_text_measure`), so any
monospaced TTF works and only the two compile definitions above would change.