Skip to content

issueapp/tembed

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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