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

module Hbc
  class Container
    class Ttf < 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
  end
end