class Docxi::Word::Fonts::Font
Attributes
name[RW]
options[RW]
Public Class Methods
new(name, options)
click to toggle source
# File lib/docxi/word/fonts/font.rb, line 7 def initialize(name, options) @name = name @options = options end
Public Instance Methods
build(xml)
click to toggle source
# File lib/docxi/word/fonts/font.rb, line 12 def build(xml) xml['w'].font('w:name' => @name) do xml['w'].panose1('w:val' => @options[:panose] ) xml['w'].charset('w:val' => @options[:charset] ) xml['w'].family('w:val' => @options[:family] ) xml['w'].pitch('w:val' => @options[:pitch] ) xml['w'].sig( @options[:sig] ) end end