Class: Preflight::Rules::NoFontSubsets
- Inherits:
-
Object
- Object
- Preflight::Rules::NoFontSubsets
- Defined in:
- lib/preflight/rules/no_font_subsets.rb
Overview
Instance Method Summary collapse
Instance Method Details
#check_hash(ohash) ⇒ Object
21 22 23 24 25 26 27 28 29 30 |
# File 'lib/preflight/rules/no_font_subsets.rb', line 21 def check_hash(ohash) array = [] ohash.each do |key, obj| next unless obj.is_a?(::Hash) && obj[:Type] == :Font if subset?(obj) array << Issue.new("Font partially subseted (#{obj[:BaseFont]})", self, :base_font => obj[:BaseFont]) end end array end |