fontconfig: handle downloadable fonts for high sierra

Closes #14477.

Signed-off-by: ilovezfs <ilovezfs@icloud.com>
This commit is contained in:
Chongyu Zhu 2017-06-11 21:45:04 +08:00 committed by ilovezfs
parent bef0658b13
commit a8d193d240

View file

@ -39,8 +39,10 @@ class Fontconfig < Formula
~/Library/Fonts
]
if MacOS.version >= :sierra
if MacOS.version == :sierra
font_dirs << "/System/Library/Assets/com_apple_MobileAsset_Font3"
elsif MacOS.version == :high_sierra
font_dirs << "/System/Library/Assets/com_apple_MobileAsset_Font4"
end
system "autoreconf", "-iv" if build.head?