Skip to content

Latest commit

 

History

History
36 lines (25 loc) · 686 Bytes

readme.md

File metadata and controls

36 lines (25 loc) · 686 Bytes

tembed

Tom 7 embed as ruby C extension

usage

require 'tembed'

# override files
Tembed.call! '/path/to/font.ttf'
Tembed.call! File.new('/path/to/font.ttf')
Tembed.call! Pathname('/path/to/font.ttf')

# yield fixed data, but don't override file
Tembed.call('/path/to/font.ttf') do |data|
  # write fixed data
end
Tembed.call(IO.read('/path/to/font.ttf')) do |data|
  # write fixed data
end

REPL

$ rake compile; irb -r ./lib/tembed

resources

ruby.h c api spec

gem build tembed.gemspec