You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In function getRealFontSize you are creating an em-block (<div>M</div>) and measuring it's height to get a scaling factor. However the height of that block is affected by the CSS line-height property. In our application we set line-height to 1.5 and so all the subtitles appear smaller than they should be.
We have made a workaround by setting line-height to 1.2 in the container element. We think however that this is better done inside the ASS-fix-font-size class in your code.
The text was updated successfully, but these errors were encountered:
@weizhenye Thanks for addressing this! You're right, line-height: normal is the correct approach.
But the problem is not completely solved: the lines of the subtitles themselves are displayed with the wrong line height. Could you also add line-height: normal to the subtitles themselves?
In function
getRealFontSize
you are creating an em-block (<div>M</div>
) and measuring it's height to get a scaling factor. However the height of that block is affected by the CSSline-height
property. In our application we setline-height
to 1.5 and so all the subtitles appear smaller than they should be.We have made a workaround by setting
line-height
to 1.2 in the container element. We think however that this is better done inside theASS-fix-font-size
class in your code.The text was updated successfully, but these errors were encountered: