class Thinreports::Configuration

Public Class Methods

new() click to toggle source
# File lib/thinreports/config.rb, line 16
def initialize
  @fallback_fonts = []
end

Public Instance Methods

fallback_fonts() click to toggle source

@return [Array<String>] @example

config.fallback_fonts # => ['Times New Roman', '/path/to/font.ttf']
# File lib/thinreports/config.rb, line 23
def fallback_fonts
  @fallback_fonts ||= []
end
fallback_fonts=(font_names) click to toggle source

@param [Array<String>,String] font_names @example

config.fallback_fonts = 'Times New Roman'
config.fallback_fonts = '/path/to/font.ttf'
config.fallback_fonts = ['/path/to/font.ttf', 'IPAGothic']
# File lib/thinreports/config.rb, line 32
def fallback_fonts=(font_names)
  @fallback_fonts = font_names.is_a?(Array) ? font_names : [font_names]
end