class Jekyll::Gensocial::ImageCreator::TextLayerConfig

Attributes

fill[R]
font_path[R]
pointsize[R]
rect[R]
string[R]

Public Class Methods

new(hash, base_path:) click to toggle source
# File lib/jekyll-gensocial/image_creator/text_layer_config.rb, line 9
def initialize(hash, base_path:)
  @string = hash["string"]
  @font_path = File.join(base_path, hash["font_path"]) unless hash["font_path"].nil?
  @pointsize = hash["pointsize"]
  @fill = hash["fill"]
  @rect = Geometry::Rect.new(hash["rect"])
end