From 020d1dee525ff9e94b8f1b5113ee5e3f59100eab Mon Sep 17 00:00:00 2001 From: Vadim Namniak Date: Sun, 25 Jan 2015 15:22:28 -0500 Subject: [PATCH] Update README.md --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 469917c..d9e7539 100644 --- a/README.md +++ b/README.md @@ -9,13 +9,13 @@ new CanvasTextWrapper(HTMLCanvasElement, String [, options]); ```options``` - is an object with the following available properties and values: - ```font:``` (String) - text style that includes font size in px, font weight, font family, etc. Similar to CSS font shorthand property -- ```lineHeight:``` (String or Number)- Number means n times font size where 1 is equivalent to '100%'. Also the property can be set in "%" or "px" using String. -- ```textAlign: "left" | "center" | "right"``` - horizontal alignment of each line -- ```verticalAlign: "top" | "middle" | "bottom"``` - vertical alignment of the whole text block +- ```lineHeight:``` (String or Number) - Number means n times font size where 1 is equivalent to '100%'. Also the property can be set in "%" or "px" using String +- ```textAlign```: ```"left"``` | ```"center"``` | ```"right"``` - horizontal alignment of each line +- ```verticalAlign```: ```"top"``` | ```"middle"``` | ```"bottom"``` - vertical alignment of the whole text block - ```paddingX:``` (Number) - horizontal padding (in px) set equally on both, left and right sides - ```paddingY:``` (Number) - vertical padding (in px) set equally on both, top and bottom sides - ```fitParent:``` (Boolean) - if enabled, text will fit canvas container's width instead of canvas own width -- ```lineBreak: "auto" | "word"``` - text split rule. When using ```"auto"```, text goes to a next line on a whole word when there's no more room. If ```"word"``` is set as value, each next word will be placed on a new line. +- ```lineBreak```: ```"auto"``` | ```"word"``` - text split rule. When using ```"auto"```, text goes to a next line on a whole word when there's no more room. If ```"word"``` is set as value, each next word will be placed on a new line. - ```sizeToFill:``` (Boolean) - ignore given font size and line height and resize text to fill its padded container - ```strokeText:``` (Boolean) - outline text based on context configuration - ```justifyLines:``` (Boolean) - if enabled, all lines match the same width with flexed spaces between words (one-word lines are ignored).