Method: String#font
- Defined in:
- lib/term/font.rb
#font(name) ⇒ String
Note:
using ‘artii` gem. typing `artii -l` to see all fonts.
set the font.
19 20 21 22 |
# File 'lib/term/font.rb', line 19 def font(name) font_builder = self.class.fonts[name.to_s] ||= Artii::Base.new(font: name) font_builder.output self end |