summaryrefslogtreecommitdiffstats
path: root/assets/README.md
diff options
context:
space:
mode:
authorsalmonik <salmonik@tuta.io>2026-10-26 20:13:07 +0100
committersalmonik <salmonik@tuta.io>2026-10-26 20:13:07 +0100
commit76b6485a33094b40e8f833c32dc84457055062ec (patch)
tree667bffc5d38a800204656931ca3693ed3e801016 /assets/README.md
parentBones: head fallback for headcrab black/fast (diff)
downloadhl2h-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.md9
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
4Liberation Fonts project (https://github.com/liberationfonts/liberation-fonts).
5
6Licensed 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
9does not depend on the host/game install having Liberation Sans installed.