zenorogue / hyperrogue

A SDL roguelike in a non-euclidean world
GNU General Public License v2.0
569 stars 72 forks source link

Add HYPERFONTPATH to make it easier to package on Fedora. #299

Closed dulsi closed 2 years ago

dulsi commented 2 years ago

Fedora prefers not to have multiple copies of fonts. Since the font is already installed, I need to specify a different location than the other game files. HYPERFONTPATH defaults to the same as HYPERPATH so no one needs to use it unless they are in a similar situation.

Linux has a fontconfig library that can be used to lookup a font instead of hardcoding the path. Would you be interested in a patch to add that capability to the Linux version. I used it in ostrichriders:

https://github.com/dulsi/ostrichriders/commit/0862a5c8b7f74c12c5ff931511d53cfc43ca4f66

zenorogue commented 2 years ago

Thanks!

A capability to lookup a font using fontconfig sounds useful, although I would prefer this to be an optional dependency.