Skip to content

Repository files navigation

tembed

Tom 7 embed as ruby C extension

usage

require'tembed'# override filesTembed.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 fileTembed.call('/path/to/font.ttf')do |data|
# write fixed dataendTembed.call(IO.read('/path/to/font.ttf'))do |data|
# write fixed dataend

REPL

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

resources

ruby.hc api spec

gem build tembed.gemspec

About

Tom 7 embed as ruby C extension

Resources

Stars

0 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages