[mythtv] [PATCH] OSD TT Font

Kenneth Aafl°y lists at kenneth.aafloy.net
Thu Jul 8 11:21:12 EDT 2004


On Thursday 08 July 2004 05:10, Andrew Mahone wrote:
> Kenneth,
>
> Just a thought, but have you tried drawing your text, outline, and
> shadow onto a YUV/A surface, and using blendregion?  I think that may
> be the best way to do what you're doing.  As far as the grey around
> the edges goes, I'm not really sure what's happening there - I didn't
> do a lot of testing with colored text, I pretty much dropped all of
> the blend functions into place and tried them in mythtv once I'd
> stomped all of the blatant bugs in them, and mythtv doesn't use
> colored text, sooooooo... :-/

The freetype2 library can't render anything else than a greyscale bitmap, so 
it is the applications responsibility to color this image. So either make a 
new coloring function, that paints into a temp surface, and use blendregion, 
as you suggest above. Or just look at fixing the blendcolor function, so that 
it's capable of blending and coloring the greyscale surface into the osd 
surface in one go, hmm?

> BTW, any idea if theming the CC text is also a possibility?  I'd love
> to see CC text drawn outlined, w/o a background - look at how tvtime
> does it for an idea of what I'm talking about ;-)

I plan on merging the existing CC and my teletext stuff, as it's very similar 
in nature. Offcourse theming it would be fun, and should be very easy 
actually. For now, you can specify the 'theme data' in osd.cpp's 
OSD::SetDefaults.

Would it be possible for you to make a sample of nuppelvideo with CC data in 
it, so I have something to test the merge with?

Kenneth


More information about the mythtv-dev mailing list