Browse files

Update the subtitle font if the fontstretch has changed.

A similar fix is needed for Initialise708Fonts.
(cherry picked from commit 77d419b)
  • Loading branch information...
1 parent ae20c48 commit 1e8e703c0accbd710f22603a6b7d8ba182863170 Mark Kendall committed Feb 1, 2011
Showing with 5 additions and 2 deletions.
  1. +5 −2 mythtv/libs/libmythtv/subtitlescreen.cpp
View
7 mythtv/libs/libmythtv/subtitlescreen.cpp
@@ -920,8 +920,11 @@ bool SubtitleScreen::InitialiseFont(int fontStretch)
QString font = gCoreContext->GetSetting("OSDSubFont", "FreeSans");
if (initialised)
{
- if (gTextSubFont->face().family() == font)
- return gTextSubFont;
+ if (gTextSubFont->face().family() == font &&
+ gTextSubFont->face().stretch() == fontStretch)
+ {
+ return true;
+ }
delete gTextSubFont;
}

0 comments on commit 1e8e703

Please sign in to comment.