def size_get_fixture(self, request): sz_val, expected_size = request.param rPr_bldr = an_rPr().with_nsdecls() if sz_val is not None: rPr_bldr.with_sz(sz_val) font = _Font(rPr_bldr.element) return font, expected_size
def typeface_get_fixture(self, request): typeface = request.param rPr_bldr = an_rPr().with_nsdecls() if typeface is not None: rPr_bldr.with_child(a_latin().with_typeface(typeface)) rPr = rPr_bldr.element font = _Font(rPr) return font, typeface
def typeface_set_fixture(self, request): before_typeface, after_typeface = request.param # starting font rPr_bldr = an_rPr().with_nsdecls() if before_typeface is not None: rPr_bldr.with_child(a_latin().with_typeface(before_typeface)) rPr = rPr_bldr.element font = _Font(rPr) # expected XML rPr_bldr = an_rPr().with_nsdecls() if after_typeface is not None: rPr_bldr.with_child(a_latin().with_typeface(after_typeface)) rPr_with_latin_xml = rPr_bldr.xml() return font, after_typeface, rPr_with_latin_xml
def italic_off_font(self): italic_rPr = an_rPr().with_nsdecls().with_i(0).element return _Font(italic_rPr)
def font(self): rPr = an_rPr().with_nsdecls().element return _Font(rPr)
def bold_off_font(self): bold_off_rPr = an_rPr().with_nsdecls().with_b(0).element return _Font(bold_off_rPr)