Ticket #9164: osd_new_font_stretch-r27060.patch

File osd_new_font_stretch-r27060.patch, 634 bytes (added by gregorio.gervasio@…, 9 years ago)

reload subtitle font if font stretch factor changes

  • libs/libmythtv/subtitlescreen.cpp

    diff --git a/libs/libmythtv/subtitlescreen.cpp b/libs/libmythtv/subtitlescreen.cpp
    index 8ff08de..5cf4cad 100644
    a b bool SubtitleScreen::InitialiseFont(int fontStretch) 
    11041104    QString font = gCoreContext->GetSetting("OSDSubFont", "FreeSans");
    11051105    if (initialised)
    11061106    {
    1107         if (gTextSubFont->face().family() == font)
    1108             return gTextSubFont;
     1107        if (gTextSubFont->face().family() == font &&
     1108            gTextSubFont->face().stretch() == fontStretch)
     1109            return true;
    11091110        delete gTextSubFont;
    11101111    }
    11111112