#NEWLINE# def _set_font( self , family , size , bold , italic ) : #NEWLINE# #INDENT# '\n        Set the font properties of all the text in this text frame to\n        *family*, *size*, *bold*, and *italic*.\n        ' #NEWLINE# def iter_rPrs( txBody ) : #NEWLINE# #INDENT# for p in txBody . p_lst : #NEWLINE# #INDENT# for elm in p . content_children : #NEWLINE# #INDENT# ( yield elm . get_or_add_rPr ( ) ) #NEWLINE# #UNINDENT# ( yield p . get_or_add_endParaRPr ( ) ) #NEWLINE# #UNINDENT# #UNINDENT# def set_rPr_font( rPr , name , size , bold , italic ) : #NEWLINE# #INDENT# f = Font ( rPr ) #NEWLINE# ( f . name , f . size , f . bold , f . italic ) = ( family , Pt ( size ) , bold , italic ) #NEWLINE# #UNINDENT# txBody = self . _element #NEWLINE# for rPr in iter_rPrs ( txBody ) : #NEWLINE# #INDENT# set_rPr_font ( rPr , family , rPr , bold , italic )