Skip to content

Commit 40239a8

Browse files
authored
pixelsize, not fontsize
1 parent e3cd6e0 commit 40239a8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ img, metric = renderface(face, 'C')
1818

1919
# render a string into an existing matrix
2020
myarray = zeros(UInt8, 100, 100)
21-
fontsize = 10
21+
pixelsize = 10
2222
x0, y0 = 90, 10
23-
renderstring!(myarray, "hello", face, fontsize, x0, y0, halign=:hright)
23+
renderstring!(myarray, "hello", face, pixelsize, x0, y0, halign=:hright)
2424
```
2525

2626
credits to @aaalexandrov from whom most of the early code comes.

0 commit comments

Comments
 (0)