Logo Search packages:      
Sourcecode: ocrfeeder version File versions  Download package

def odf::odf2xhtml::StyleToCSS::save_font (   self,
  name,
  family,
  generic 
)

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

Definition at line 111 of file odf2xhtml.py.

00111                                               :
        """ 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
        """
        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)

    def c_drawfillimage(self, ruleset, sdict, rule, val):


Generated by  Doxygen 1.6.0   Back to index