class DocxGenerator::Word::Font

Represent the ‘w:rFonts` element from Office Open XML specification. This class should not be used directly by the users of the library.

Public Class Methods

new(name) click to toggle source

Create a new ‘w:rFonts` element. @param name [String] The name of the font.

Calls superclass method DocxGenerator::Element::new
# File lib/docx_generator/word/formatting.rb, line 157
def initialize(name)
  super("w:rFonts", { "w:ascii" => name })
end