This commit is contained in:
Vadim Namniak
2015-01-25 14:42:25 -05:00
parent 1bf607390f
commit 8aebf438a9
7 changed files with 416 additions and 341 deletions
+47 -36
View File
@@ -1,36 +1,47 @@
(function() {
window.optionsArr = [
{
font: 'bold 55px Open Sans, sans-serif'
},
{
font: 'normal 40px Impact, Charcoal, sans-serif',
textAlign: 'center',
paddingY: 10,
lineBreak: 'word'
},
{
font: 'bold 55px Open Sans, sans-serif',
textAlign: 'right',
verticalAlign: 'bottom',
paddingX: 30
},
{
font: 'bold 35px Verdana, Geneva, sans-serif',
textAlign: 'center',
verticalAlign: 'middle'
},
{
textAlign: 'center',
verticalAlign: 'middle',
sizeToFill: true
},
{
font: 'bold 50px Tahoma, Geneva, sans-serif',
textAlign: 'right',
paddingX: 25,
paddingY: 25,
strokeText: true
},
];
})();
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%'
}
];