Minor macOS documentation corrections
This commit is contained in:
parent
228b724cda
commit
0b28bf49e4
2 changed files with 11 additions and 5 deletions
|
|
@ -34,7 +34,7 @@ https://tuxpaint.org/
|
||||||
+ WIP Checking for fonts in any locations specified by "<dir>"
|
+ WIP Checking for fonts in any locations specified by "<dir>"
|
||||||
entries found in system-wide and user-level FontConfig config files.
|
entries found in system-wide and user-level FontConfig config files.
|
||||||
This allows more fonts, and user-specific fonts, to be found & loaded.
|
This allows more fonts, and user-specific fonts, to be found & loaded.
|
||||||
- TODO - Looks in $FONTCONFIG/fonts.conf on macOS, otherwise
|
- TODO - Looks in $FONTCONFIG_PATH/fonts.conf on macOS/iOS, otherwise
|
||||||
Un*x-specific `/etc/fonts/fonts.conf` and
|
Un*x-specific `/etc/fonts/fonts.conf` and
|
||||||
`~/.config/fontconfig/fonts.conf`. Should look in the correct
|
`~/.config/fontconfig/fonts.conf`. Should look in the correct
|
||||||
places on other platforms.
|
places on other platforms.
|
||||||
|
|
|
||||||
|
|
@ -31100,11 +31100,17 @@ int main(int argc, char *argv[])
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(__MACOS__)
|
#if defined(__MACOS__)
|
||||||
/* Pango uses Fontconfig which requires /opt/local/etc/fonts/fonts.conf. This
|
/* Pango uses Fontconfig which requires fonts.conf. By default, Fontconfig
|
||||||
* file may not exist on the runtime system, however, so we copy the file
|
* searches for this file in a global path (e.g., /opt/local/etc/fonts if
|
||||||
* into our app bundle at compile time, and tell Fontconfig here to look for
|
* using the MacPorts port of Fontconfig) which does not exist on a vanilla
|
||||||
* the file within the app bundle. */
|
* macOS install. As a workaround, the macOS port of Tux Paint provides its
|
||||||
|
* own copy, and tells Fontconfig to look inside the Tux Paint app bundle for
|
||||||
|
* this file by setting the FONTCONFIG_PATH environment variable here.
|
||||||
|
*/
|
||||||
putenv((char *)"FONTCONFIG_PATH=Resources/etc");
|
putenv((char *)"FONTCONFIG_PATH=Resources/etc");
|
||||||
|
#elif defined(__IOS__)
|
||||||
|
/* Same with iOS */
|
||||||
|
putenv((char *)"FONTCONFIG_PATH=etc");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
chdir_to_binary(argv[0]);
|
chdir_to_binary(argv[0]);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue