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.
  • Loading branch information
Mark Kendall committed Feb 1, 2011
1 parent 4859032 commit 77d419b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions mythtv/libs/libmythtv/subtitlescreen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 77d419b

Please sign in to comment.