Fix text not displaying on systems without Fontconfig installed.
This commit is contained in:
parent
558b74b7fc
commit
912cd2e625
3 changed files with 34 additions and 16 deletions
|
|
@ -23635,6 +23635,14 @@ int main(int argc, char *argv[])
|
|||
CLOCK_ASM(time2);
|
||||
#endif
|
||||
|
||||
#if defined(__APPLE__)
|
||||
/* Pango uses Fontconfig which requires /opt/local/etc/fonts/fonts.conf. This
|
||||
* file may not exist on the runtime system, however, so we copy the file
|
||||
* into our app bundle at compile time, and tell Fontconfig here to look for
|
||||
* the file within the app bundle. */
|
||||
putenv((char*) "FONTCONFIG_PATH=Resources/etc");
|
||||
#endif
|
||||
|
||||
#ifdef FORKED_FONTS
|
||||
/* must start ASAP, but depends on locale which in turn needs the config */
|
||||
#ifdef NO_SDLPANGO
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue