From 76b6485a33094b40e8f833c32dc84457055062ec Mon Sep 17 00:00:00 2001 From: salmonik Date: Mon, 26 Oct 2026 20:13:07 +0100 Subject: 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 --- assets/README.md | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 assets/README.md (limited to 'assets/README.md') 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 @@ +# Bundled font + +`LiberationSans-Regular.ttf` is the Liberation Sans regular face from the +Liberation Fonts project (https://github.com/liberationfonts/liberation-fonts). + +Licensed under the SIL Open Font License 1.1; see `OFL.txt`. + +`hl2hake` registers this file with fontconfig at startup so the VGUI overlay +does not depend on the host/game install having Liberation Sans installed. -- cgit v1.2.3