Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 7
0
 def italic_off_font(self):
     italic_rPr = an_rPr().with_nsdecls().with_i(0).element
     return _Font(italic_rPr)
Exemplo n.º 8
0
 def font(self):
     rPr = an_rPr().with_nsdecls().element
     return _Font(rPr)
Exemplo n.º 9
0
 def bold_off_font(self):
     bold_off_rPr = an_rPr().with_nsdecls().with_b(0).element
     return _Font(bold_off_rPr)
Exemplo n.º 10
0
 def italic_off_font(self):
     italic_rPr = an_rPr().with_nsdecls().with_i(0).element
     return _Font(italic_rPr)
Exemplo n.º 11
0
 def font(self):
     rPr = an_rPr().with_nsdecls().element
     return _Font(rPr)
Exemplo n.º 12
0
 def bold_off_font(self):
     bold_off_rPr = an_rPr().with_nsdecls().with_b(0).element
     return _Font(bold_off_rPr)