diff options
| author | salmonik <salmonik@tuta.io> | 2026-10-26 20:13:07 +0100 |
|---|---|---|
| committer | salmonik <salmonik@tuta.io> | 2026-10-26 20:13:07 +0100 |
| commit | 76b6485a33094b40e8f833c32dc84457055062ec (patch) | |
| tree | 667bffc5d38a800204656931ca3693ed3e801016 /assets/README.md | |
| parent | Bones: head fallback for headcrab black/fast (diff) | |
| download | hl2h-76b6485a33094b40e8f833c32dc84457055062ec.tar.gz hl2h-76b6485a33094b40e8f833c32dc84457055062ec.zip | |
Fonts: bundle Liberation Sans and register it with fontconfig
- ship assets/LiberationSans-Regular.ttf (+ OFL license/README)
- at startup, resolve the .so path via dladdr, add assets/...ttf to the
current fontconfig config with FcConfigAppFontAddFile, and fall back to
the system Liberation path if the asset is missing
- font creation tries Liberation Sans, then DejaVu Sans/Noto/Tahoma/Verdana/
Arial, so the overlay still renders on installs without the bundled font
Diffstat (limited to 'assets/README.md')
| -rw-r--r-- | assets/README.md | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/assets/README.md b/assets/README.md new file mode 100644 index 0000000..a4afd45 --- /dev/null +++ b/assets/README.md | |||
| @@ -0,0 +1,9 @@ | |||
| 1 | # Bundled font | ||
| 2 | |||
| 3 | `LiberationSans-Regular.ttf` is the Liberation Sans regular face from the | ||
| 4 | Liberation Fonts project (https://github.com/liberationfonts/liberation-fonts). | ||
| 5 | |||
| 6 | Licensed under the SIL Open Font License 1.1; see `OFL.txt`. | ||
| 7 | |||
| 8 | `hl2hake` registers this file with fontconfig at startup so the VGUI overlay | ||
| 9 | does not depend on the host/game install having Liberation Sans installed. | ||
