• Chun-wei Fan's avatar
    build: Only use fallback dep for FontConfig when needed/requested · da059347
    Chun-wei Fan authored
    Windows and macOS only optionally requires FontConfig, so:
    -Add an option, for Windows and macOS, whether we want to use FontConfig
     on these platforms.  This is ignored on *NIX, where FontConfig will
     always be used.
    -We still look for FontConfig first via pkg-config files, and on MSVC
     builds, via looking for its headers and .lib files.  If FontConfig is
     required (or requested) but is not found, we then use the fallback
     dependency for it.