Sha256: a2617463dbe5f7006664ed53e845e11cde745e392f2b73afb37d0be16cf8d6a7
Contents?: true
Size: 548 Bytes
Versions: 1
Compression:
Stored size: 548 Bytes
Contents
require "ttfunk/table/directory" %w[cmap head hhea hmtx name kern maxp].each do |lib| require "ttfunk/table/" + lib TTFunk::File.has_table lib end module TTFunk class Table def method_missing(*args, &block) var = "@#{args.first}" if instance_variables.map { |e| e.to_s }.include?(var) instance_variable_get(var) else super end end private def to_signed(n, length=16) max = 2**length-1 mid = 2**(length-1) (n>=mid) ? -((n ^ max) + 1) : n end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
prawn-0.3.0 | vendor/ttfunk/lib/ttfunk/table.rb |