aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cask/lib/hbc/container/ttf.rb
blob: 8d787f360c7ed0eb06aeabbf0d7669f0a8404dd8 (plain)
1
2
3
4
5
6
7
8
9
10
require "hbc/container/naked"

class Hbc::Container::Ttf < Hbc::Container::Naked
  def self.me?(criteria)
    # TrueType Font
    criteria.magic_number(%r{^\000\001\000\000\000}n) ||
      # Truetype Font Collection
      criteria.magic_number(%r{^ttcf}n)
  end
end