Make dependencies to fontconfig and freetype optional and explicit.
Similar to !235 (merged), this branch adds meson features for explicitly enabling or disabling the dependencies freetype and fontconfig such that they won't be used even if present on the system.
The meson option
use_fontconfig was changed to fontconfig with these possible values:
enabled(equivalent to old
auto(equivalent to old
disabled(equivalent to old
use_fontconfig=falseAND report an error if fontconfig is required on this system).
The behaviour of the old
use_fontconfig option is problematic for package managers like conan; with
use_fontconfig=false (default), the meson script decides itself whether fontconfig is used or not, and the package manager doesn't really know whether the final built package has it enabled or not. Therefore, I changed it to
fontconfig (new name to avoid collisions) with "strong" values
disabled which forcibly enable/disable fontconfig, which will result in an error if it can't be satisfied (e.g.
disabled when fontconfig is required on Linux, or
enabled on Windows but the library wasn't found) instead of silently ignoring the option.