Class: Blacksmith::TTFAutoHint
Instance Method Summary
collapse
Methods inherited from Executable
#check_dependency!, #installed?, method_missing
Instance Method Details
#executable ⇒ Object
3
4
5
|
# File 'lib/blacksmith/ttf_auto_hint.rb', line 3
def executable
'ttfautohint'
end
|
#execute(source) ⇒ Object
7
8
9
10
11
12
13
14
15
16
17
18
|
# File 'lib/blacksmith/ttf_auto_hint.rb', line 7
def execute(source)
check_dependency!
target = begin
f = Tempfile.new(File.basename(source))
f.close
f.path
end
build_hinted_font(source, target)
replace_file(source, target)
end
|