class HexaPDF::Type::FontTrueType
Represents a TrueType font.
Private Instance Methods
perform_validation() { |"Required field FontDescriptor is not set", false| ... }
click to toggle source
Calls superclass method
HexaPDF::Type::FontSimple#perform_validation
# File lib/hexapdf/type/font_true_type.rb, line 49 def perform_validation std_font = FontType1::StandardFonts.standard_font?(self[:BaseFont]) super(ignore_missing_font_fields: std_font) if self[:FontDescriptor].nil? && !std_font yield("Required field FontDescriptor is not set", false) end end