Skip to content

Instantly share code, notes, and snippets.

@tnayuki tnayuki/test.rb
Created Apr 1, 2014

Embed
What would you like to do?
# encoding: utf-8
require "suddenly_death"
require "ttfunk"
file = TTFunk::File.open(ARGV[0])
ARGV[1].split(//).each do |c|
l = 0
file.cmap.unicode.each do |u|
begin
l = u[c.unpack("U*").first]
break unless l == 0
rescue NotImplementedError
end
end
next unless l == 0
suddenly_death "表示できません"
exit 1
end
@tnayuki

This comment has been minimized.

Copy link
Owner Author

commented Apr 1, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.