24
Aug
2016
Meet Tembed a Ruby C extension
Alright, so you're testing fancy fonts in the lovely browsers, then bam IE keeps spewing installable embedding not allowed and fonts are broken. But the Google God points to Andre Backlund fontfixer.
Hallelujah! One font fixed, only a few more to go. * squint * ha, I grab source Tom 7's embed.
Jesus! It's C code. What do? Created Tom embed Tembed gem.
1
2
3
4
# Gemfile
...
gem 'tembed', github: 'issueapp/tembed'
...
And on irb
1
irb> Tembed.call '/path/to/font.ttf'
Caveat: if you get sued because you didn't have font license from author, then get a good lawyer.