|
|
@ -18,7 +18,6 @@ class MultiLineStringRenderer(Renderer):
|
|
|
|
self.font_size = fontsize
|
|
|
|
self.font_size = fontsize
|
|
|
|
|
|
|
|
|
|
|
|
def render(self, string, w, h):
|
|
|
|
def render(self, string, w, h):
|
|
|
|
print(string)
|
|
|
|
|
|
|
|
result = pg.Surface((w, h))
|
|
|
|
result = pg.Surface((w, h))
|
|
|
|
font = pgft.Font(None, size=self.font_size)
|
|
|
|
font = pgft.Font(None, size=self.font_size)
|
|
|
|
# This is a complete typographical blasphemy. We are going to space
|
|
|
|
# This is a complete typographical blasphemy. We are going to space
|
|
|
@ -32,6 +31,5 @@ class MultiLineStringRenderer(Renderer):
|
|
|
|
x, cy = cpos
|
|
|
|
x, cy = cpos
|
|
|
|
y = cy - (n-2*i-1)*self.linespacing*self.font_size//2
|
|
|
|
y = cy - (n-2*i-1)*self.linespacing*self.font_size//2
|
|
|
|
pos = x, y
|
|
|
|
pos = x, y
|
|
|
|
print(pos)
|
|
|
|
|
|
|
|
result.blit(rendered, pos)
|
|
|
|
result.blit(rendered, pos)
|
|
|
|
return result
|
|
|
|
return result
|
|
|
|