[mythtv] font char width on some osd lines

Mark Spieth mark at digivation.com.au
Thu Apr 24 00:01:15 UTC 2008


>i have had this probelm for so long that at this stage it doesn't even
>bother me any more
>danial seems to think it is something to do with DisplaySize in
>xorg.conf. i'm not so sure.
>it is has been reported at least twice; see #3970 and #4044
>
>if you remove the font definition from the xml file then the problem
>goes away.
>why it works for some fonts and not others is beyond my simple little 
>brain.

can you try the following and see if its better. I suspect it is but each 
test cycle takes a bit of time

I know its not perfect but I think its better. havent tested it with 
retro-osd yet but it did better things in gray-osd (I think I currently use 
that one on my BE)

cheers
mark

--- ttfont.cpp  (revision 17131)
+++ ttfont.cpp  (working copy)
@@ -629,9 +629,9 @@
    }

    loadedfontsize = (int)(fontsize * m_hmult);
-   xdpi = (int)(xdpi * m_wscale);
+   //xdpi = (int)(xdpi * m_wscale);

-   FT_Set_Char_Size(face, 0, loadedfontsize * 64, xdpi, ydpi);
+   FT_Set_Char_Size(face, fontsize * m_hmult * 64 * m_wscale, fontsize * 
m_hmult * 64, xdpi, ydpi);

    n = face->num_charmaps;

.



More information about the mythtv-dev mailing list