Skip to content

issueapp/tembed

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Khoa NguyenKhoa Nguyen
Khoa Nguyen
and
Khoa Nguyen
Jun 10, 2017
771868d · Jun 10, 2017

History

13 Commits
Jun 10, 2017
Jun 10, 2017
Aug 11, 2016
Aug 11, 2016
Aug 11, 2016
Aug 23, 2016
Aug 11, 2016
Aug 23, 2016
Jun 10, 2017
Aug 23, 2016

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

About

Tom 7 embed as ruby C extension

Resources

License

Stars

Watchers

Forks

Packages

No packages published