Class: RubyXL::Font
- Inherits:
-
OOXMLObject
- Object
- OOXMLObject
- RubyXL::Font
- Includes:
- FontConvenienceMethods
- 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
Class Method Summary collapse
Methods included from FontConvenienceMethods
#get_name, #get_rgb_color, #get_size, #is_bold, #is_italic, #is_strikethrough, #is_underlined, #set_bold, #set_italic, #set_name, #set_rgb_color, #set_size, #set_strikethrough, #set_underline
Methods included from OOXMLObjectInstanceMethods
#==, #before_write_xml, included, #index_in_collection, #initialize, #write_xml
Class Method Details
.default(size = 10) ⇒ Object
29 30 31 32 |
# File 'lib/rubyXL/objects/font.rb', line 29 def self.default(size = 10) self.new(:name => RubyXL::StringValue.new(:val => 'Verdana'), :sz => RubyXL::FloatValue.new(:val => size) ) end |