Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
pub
libraries
Commits
57f1cd32
Commit
57f1cd32
authored
Jan 05, 2020
by
Neil Gershenfeld
Browse files
wip
parent
8eca6514
Pipeline
#4769
passed with stage
in 1 second
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
python/pcb.py
View file @
57f1cd32
...
...
@@ -905,11 +905,13 @@ class text:
self
.
height
=
height
lineshape
=
false
self
.
shape
=
false
count
=
0
for
chr
in
text
:
if
(
chr
==
'
\n
'
):
count
+=
1
addline
(
lineshape
)
dx
=
0
dy
-=
1.5
*
self
.
height
dy
-=
1.5
*
self
.
height
/
(
1
+
(
count
-
1
)
*
1.5
)
self
.
width
=
-
space
self
.
height
+=
1.5
*
self
.
height
lineshape
=
false
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment