You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/static/tutorials/typography/index.html
+8-8Lines changed: 8 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -39,16 +39,12 @@ <h3>Draw text</h3>
39
39
text("LAX", 0, 40); // Write "LAX" at coordinate (0,40)
40
40
text("AMS", 0, 70); // Write "AMS" at coordinate (0,70)
41
41
text("FRA", 0, 100); // Write "FRA" at coordinate (0,100)
42
-
fill(0);
43
-
text("LAX", 0, 40); // Write "LAX" at coordinate (0,40)
44
-
text("AMS", 0, 70); // Write "AMS" at coordinate (0,70)
45
-
text("FRA", 0, 100); // Write "FRA" at coordinate (0,100)
46
42
</pre>
47
43
</td>
48
44
</tr>
49
45
</table>
50
46
51
-
<p> </p>
47
+
<hr/>
52
48
53
49
<tablestyle="width: 650">
54
50
<tr>
@@ -65,7 +61,7 @@ <h3>Draw text</h3>
65
61
</tr>
66
62
</table>
67
63
68
-
<p> </p>
64
+
<hr/>
69
65
70
66
<tablestyle="width: 650">
71
67
<tr>
@@ -81,7 +77,7 @@ <h3>Draw text</h3>
81
77
</tr>
82
78
</table>
83
79
84
-
<p> </p>
80
+
<hr/>
85
81
86
82
<tablestyle="width: 650">
87
83
<tr>
@@ -106,7 +102,7 @@ <h3>Draw text</h3>
106
102
Another version of text() draws the characters inside a rectangle. In this use, the second and third parameters define the position of the upper-left corner of the box and fourth and fifth parameters define the width and height of the box. If the length of the text exceeds the dimensions of the defined box, the text will not display.
0 commit comments