Skip to content

Commit 70d333e

Browse files
committed
New layout draft for Typography tutorial, part 5
1 parent 64b8801 commit 70d333e

1 file changed

Lines changed: 11 additions & 11 deletions

File tree

content/static/tutorials/typography/index.html

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ <h3>Draw text</h3>
3030
The text() function is used to draw letters, words, and paragraphs to the screen. In the simplest use, the first parameter can be a String, char, int, or float. The second and third parameters set the position of the text. By default, the second parameter defines the distance from the left edge of the window; the third parameter defines the distance from the text’s baseline to the top of the window. The textSize() function defines the size the letters will draw in units of pixels. The number used to define the text size will not be the precise height of each letter, the difference depends on the design of each font. For instance, the statement textSize(30); won’t necessarily draw a capital H at 30 pixels high. The fill() function controls the color and transparency of text. This function affects text the same way it affects shapes such as rect() and ellipse(), but text is not affected by stroke().
3131
</p>
3232

33-
<table>
33+
<table style="width: 550">
3434
<tr>
3535
<td style="width: 120px; float:left;"><img src="imgs/12_01.png" style="width: 100px; height: 100px;"></td>
3636
<td>
@@ -44,8 +44,8 @@ <h3>Draw text</h3>
4444
</tr>
4545

4646
<tr>
47-
<td>&bnsp;</td>
48-
<td>&bnsp;</td>
47+
<td style="width: 120px; float:left;">&nbsp;</td>
48+
<td>&nbsp;</td>
4949
</tr>
5050

5151
<tr>
@@ -62,8 +62,8 @@ <h3>Draw text</h3>
6262
</tr>
6363

6464
<tr>
65-
<td>&bnsp;</td>
66-
<td>&bnsp;</td>
65+
<td style="width: 120px; float:left;">&nbsp;</td>
66+
<td>&nbsp;</td>
6767
</tr>
6868

6969
<tr>
@@ -82,8 +82,8 @@ <h3>Draw text</h3>
8282
</tr>
8383

8484
<tr>
85-
<td>&bnsp;</td>
86-
<td>&bnsp;</td>
85+
<td style="width: 120px; float:left;">&nbsp;</td>
86+
<td>&nbsp;</td>
8787
</tr>
8888

8989
<tr>
@@ -108,7 +108,7 @@ <h3>Draw text</h3>
108108
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.
109109
</p>
110110

111-
<table>
111+
<table style="width: 550">
112112
<tr>
113113
<td style="width: 120px; float:left;"><img src="imgs/12_05.png" style="width: 100px; height: 100px;"></td>
114114
<td>
@@ -121,10 +121,10 @@ <h3>Draw text</h3>
121121
</tr>
122122

123123
<tr>
124-
<td>&bnsp;</td>
125-
<td>&bnsp;</td>
124+
<td style="width: 120px; float:left;">&nbsp;</td>
125+
<td>&nbsp;</td>
126126
</tr>
127-
127+
128128
<tr>
129129
<td style="width: 120px; float:left;"><img src="imgs/12_06.png" style="width: 100px; height: 100px;"></td>
130130
<td>

0 commit comments

Comments
 (0)