示例#1
0
 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
示例#2
0
 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
示例#3
0
 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
示例#4
0
 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
示例#5
0
 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
示例#6
0
 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
示例#7
0
 def italic_off_font(self):
     italic_rPr = an_rPr().with_nsdecls().with_i(0).element
     return _Font(italic_rPr)
示例#8
0
 def font(self):
     rPr = an_rPr().with_nsdecls().element
     return _Font(rPr)
示例#9
0
 def bold_off_font(self):
     bold_off_rPr = an_rPr().with_nsdecls().with_b(0).element
     return _Font(bold_off_rPr)
示例#10
0
 def italic_off_font(self):
     italic_rPr = an_rPr().with_nsdecls().with_i(0).element
     return _Font(italic_rPr)
示例#11
0
 def font(self):
     rPr = an_rPr().with_nsdecls().element
     return _Font(rPr)
示例#12
0
 def bold_off_font(self):
     bold_off_rPr = an_rPr().with_nsdecls().with_b(0).element
     return _Font(bold_off_rPr)