# File lib/prawn/font/dfont.rb, line 29 def self.font_count(file) TTFunk::ResourceFile.open(file) do |f| return f.map["sfnt"][:list].length end end