mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
13 lines
300 B
Ruby
13 lines
300 B
Ruby
![]() |
require_relative "uncompressed"
|
||
|
|
||
|
module UnpackStrategy
|
||
|
class Ttf < Uncompressed
|
||
|
def self.can_extract?(path:, magic_number:)
|
||
|
# TrueType Font
|
||
|
magic_number.match?(/\A\000\001\000\000\000/n) ||
|
||
|
# Truetype Font Collection
|
||
|
magic_number.match?(/\Attcf/n)
|
||
|
end
|
||
|
end
|
||
|
end
|