mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-13 05:37:18 +02:00
fixed font height bq
This commit is contained in:
parent
a7185738e9
commit
c0ba9e73c2
1 changed files with 2 additions and 2 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue