[mythtv] font char width on some osd lines

Michael T. Dean mtdean at thirdcontact.com
Wed Apr 23 06:03:06 UTC 2008


On 04/22/2008 11:20 PM, Mark Spieth wrote:
>> They seem to scale with differring video resolutions.
>>
>> It must be the width calc on bold/italics fonts. is this handled by QT or 
>> is
>> it part of the fonts themselves. I assume the render of the font is in QT
>> and not in any myth lib.
>>     

Actually, for the OSD fonts (and only OSD fonts), Myth is using 
freetype2 directly.  See libs/libmythtv/ttfont.{h,cpp} .  Oh, it (and, 
especially, the OSD code) is a bit of a mess.

> I suspect it has something to do with wscale in osd.cpp. Ive instrumented 
> ::Init and will see tonight if I can see anything.

Note, also, that the (eventual) plan is to change the OSD to use 
mythui.  When that's done, it's quite likely that the bug will be thrown 
out with the rest of the current OSD code.  Therefore, if you can get 
the workaround to work sufficiently well, ...

If you're interested in working on the mythui conversion, Daniel K. and 
Stuart Morgan would probably be the best sources of information about 
the OSD and mythui, respectively.

Mike


More information about the mythtv-dev mailing list