Class: RubyXL::Font

Inherits:
OOXMLObject show all
Defined in:
lib/rubyXL/objects/font.rb

Overview

Constant Summary collapse

MAX_DIGIT_WIDTH =

Since we have no capability to load the actual fonts, we'll have to live with the default.

7

Instance Attribute Summary

Attributes included from OOXMLObjectInstanceMethods

#local_namespaces

Class Method Summary collapse

Methods included from OOXMLObjectInstanceMethods

#==, #before_write_xml, included, #index_in_collection, #initialize, #write_xml

Class Method Details

.default(size = 10) ⇒ Object


28
29
30
31
# File 'lib/rubyXL/objects/font.rb', line 28

def self.default(size = 10)
  self.new(:name => RubyXL::StringValue.new(:val => 'Verdana'),
           :sz   => RubyXL::FloatValue.new(:val => size))
end