"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/reportlab/graphics/renderPS.py" between
reportlab-3.5.65.tar.gz and reportlab-3.5.66.tar.gz

About: ReportLab generates high-quality dynamic PDF documents/charts in real-time & high volumes from any data source (commercial version also available). f: office t: PDF report "data graphics" charts

renderPS.py  (reportlab-3.5.65):renderPS.py  (reportlab-3.5.66)
skipping to change at line 322 skipping to change at line 322
if not self.code[self._fontCodeLoc]: if not self.code[self._fontCodeLoc]:
psName = asNative(fontObj.face.name) psName = asNative(fontObj.face.name)
self.code[self._fontCodeLoc]='(%s) findfont %s scalefont setfont ' % (psName,fp_str(self._fontSize)) self.code[self._fontCodeLoc]='(%s) findfont %s scalefont setfont ' % (psName,fp_str(self._fontSize))
if psName not in self._fontsUsed: if psName not in self._fontsUsed:
self._fontsUsed.append(psName) self._fontsUsed.append(psName)
if angle!=0: if angle!=0:
self.code_append('gsave %s translate %s rotate' % (fp_str(x,y),f p_str(angle))) self.code_append('gsave %s translate %s rotate' % (fp_str(x,y),f p_str(angle)))
x = y = 0 x = y = 0
oldColor = self._color oldColor = self._color
if fontObj._dynamicFont: if fontObj._dynamicFont:
self._textOut(self, x, y, s, textRenderMode=textRenderMode) self._textOut(x, y, s, textRenderMode=textRenderMode)
else: else:
self._issueT1String(fontObj,x,y,s, textRenderMode=textRenderMode ) self._issueT1String(fontObj,x,y,s, textRenderMode=textRenderMode )
self.setColor(oldColor) self.setColor(oldColor)
if angle!=0: if angle!=0:
self.code_append('grestore') self.code_append('grestore')
def drawCentredString(self, x, y, text, text_anchor='middle', textRenderMode =0): def drawCentredString(self, x, y, text, text_anchor='middle', textRenderMode =0):
self.drawString(x,y,text, text_anchor=text_anchor, textRenderMode=te xtRenderMode) self.drawString(x,y,text, text_anchor=text_anchor, textRenderMode=te xtRenderMode)
def drawRightString(self, text, x, y, text_anchor='end', textRenderMode=0): def drawRightString(self, text, x, y, text_anchor='end', textRenderMode=0):
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)