class HexaPDF::Type::FontTrueType
Represents a TrueType font.
def font_wrapper
is embedded.
Overrides the default to provide a font wrapper in case none is set and a complete TrueType
def font_wrapper if (tmp = super) tmp elsif (font_file = self.font_file) && self[:BaseFont].to_s !~ /\A[A-Z]{6}\+/ font = HexaPDF::Font::TrueType::Font.new(StringIO.new(font_file.stream)) @font_wrapper = HexaPDF::Font::TrueTypeWrapper.new(document, font, subset: true) end end
def perform_validation
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