def get_results(self, box, used_characters): _mathtext.ship(0, 0, box) return (self.width, self.height + self.depth, self.depth, self.glyphs, self.rects)
def get_results(self, box, used_characters): _mathtext.ship(0, 0, box) return self._PSResult(self.width, self.height + self.depth, self.depth, self.pswriter, used_characters)
def get_results(self, box, used_characters): _mathtext.ship(0, 0, box) svg_elements = types.SimpleNamespace(svg_glyphs=self.svg_glyphs, svg_rects=self.svg_rects) return (self.width, self.height + self.depth, self.depth, svg_elements, used_characters)
def get_results(self, box, used_characters): self.mode = 'bbox' orig_height = box.height orig_depth = box.depth _mathtext.ship(0, 0, box) bbox = self.bbox bbox = [bbox[0] - 1, bbox[1] - 1, bbox[2] + 1, bbox[3] + 1] self.mode = 'render' self.set_canvas_size(bbox[2] - bbox[0], (bbox[3] - bbox[1]) - orig_depth, (bbox[3] - bbox[1]) - orig_height) _mathtext.ship(-bbox[0], -bbox[1], box) result = (self.ox, self.oy, self.width, self.height + self.depth, self.depth, self.image, used_characters) self.image = None return result
def ship(ox, oy, box): _mathtext.ship(ox, oy, box)
def get_results(self, box): _mathtext.ship(0, 0, box) return self._Result(self.width, self.height + self.depth, self.depth, self.glyphs, self.rects)