Commit 57f1cd32 authored by Neil Gershenfeld's avatar Neil Gershenfeld
Browse files

wip

parent 8eca6514
Pipeline #4769 passed with stage
in 1 second
...@@ -905,11 +905,13 @@ class text: ...@@ -905,11 +905,13 @@ class text:
self.height = height self.height = height
lineshape = false lineshape = false
self.shape = false self.shape = false
count = 0
for chr in text: for chr in text:
if (chr == '\n'): if (chr == '\n'):
count += 1
addline(lineshape) addline(lineshape)
dx = 0 dx = 0
dy -= 1.5*self.height dy -= 1.5*self.height/(1+(count-1)*1.5)
self.width = -space self.width = -space
self.height += 1.5*self.height self.height += 1.5*self.height
lineshape = false lineshape = false
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment