Permalink
Browse files

Reset the CEA-708 font stretch property when re-initialised.

  • Loading branch information...
1 parent 77d419b commit 399c1bcd31d6ebf4873bf722d235b2789b4f8be8 Mark Kendall committed Feb 1, 2011
Showing with 6 additions and 4 deletions.
  1. +6 −4 mythtv/libs/libmythtv/subtitlescreen.cpp
@@ -952,13 +952,14 @@ bool SubtitleScreen::Initialise708Fonts(int fontStretch)
{
static bool initialised = false;
if (initialised)
+ {
+ foreach(MythFontProperties* font, gCC708Fonts)
+ font->face().setStretch(fontStretch);
return true;
-
- initialised = true;
+ }
VERBOSE(VB_IMPORTANT, "Initialise708Fonts()");
- // TODO remove extra fonts from settings page
QStringList fonts;
fonts.append("Droid Sans Mono"); // default
fonts.append("FreeMono"); // mono serif
@@ -983,8 +984,9 @@ bool SubtitleScreen::Initialise708Fonts(int fontStretch)
count++;
}
}
+ initialised = count > 0;
VERBOSE(VB_PLAYBACK, LOC + QString("Loaded %1 CEA-708 fonts").arg(count));
- return true;
+ return initialised;
}
MythFontProperties* SubtitleScreen::Get708Font(CC708CharacterAttribute attr)

0 comments on commit 399c1bc

Please sign in to comment.