-
Notifications
You must be signed in to change notification settings - Fork 1
Fontconfig notes
We're using Fontconfig to manage system, builtin and user fonts. Due to the various ways of packaging OpenSCAD, this configuration is a bit complex, hence this page.
We assume that there is a system fontconfig configuration and we'll use this (handled automatically by fontconfig). This is done for all types of installs.
This is achieved by building the shipped fontconfig library with --prefix=/
. Ideally it would be better to check if there's a system installed fontconfig available and use the shipped one only if that's missing. Basic idea would be to do ldd openscad
and see if that shows a system fontconfig library. The problem with that approach is of cause that it still could produce all sorts of bad interactions with other lib that need fontconfig (e.g. Qt) or might still fail due to a different GLIBC.
We install a fonts folder containing the builtin fonts (Liberation) as well as a corresponding config file (10-liberation.conf).
We bundle a fontconfig library and a full configuration. FIXME: Add system fonts
Binary build We bundle a fontconfig library and a full configuration. Support for system fonts, MacPorts fonts and Homebrew fonts is handled by (05-osx-fonts.conf)
MacPorts and Homebrew builds We rely on MacPorts/Homebrew's own fontconfig. We install a fonts folder containing the builtin fonts (Liberation) as well as a corresponding config file (10-liberation.conf).
Development build We rely on the local fontconfig installation. We install a fonts folder containing the builtin fonts (Liberation) as well as a corresponding config file (10-liberation.conf). This fonts folder also contains system font config (05-osx-fonts.conf).