Skip to content

Commit

Permalink
add more casks, taken from this pull: Homebrew/homebrew-cask-fonts#3903
Browse files Browse the repository at this point in the history
  • Loading branch information
iandol committed Apr 27, 2021
1 parent 6445182 commit 97f56c2
Show file tree
Hide file tree
Showing 8 changed files with 185 additions and 0 deletions.
26 changes: 26 additions & 0 deletions Casks/font-source-code-pro.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
cask "font-source-code-pro" do
version "2.038R-ro-1.058R-it-1.018R-VAR"
sha256 "87c94be199cd412e145081cf20dce1217196b47e407989465e687ebf0316af9e"

url "https://github.com/adobe-fonts/source-code-pro/archive/#{version.gsub(/(?<=ro)-|(?<=it)-/, "/")}.zip"
appcast "https://github.com/adobe-fonts/source-code-pro/releases.atom"
name "Source Code Pro"
homepage "https://github.com/adobe-fonts/source-code-pro"

font "source-code-pro-#{version}/OTF/SourceCodePro-Black.otf"
font "source-code-pro-#{version}/OTF/SourceCodePro-BlackIt.otf"
font "source-code-pro-#{version}/OTF/SourceCodePro-Bold.otf"
font "source-code-pro-#{version}/OTF/SourceCodePro-BoldIt.otf"
font "source-code-pro-#{version}/OTF/SourceCodePro-ExtraLight.otf"
font "source-code-pro-#{version}/OTF/SourceCodePro-ExtraLightIt.otf"
font "source-code-pro-#{version}/OTF/SourceCodePro-It.otf"
font "source-code-pro-#{version}/OTF/SourceCodePro-Light.otf"
font "source-code-pro-#{version}/OTF/SourceCodePro-LightIt.otf"
font "source-code-pro-#{version}/OTF/SourceCodePro-Medium.otf"
font "source-code-pro-#{version}/OTF/SourceCodePro-MediumIt.otf"
font "source-code-pro-#{version}/OTF/SourceCodePro-Regular.otf"
font "source-code-pro-#{version}/OTF/SourceCodePro-Semibold.otf"
font "source-code-pro-#{version}/OTF/SourceCodePro-SemiboldIt.otf"
font "source-code-pro-#{version}/VAR/SourceCodeVariable-Italic.otf"
font "source-code-pro-#{version}/VAR/SourceCodeVariable-Roman.otf"
end
Empty file.
15 changes: 15 additions & 0 deletions Casks/font-source-han-mono.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
cask "font-source-han-mono" do
version "1.002"
sha256 "0c192448de90848f11eb8336876883a9a36dc65b8965e489600cfcc7a67358c1"

url "https://github.com/adobe-fonts/source-han-mono/releases/download/#{version}/SourceHanMono.ttc"
appcast "https://github.com/adobe-fonts/source-han-mono/releases.atom"
name "Source Han Mono"
name "思源等寬"
name "源ノ等幅"
name "본모노"
desc "Pan-CJK version of Source Han Code JP"
homepage "https://github.com/adobe-fonts/source-han-mono"

font "SourceHanMono.ttc"
end
11 changes: 11 additions & 0 deletions Casks/font-source-han-noto-cjk.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
cask "font-source-han-noto-cjk" do
version "20190603"
sha256 "128edf85c23a4fabd6f169977b535ce4b10b7a66e80147676e33d2f3d66fbb98"

url "https://github.com/adobe-fonts/source-han-super-otc/releases/download/#{version}/SourceHanNotoCJK.ttc"
appcast "https://github.com/adobe-fonts/source-han-super-otc/releases.atom"
name "Source Han Noto CJK"
homepage "https://github.com/adobe-fonts/source-han-super-otc"

font "SourceHanNotoCJK.ttc"
end
20 changes: 20 additions & 0 deletions Casks/font-source-han-sans-vf.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
cask "font-source-han-sans-vf" do
version "2.003"
sha256 "f06c326fb2ca0d211b03bf752777e7006049867825188da9aecab42945550a07"

url "https://github.com/adobe-fonts/source-han-sans/raw/#{version}R/Variable/OTC/SourceHanSans-VF.ttc"
name "Source Han Sans VF"
name "思源黑體 VF"
name "源ノ角ゴシック VF"
name "본고딕 VF"
desc "Variable font edition of source-han-sans"
homepage "https://github.com/adobe-fonts/source-han-sans"

livecheck do
url "https://github.com/adobe-fonts/source-han-sans/releases/latest"
strategy :page_match
regex(%r{tag/(\d+(?:\.\d+)*)}i)
end

font "SourceHanSans-VF.ttc"
end
20 changes: 20 additions & 0 deletions Casks/font-source-han-sans.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
cask "font-source-han-sans" do
version "2.003"
sha256 "02947fcec1fbb97b3369dc30113c9f07363359aed82788bf38eef17b894bf045"

url "https://github.com/adobe-fonts/source-han-sans/raw/#{version}R/SuperOTC/SourceHanSans.ttc.zip"
name "Source Han Sans"
name "思源黑體"
name "源ノ角ゴシック"
name "본고딕"
desc "OpenType/CFF Pan-CJK fonts"
homepage "https://github.com/adobe-fonts/source-han-sans"

livecheck do
url "https://github.com/adobe-fonts/source-han-sans/releases/latest"
strategy :page_match
regex(%r{tag/(\d+(?:\.\d+)*)}i)
end

font "SourceHanSans.ttc"
end
20 changes: 20 additions & 0 deletions Casks/font-source-han-serif.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
cask "font-source-han-serif" do
version "1.001"
sha256 "85cc634fa228286ca307803bbb4ca61f61fa821b3ed573f4f07c6f0c064426b5"

url "https://github.com/adobe-fonts/source-han-serif/releases/download/#{version}R/SourceHanSerif.ttc"
name "Source Han Serif"
name "思源宋體"
name "源ノ明朝"
name "본명조"
desc "OpenType/CFF Pan-CJK fonts"
homepage "https://github.com/adobe-fonts/source-han-serif"

livecheck do
url "https://github.com/adobe-fonts/source-han-serif/releases/latest"
strategy :page_match
regex(%r{tag/(\d+(?:\.\d+)*)}i)
end

font "SourceHanSerif.ttc"
end
73 changes: 73 additions & 0 deletions Casks/font-source-serif.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
cask "font-source-serif" do
version "4.004"
sha256 "cb3e95d6e3c1273d44300dd464e568d4c9613b28199c53c50454af4b40bbdac1"

url "https://github.com/adobe-fonts/source-serif/releases/download/#{version}R/source-serif-#{version}.zip"
appcast "https://github.com/adobe-fonts/source-serif/releases.atom"
name "Source Serif"
desc "Adobe Source Serif font"
homepage "https://github.com/adobe-fonts/source-serif"

font "source-serif-#{version}/OTF/SourceSerif4-Black.otf"
font "source-serif-#{version}/OTF/SourceSerif4-BlackIt.otf"
font "source-serif-#{version}/OTF/SourceSerif4-Bold.otf"
font "source-serif-#{version}/OTF/SourceSerif4-BoldIt.otf"
font "source-serif-#{version}/OTF/SourceSerif4-ExtraLight.otf"
font "source-serif-#{version}/OTF/SourceSerif4-ExtraLightIt.otf"
font "source-serif-#{version}/OTF/SourceSerif4-It.otf"
font "source-serif-#{version}/OTF/SourceSerif4-Light.otf"
font "source-serif-#{version}/OTF/SourceSerif4-LightIt.otf"
font "source-serif-#{version}/OTF/SourceSerif4-Regular.otf"
font "source-serif-#{version}/OTF/SourceSerif4-Semibold.otf"
font "source-serif-#{version}/OTF/SourceSerif4-SemiboldIt.otf"
font "source-serif-#{version}/OTF/SourceSerif4Caption-Black.otf"
font "source-serif-#{version}/OTF/SourceSerif4Caption-BlackIt.otf"
font "source-serif-#{version}/OTF/SourceSerif4Caption-Bold.otf"
font "source-serif-#{version}/OTF/SourceSerif4Caption-BoldIt.otf"
font "source-serif-#{version}/OTF/SourceSerif4Caption-ExtraLight.otf"
font "source-serif-#{version}/OTF/SourceSerif4Caption-ExtraLightIt.otf"
font "source-serif-#{version}/OTF/SourceSerif4Caption-It.otf"
font "source-serif-#{version}/OTF/SourceSerif4Caption-Light.otf"
font "source-serif-#{version}/OTF/SourceSerif4Caption-LightIt.otf"
font "source-serif-#{version}/OTF/SourceSerif4Caption-Regular.otf"
font "source-serif-#{version}/OTF/SourceSerif4Caption-Semibold.otf"
font "source-serif-#{version}/OTF/SourceSerif4Caption-SemiboldIt.otf"
font "source-serif-#{version}/OTF/SourceSerif4Display-Black.otf"
font "source-serif-#{version}/OTF/SourceSerif4Display-BlackIt.otf"
font "source-serif-#{version}/OTF/SourceSerif4Display-Bold.otf"
font "source-serif-#{version}/OTF/SourceSerif4Display-BoldIt.otf"
font "source-serif-#{version}/OTF/SourceSerif4Display-ExtraLight.otf"
font "source-serif-#{version}/OTF/SourceSerif4Display-ExtraLightIt.otf"
font "source-serif-#{version}/OTF/SourceSerif4Display-It.otf"
font "source-serif-#{version}/OTF/SourceSerif4Display-Light.otf"
font "source-serif-#{version}/OTF/SourceSerif4Display-LightIt.otf"
font "source-serif-#{version}/OTF/SourceSerif4Display-Regular.otf"
font "source-serif-#{version}/OTF/SourceSerif4Display-Semibold.otf"
font "source-serif-#{version}/OTF/SourceSerif4Display-SemiboldIt.otf"
font "source-serif-#{version}/OTF/SourceSerif4SmText-Black.otf"
font "source-serif-#{version}/OTF/SourceSerif4SmText-BlackIt.otf"
font "source-serif-#{version}/OTF/SourceSerif4SmText-Bold.otf"
font "source-serif-#{version}/OTF/SourceSerif4SmText-BoldIt.otf"
font "source-serif-#{version}/OTF/SourceSerif4SmText-ExtraLight.otf"
font "source-serif-#{version}/OTF/SourceSerif4SmText-ExtraLightIt.otf"
font "source-serif-#{version}/OTF/SourceSerif4SmText-It.otf"
font "source-serif-#{version}/OTF/SourceSerif4SmText-Light.otf"
font "source-serif-#{version}/OTF/SourceSerif4SmText-LightIt.otf"
font "source-serif-#{version}/OTF/SourceSerif4SmText-Regular.otf"
font "source-serif-#{version}/OTF/SourceSerif4SmText-Semibold.otf"
font "source-serif-#{version}/OTF/SourceSerif4SmText-SemiboldIt.otf"
font "source-serif-#{version}/OTF/SourceSerif4Subhead-Black.otf"
font "source-serif-#{version}/OTF/SourceSerif4Subhead-BlackIt.otf"
font "source-serif-#{version}/OTF/SourceSerif4Subhead-Bold.otf"
font "source-serif-#{version}/OTF/SourceSerif4Subhead-BoldIt.otf"
font "source-serif-#{version}/OTF/SourceSerif4Subhead-ExtraLight.otf"
font "source-serif-#{version}/OTF/SourceSerif4Subhead-ExtraLightIt.otf"
font "source-serif-#{version}/OTF/SourceSerif4Subhead-It.otf"
font "source-serif-#{version}/OTF/SourceSerif4Subhead-Light.otf"
font "source-serif-#{version}/OTF/SourceSerif4Subhead-LightIt.otf"
font "source-serif-#{version}/OTF/SourceSerif4Subhead-Regular.otf"
font "source-serif-#{version}/OTF/SourceSerif4Subhead-Semibold.otf"
font "source-serif-#{version}/OTF/SourceSerif4Subhead-SemiboldIt.otf"
font "source-serif-#{version}/VAR/SourceSerif4Variable-Italic.otf"
font "source-serif-#{version}/VAR/SourceSerif4Variable-Roman.otf"
end

0 comments on commit 97f56c2

Please sign in to comment.