promo extended frame mask + vertical apostrophe spacing

This commit is contained in:
Kyle
2021-05-26 08:22:46 -07:00
parent 094440caa4
commit 7558b5cd8a
4 changed files with 16 additions and 2 deletions

View File

@@ -650,7 +650,13 @@ function writeText(textObject, targetContext) {
newSplitText.push(`{down${scaleHeight(0.01)}}`);
} else {
item.split('').forEach(char => {
newSplitText.push(char, '{lns}');
if (char == '') {
console.log(char);
newSplitText.push(`{right${startingTextSize * 0.6}}`, '', '{lns}', `{up${startingTextSize * 0.75}}`);
console.log(newSplitText);
} else {
newSplitText.push(char, '{lns}');
}
});
// newSplitText = newSplitText.concat(item.split(''));
}

View File

@@ -1,5 +1,5 @@
//Create objects for common properties across available frames
var masks = [{src:'/img/frames/promo/m15PromoMaskPinline.png', name:'Pinline'}, {src:'/img/frames/m15/regular/m15MaskTitle.png', name:'Title'}, {src:'/img/frames/promo/m15PromoMaskType.png', name:'Type'}, {src:'/img/frames/promo/m15PromoMaskRules.png', name:'Rules'}, {src:'/img/frames/m15/regular/m15MaskBorder.png', name:'Border'}];
var masks = [{src:'/img/frames/promo/m15PromoMaskPinline.png', name:'Pinline'}, {src:'/img/frames/m15/regular/m15MaskTitle.png', name:'Title'}, {src:'/img/frames/promo/m15PromoMaskType.png', name:'Type'}, {src:'/img/frames/promo/extended/frame.svg', name:'Frame'}, {src:'/img/frames/promo/m15PromoMaskRules.png', name:'Rules'}, {src:'/img/frames/m15/regular/m15MaskBorder.png', name:'Border'}];
var bounds = {x:0.7573, y:0.8848, width:0.188, height:0.0733};
//defines available frames
availableFrames = [