From 36e7d43ac59946af9ee5f6d3308c358c4b7f8f07 Mon Sep 17 00:00:00 2001 From: Matt Troutman Date: Sat, 5 Apr 2025 17:53:24 -0500 Subject: [PATCH] Add tyler handwriting font as submodule --- .gitmodules | 3 +++ Formula/font-tyler handwriting.rb | 16 ++++++++++++++++ fonts/font-tyler-handwriting | 1 + fonts/index.json | 8 +++++++- 4 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 Formula/font-tyler handwriting.rb create mode 160000 fonts/font-tyler-handwriting diff --git a/.gitmodules b/.gitmodules index e69de29..f136ba1 100644 --- a/.gitmodules +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "/Users/fishy/git/homebrew-fonts/fonts/font-tyler-handwriting"] + path = /Users/fishy/git/homebrew-fonts/fonts/font-tyler-handwriting + url = http://clancy.genet-godzilla.ts.net:3002/fishy/font-tyler-handwriting.git diff --git a/Formula/font-tyler handwriting.rb b/Formula/font-tyler handwriting.rb new file mode 100644 index 0000000..613edfa --- /dev/null +++ b/Formula/font-tyler handwriting.rb @@ -0,0 +1,16 @@ +class Tyler handwriting < Formula + desc "A custom font" + homepage "http://clancy.genet-godzilla.ts.net:3002/fishy/font-tyler handwriting" + url "http://clancy.genet-godzilla.ts.net:3002/fishy/font-tyler handwriting/raw/branch/master/tyler handwriting.zip" + sha256 "b0bf2ac68eaf7ad7e0623b12d0c3661336af1ef3b20157aeb9312322cef9cac1" + version "1.0.0" + + def install + (share/"fonts").install "tyler-handwriting.otf" + end + + test do + # Test installation by checking that the font exists + system "fc-list | grep 'tyler-handwriting'" + end +end diff --git a/fonts/font-tyler-handwriting b/fonts/font-tyler-handwriting new file mode 160000 index 0000000..5180705 --- /dev/null +++ b/fonts/font-tyler-handwriting @@ -0,0 +1 @@ +Subproject commit 51807056d15c9fff420303bb9076f99df92bc63d diff --git a/fonts/index.json b/fonts/index.json index 7f72497..0e8fdd3 100644 --- a/fonts/index.json +++ b/fonts/index.json @@ -1,3 +1,9 @@ { - "fonts": [] + "fonts": [ + { + "name": "tyler handwriting", + "path": "/Users/fishy/git/homebrew-fonts/fonts/font-tyler-handwriting", + "formula": "font-tyler handwriting" + } + ] } \ No newline at end of file