Method: IsoDoc::PresentationXMLConvert#custom_charset

Defined in:
lib/isodoc/presentation_function/inline.rb

#custom_charset(docxml) ⇒ Object



176
177
178
179
180
181
182
# File 'lib/isodoc/presentation_function/inline.rb', line 176

def custom_charset(docxml)
  charsets = extract_custom_charsets(docxml)
  docxml.xpath(ns("//span[@custom-charset]")).each do |s|
    s["style"] ||= ""
    s["style"] += ";font-family:#{charsets[s['custom-charset']]}"
  end
end