Ticket #2547: visibility_improvements_for_text_subtitle_fonts.patch

File visibility_improvements_for_text_subtitle_fonts.patch, 1.5 KB (added by visit0r, 18 years ago)
  • libs/libmythtv/osd.cpp

    old new  
    352352
    353353    QString name = "text_subtitles";
    354354
    355 
    356355    // I couldn't get the space using the LineSpacing accurately
    357356    // (getting it through (SUBTITLE_LINE_SPACING - 1)*H resulted
    358357    // in too small space. Just hard code it, it should work as
     
    369368    TTFFont *font = GetFont(fontname);
    370369    if (!font)
    371370    {
    372         font = LoadFont(gContext->GetSetting("OSDCCFont"), SUBTITLE_FONT_SIZE);
     371        font = LoadFont("FreeSans-Bold.ttf", SUBTITLE_FONT_SIZE);
    373372
    374373        if (font)
    375374        {
    376375            // set outline so we can see the font in white background video
    377376            font->setOutline(true);
     377            font->setColor(Qt::black, kTTF_Outline);
     378            font->setShadow(3,1);
    378379            fontMap[fontname] = font;
    379380        }
    380381        else
  • themes/themes.pro

    old new  
    1212themes.files = blue defaultosd blueosd oldosd default default-wide G.A.N.T. classic DVR
    1313
    1414fonts.path = $${PREFIX}/share/mythtv
    15 fonts.files = FreeSans.ttf FreeMono.ttf
     15fonts.files = FreeSans.ttf FreeSans-Bold.ttf FreeMono.ttf
    1616
    1717INSTALLS += themes fonts
    1818