fixed font height bq

This commit is contained in:
Thijs Wenker 2014-12-05 01:07:49 +01:00
parent a7185738e9
commit c0ba9e73c2

View file

@ -85,9 +85,9 @@ function updateTextOverlay() {
}
}
var suggestedFontSize = (windowDimensions.x / maxLineWidth) * textFontSize * 0.90;
var maxFontSize = 240 / textLines.length;
var maxFontSize = 190 / textLines.length;
textFontSize = (suggestedFontSize > maxFontSize) ? maxFontSize : suggestedFontSize;
var topMargin = (250 - (textFontSize * textLines.length)) / 2;
var topMargin = (250 - (textFontSize * textLines.length)) / 4;
Overlays.editOverlay(text, {text: textText, font: {size: textFontSize}, topMargin: topMargin});
var maxLineWidth = 0;
for (textLine in textLines) {