'It is possible that the HTML browser doesn\'t know how to
show a particular font. Fortunately ODF provides generic fallbacks.
Unfortunately they are not the same as CSS2.
CSS2: serif, sans-serif, cursive, fantasy, monospace
ODF: roman, swiss, modern, decorative, script, system
This method put the font and fallback into a dictionary'

def save_font(self, name, family, generic):

    htmlgeneric = 'sans-serif'
    if (generic == 'roman'):
        htmlgeneric = 'serif'
    elif (generic == 'swiss'):
        htmlgeneric = 'sans-serif'
    elif (generic == 'modern'):
        htmlgeneric = 'monospace'
    elif (generic == 'decorative'):
        htmlgeneric = 'sans-serif'
    elif (generic == 'script'):
        htmlgeneric = 'monospace'
    elif (generic == 'system'):
        htmlgeneric = 'serif'
    self.fontdict[name] = (family, htmlgeneric)
