Sha256: 8da66d585858a9cfe4fa524287f0845c52dec2dfaf62cc6ddb8a203ebe707a4b

Contents?: true

Size: 595 Bytes

Versions: 2

Compression:

Stored size: 595 Bytes

Contents

require 'i18n'

I18n.available_locales = [:en] | I18n.available_locales

require_relative "hershey/font"
require_relative "hershey/character"
require_relative "hershey/document"
require_relative "hershey/page"
require_relative "hershey/version"
require_relative "hershey/word"

module Hershey
  def self.new(options = {})
    doc = Document.new(options)
  end

  def self.svg(text, options = {})
    doc = Document.new(options)
    doc.write(text)
    doc.svg
  end

  def self.svgs(text, options = {})
    puts options
    doc = Document.new(options)
    doc.write(text)
    doc.svgs
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
hershey-0.0.9 lib/hershey.rb
hershey-0.0.8 lib/hershey.rb