diff --git a/Formula/font-cormorant-garamond.rb b/Formula/font-cormorant-garamond.rb index b3f825bf0..36169ae7f 100644 --- a/Formula/font-cormorant-garamond.rb +++ b/Formula/font-cormorant-garamond.rb @@ -7,16 +7,8 @@ class FontCormorantGaramond < Formula only_path: "ofl/cormorantgaramond" def install - (share/"fonts").install Dir.glob("ofl/cormorantgaramond/./**/CormorantGaramond-Bold.ttf")[0] - (share/"fonts").install Dir.glob("ofl/cormorantgaramond/./**/CormorantGaramond-BoldItalic.ttf")[0] - (share/"fonts").install Dir.glob("ofl/cormorantgaramond/./**/CormorantGaramond-Italic.ttf")[0] - (share/"fonts").install Dir.glob("ofl/cormorantgaramond/./**/CormorantGaramond-Light.ttf")[0] - (share/"fonts").install Dir.glob("ofl/cormorantgaramond/./**/CormorantGaramond-LightItalic.ttf")[0] - (share/"fonts").install Dir.glob("ofl/cormorantgaramond/./**/CormorantGaramond-Medium.ttf")[0] - (share/"fonts").install Dir.glob("ofl/cormorantgaramond/./**/CormorantGaramond-MediumItalic.ttf")[0] - (share/"fonts").install Dir.glob("ofl/cormorantgaramond/./**/CormorantGaramond-Regular.ttf")[0] - (share/"fonts").install Dir.glob("ofl/cormorantgaramond/./**/CormorantGaramond-SemiBold.ttf")[0] - (share/"fonts").install Dir.glob("ofl/cormorantgaramond/./**/CormorantGaramond-SemiBoldItalic.ttf")[0] + (share/"fonts").install Dir.glob("ofl/cormorantgaramond/./**/CormorantGaramond-Italic?wght?.ttf")[0] + (share/"fonts").install Dir.glob("ofl/cormorantgaramond/./**/CormorantGaramond?wght?.ttf")[0] end test do