From 7e3d425769020470e9b77a0fbabffd380726eebd Mon Sep 17 00:00:00 2001 From: Vadim Namniak Date: Sun, 12 Oct 2014 01:57:56 -0400 Subject: [PATCH] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index f8674c9..9a5a8f0 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ new CanvasTextWrapper(HTMLCanvasElement, String [, options]); - ```fitParent: Boolean``` - parameter that controls which element to fit where ```true``` means fit canvas parent's width instead of canvas own width - ```lineBreak: "auto" | "word"``` - text split rule. When using ```"auto"```, text fills the element's width going to a new line on a whole word when no more space. If ```"word"``` is set as value, each next word will be placed on a new line. - ```sizeToFill: Boolean``` - ignore given font size and resize text to fill its padded container -- ```strokeText: Boolean``` - Cause text to be outlined according to context configuration +- ```strokeText: Boolean``` - add text outline based on context configuration (make sure it doesn't contradict with other context settings such as globalCompositeOperation, etc) NOTE: if a single word is too long to fit the width with specified font size, it will be broken into as many lines as required on any letter of the word unless ```sizeToFill``` option is used.