From: wout Date: Fri, 21 Dec 2012 16:29:35 +0000 (+0100) Subject: Typo in readme X-Git-Tag: 0.1~2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=e0422f8b0d5a10b01d599963230c094cce1fa47a;p=svg.js.git Typo in readme --- 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',