11 lines
		
	
	
		
			266 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
		
		
			
		
	
	
			11 lines
		
	
	
		
			266 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
| 
								 | 
							
								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
							 |