From e0422f8b0d5a10b01d599963230c094cce1fa47a Mon Sep 17 00:00:00 2001 From: wout Date: Fri, 21 Dec 2012 17:29:35 +0100 Subject: [PATCH] Typo in readme --- README.md | 4 ++-- 1 file 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', -- 2.39.5