Skip to content
Browse files

Update the subtitle font if the fontstretch has changed.

A similar fix is needed for Initialise708Fonts.
  • Loading branch information...
1 parent 4859032 commit 77d419b1dee24ba16cbfdccc4ac0d766e823f252 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
@@ -921,8 +921,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 77d419b

Please sign in to comment.
Something went wrong with that request. Please try again.