Skip to content

Commit

Permalink
Update the subtitle font if the fontstretch has changed.
Browse files Browse the repository at this point in the history
A similar fix is needed for Initialise708Fonts.
(cherry picked from commit 77d419b)
  • Loading branch information
Mark Kendall committed Feb 1, 2011
1 parent ae20c48 commit 1e8e703
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions mythtv/libs/libmythtv/subtitlescreen.cpp
Expand Up @@ -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;
}

Expand Down

0 comments on commit 1e8e703

Please sign in to comment.