174
174
return self._bbox
176
def processPS(self, file, writer, context, registry, bbox):
176
def _text(self, writer):
178
177
if self.fontmap is not None:
179
178
mapline = self.font.getMAPline(self.fontmap)
181
180
mapline = self.font.getMAPline(writer.getfontmap())
182
181
font = mapline.getfont()
183
text = font.text_pt(self.x_pt, self.y_pt, self.charcodes, self.size_pt, decoding=mapline.getencoding(), slant=mapline.slant, ignorebbox=True)
184
text.processPS(file, writer, context, registry, bbox)
182
return font.text_pt(self.x_pt, self.y_pt, self.charcodes, self.size_pt, decoding=mapline.getencoding(), slant=mapline.slant, ignorebbox=True)
185
from pyx import pswriter
186
return self._text(pswriter._PSwriter()).textpath()
188
def processPS(self, file, writer, context, registry, bbox):
190
self._text(writer).processPS(file, writer, context, registry, bbox)
186
192
def processPDF(self, file, writer, context, registry, bbox):
187
193
bbox += self.bbox()
189
mapline = self.font.getMAPline(writer.getfontmap())
190
font = mapline.getfont()
191
text = font.text_pt(self.x_pt, self.y_pt, self.charcodes, self.size_pt, decoding=mapline.getencoding(), slant=mapline.slant, ignorebbox=True)
192
text.processPDF(file, writer, context, registry, bbox)
194
self._text(writer).processPDF(file, writer, context, registry, bbox)