summaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorwout <wout@impinc.co.uk>2012-12-21 17:29:35 +0100
committerwout <wout@impinc.co.uk>2012-12-21 17:29:35 +0100
commite0422f8b0d5a10b01d599963230c094cce1fa47a (patch)
tree7962ad666889290c0e4b3dc7bd507d5be0d9ff30 /README.md
parent5e4f748abffe48305e3d112e683d71cbec5155b3 (diff)
downloadsvg.js-e0422f8b0d5a10b01d599963230c094cce1fa47a.tar.gz
svg.js-e0422f8b0d5a10b01d599963230c094cce1fa47a.zip
Typo in readme
Diffstat (limited to 'README.md')
-rw-r--r--README.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/README.md b/README.md
index e3a7caa..a238810 100644
--- a/README.md
+++ b/README.md
@@ -104,7 +104,7 @@ var text = draw.text({
```
Styling text can be done using the 'attr()':
```javascript
-text.font({
+text.attr({
'font-family': 'Helvetica',
'font-size': 36,
'text-anchor': 'middle',
@@ -121,7 +121,7 @@ text.attr('text');
```
The sugar.js module provides some syntax sugar specifically for this element type:
```javascript
-text.attr({
+text.font({
family: 'Helvetica',
size: 144,
anchor: 'middle',