Skip to content

Commit e79d858

Browse files
committed
[SubtitleDisplay]
* fix font size
1 parent ee451c7 commit e79d858

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/python/Screens/SubtitleDisplay.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ def __layoutFinished(self):
1717
widgetInstance = self["subtitles"].instance
1818
fontStyle = subtitleFonts.get("Subtitle_Regular", {})
1919
fontSize = int(config.subtitles.subtitle_fontsize.value)
20-
fontFace = fontStyle.get("font", f"Regular;{fontSize * getSkinFactor()}")
21-
font = parseFont(fontFace)
20+
fontFace = fontStyle.get("font", "Regular").split(";")[0]
21+
font = parseFont(f"{fontFace};{fontSize * getSkinFactor()}")
2222
widgetInstance.setFont(font)
2323
widgetInstance.setZPosition(1)
2424
widgetInstance.setWrap(0)

0 commit comments

Comments
 (0)