Files
CanvasTextWrapper/js/options.js
T
Vadim Namniak 8aebf438a9 v 0.3.0
2015-01-25 14:42:25 -05:00

47 lines
1.2 KiB
JavaScript

var optionsArr = [
{
txt: 'Break text on every next word',
font: 'bold 25px Arial, sans-serif',
textAlign: 'center',
lineBreak: 'word',
lineHeight: 1.6
},
{
txt: 'Center text block horizontally and vertically',
font: 'bold 35px Verdana, Geneva, sans-serif',
textAlign: 'center',
verticalAlign: 'middle'
},
{
txt: 'Resize text automatically to fill its padded container. Given "font" and "lineHeight" properties are ignored',
textAlign: 'center',
verticalAlign: 'middle',
sizeToFill: true,
paddingX: 10,
paddingY: 30
},
{
txt: 'Justify text lines takes effect only with "auto" break line. One-word lines are skipped',
font: 'bold 40px Arial, Geneva, sans-serif',
paddingX: 20,
paddingY: 20,
verticalAlign: 'middle',
textAlign: 'center',
justifyLines: true
},
{
txt: 'Apply text stroke is based on context settings',
font: 'bold 40px Tahoma, Geneva, sans-serif',
textAlign: 'right',
paddingX: 25,
strokeText: true,
lineHeight: '60px'
},
{
txt: 'Use\n new line character "\\n"\n to break lines\nwhere needed',
font: 'bold 30px Tahoma, Geneva, sans-serif',
verticalAlign: 'bottom',
allowNewLine: true,
lineHeight: '200%'
}
];