# coding: utf-8 module ThinReports module Generator class PDF::Configuration # @return [Array] attr_reader :eudc_fonts def initialize @eudc_fonts = [] end # @param [String, Array] fonts def eudc_fonts=(fonts) fonts = [fonts] unless fonts.is_a?(::Array) fonts.each do |f| unless File.extname(f.to_s) == '.ttf' raise ArgumentError, 'The EUDC Fonts can specify only the TTF file.' end end @eudc_fonts = fonts end end end end