[mythtv] Re: Yet more on Teletext

Michael Greb mikegrb at yahoo.com
Sat Jul 26 15:38:23 EDT 2003


Martin Moeller said:
> Thanks :)
>
> I have found that changing fontsize in SetDefaults in osd.cpp gives me
> the setup I wanted (but whether it fits Isaacs line of though will have
> to be seen).
>
> The value 480 is frequently used as is 640 and my 'good' show was
> recorded as 480x480, so I decided to try this:
>
> martin at monsterpc:~/mythtv/mythtv/libs/libmythtv> cvs diff -u osd.cpp
> Index: osd.cpp
> ===================================================================
> RCS file: /var/lib/mythcvs/mythtv/libs/libmythtv/osd.cpp,v
> retrieving revision 1.69
> diff -u -r1.69 osd.cpp
> --- osd.cpp     23 Jul 2003 19:58:27 -0000      1.69
> +++ osd.cpp     26 Jul 2003 17:40:52 -0000
> @@ -101,7 +101,8 @@
>      if (!ccfont)
>      {
>          QString name = "cc_font";
> -        int fontsize = vid_height / 27;
> +//        int fontsize = vid_height / 27;
> +        int fontsize = 480 / 27;
>          fontsize = (int)(fontsize * hmult);
>
>          ccfont = LoadFont(ccfontname, fontsize);
>
> ... And it works for me. I haven't seen any ill effects on any other OSD
> fonts from doing this. It would seem to me that this is as it should be
> and most people haven't noticed since they record at higher (i.e. about
> 480) resolutions than I usually do.
>
> If you feel brave Michael, do you care to try out the above change and
> see if the fonts are now always the same size?

This looks like it should work just right.  From the code in the patch it
looks like this will only affect CC/Teletext.  I will try out this change
later this afternoon... wife want's to watch a movie right now.

> /Martin.
> --
> Martin Moeller <martin at martinm-76.dk>

Michael


More information about the mythtv-dev mailing list