Method: RubyXL::LegacyCell#change_font_size

Defined in:
lib/rubyXL/cell.rb

#change_font_size(font_size = 10) ⇒ Object

Changes font size of cell



36
37
38
39
40
41
42
43
# File 'lib/rubyXL/cell.rb', line 36

def change_font_size(font_size=10)
  validate_worksheet
  raise 'Argument must be a number' unless font_size.is_a?(Integer) || font_size.is_a?(Float)

  font = get_cell_font.dup
  font.set_size(font_size)
  update_font_references(font)
end