Class: Preflight::Rules::OnlyEmbeddedFonts
- Inherits:
-
Object
- Object
- Preflight::Rules::OnlyEmbeddedFonts
- Defined in:
- lib/preflight/rules/only_embedded_fonts.rb
Overview
check a file only uses embedded fonts
Instance Method Summary collapse
Instance Method Details
#messages(ohash) ⇒ Object
10 11 12 13 14 15 16 17 18 19 |
# File 'lib/preflight/rules/only_embedded_fonts.rb', line 10 def (ohash) array = [] ohash.each do |key, obj| next unless obj.is_a?(::Hash) && obj[:Type] == :Font if !(ohash, obj) array << "Font #{obj[:BaseFont]} is not embedded" end end array end |