Andreas Röver
2013-04-22 17:58:30 UTC
Hello,
I've written a game that uses FreeSans as the font for displaying its
text.
I do not want to include that font in the distribution of the game but
rather use a the font file normally installed on the system. For that I
want to check in configure whether the font file is available in the
system and display an error message or warning if it is missing.
How could I do that? Is there anything provided in autoconf for that
problem? I think it might be good enough to see if the file is on the
filesystem but the problem is that the position is not standardized. Is
there any nice way to use 'find' or anything else to look into the
subdirectories of /usr/share/fonts for this?
Or do you have any other ideas how to do this?
Thanks
Andreas
I've written a game that uses FreeSans as the font for displaying its
text.
I do not want to include that font in the distribution of the game but
rather use a the font file normally installed on the system. For that I
want to check in configure whether the font file is available in the
system and display an error message or warning if it is missing.
How could I do that? Is there anything provided in autoconf for that
problem? I think it might be good enough to see if the file is on the
filesystem but the problem is that the position is not standardized. Is
there any nice way to use 'find' or anything else to look into the
subdirectories of /usr/share/fonts for this?
Or do you have any other ideas how to do this?
Thanks
Andreas