src/reportlab/platypus/paraparser.py
changeset 4129 1266500a2c22
parent 4116 cf49463fc067
child 4130 49161ce56cad
equal deleted inserted replaced
4128:309d3bc30482 4129:1266500a2c22
   772 
   772 
   773     def end_unichar(self):
   773     def end_unichar(self):
   774         self._pop('unichar')
   774         self._pop('unichar')
   775 
   775 
   776     def start_font(self,attr):
   776     def start_font(self,attr):
       
   777         A = self.getAttributes(attr,_spanAttrMap)
       
   778         if 'fontName' in A:
       
   779             A['fontName'], A['bold'], A['italic'] = ps2tt(A['fontName'])
   777         self._push('font',**self.getAttributes(attr,_fontAttrMap))
   780         self._push('font',**self.getAttributes(attr,_fontAttrMap))
   778 
   781 
   779     def end_font(self):
   782     def end_font(self):
   780         self._pop('font')
   783         self._pop('font')
   781 
   784 
   788                 v = getattr(style,k,self)
   791                 v = getattr(style,k,self)
   789                 if v is self: continue
   792                 if v is self: continue
   790                 D[k] = v
   793                 D[k] = v
   791             D.update(A)
   794             D.update(A)
   792             A = D
   795             A = D
       
   796         if 'fontName' in A:
       
   797             A['fontName'], A['bold'], A['italic'] = ps2tt(A['fontName'])
   793         self._push('span',**A)
   798         self._push('span',**A)
   794 
   799 
   795     def end_span(self):
   800     def end_span(self):
   796         self._pop('span')
   801         self._pop('span')
   797 
   802