Method: DocxGenerator::Word::Font#initialize

Defined in:
lib/docx_generator/word/formatting.rb

#initialize(name) ⇒ Font

Create a new ‘w:rFonts` element.

Parameters:

  • name (String)

    The name of the font.



157
158
159
# File 'lib/docx_generator/word/formatting.rb', line 157

def initialize(name)
  super("w:rFonts", { "w:ascii" => name })
end