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

def odf::odf2xhtml::StyleToCSS::c_fn (   self,
  ruleset,
  sdict,
  rule,
  fontstyle 
)

Generate the CSS font family
    A generic font can be found in two ways. In a <style:font-face>
    element or as a font-family-generic attribute in text-properties.

Definition at line 157 of file odf2xhtml.py.

00157                                                    :
        """ Generate the CSS font family
            A generic font can be found in two ways. In a <style:font-face>
            element or as a font-family-generic attribute in text-properties.
        """
        generic = ruleset.get((STYLENS,'font-family-generic') )
        if generic is not None:
            self.save_font(fontstyle, fontstyle, generic)
        family, htmlgeneric = self.fontdict.get(fontstyle, (fontstyle, 'serif'))
        sdict['font-family'] = '%s, %s'  % (family, htmlgeneric)

    def c_text_position(self, ruleset, sdict, rule, tp):


Generated by  Doxygen 1.6.0   Back to index