# coding: utf-8 module Thinreports module Generator # @deprecated This class will be removed in the next major version. class PDF::Configuration # @return [Array] attr_reader :eudc_fonts def initialize @eudc_fonts = [] end # @param [String, Array] fonts def eudc_fonts=(fonts) warn '[DEPRECATION] `eudc_fonts=` is deprecated and will be removed in ' + 'the next major version of thinreports. ' + 'Please use `Thinreports.config.fallback_fonts=` instead.' 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