Sha256: 4cd7a292b1587e1ef22f3d518076849a6038a81c1a7e2cb1577c2dd36cca5289

Contents?: true

Size: 578 Bytes

Versions: 2

Compression:

Stored size: 578 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 = {})
    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.11 lib/hershey.rb
hershey-0.0.10 lib/hershey.rb