module Roo::Excel::ExcelFontExtensions

ruby-spreadsheet has a font object so we're extending it with our own functionality but still providing full access to the user for other font information

Public Instance Methods

bold?(*_args) click to toggle source
# File lib/roo/xls/excel.rb, line 231
def bold?(*_args)
  # From ruby-spreadsheet doc: 100 <= weight <= 1000, bold => 700, normal => 400
  weight == 700
end
italic?() click to toggle source
# File lib/roo/xls/excel.rb, line 236
def italic?
  italic
end
underline?() click to toggle source
# File lib/roo/xls/excel.rb, line 240
def underline?
  underline != :none
end