[mythtv] [PATCH] OSD TT Font

Andrew Mahone andrew.mahone at gmail.com
Wed Jul 7 23:10:52 EDT 2004


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... :-/

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 ;-)

On Tue, 6 Jul 2004 16:35:36 +0200, Kenneth Aafløy
<lists at kenneth.aafloy.net> wrote:
> Hi!
> 
> Here is some changes for the OSD TTFont class. I've moved the shadow drawing
> to before outline, so the shadow is underneath everything else. And I have
> also added methods for specifying colors for the font itself, outline and
> shadow. I kept the original interface almost identical, so you will not see
> much change for the OSD as is, but I need this functionality for a new
> OSDType, that I will submit sometime in the near future.
> 
> There is a minor problem with drawing the color of the fonts, in that there
> will be some distortion by grey color values sneaking in here and there, but
> since no current OSDType is using the color interface, I can see no harm in
> commiting this. I belive that this is caused by the blendcolor function in
> blend.c, but I have not been able to correct this myself, if someone could
> take a look at this, it would be greatly appreciated.
> 
> Kenneth
> 
> 
> 


-- 

Andrew Mahone
andrew DOT mahone AT gmail DOT com


More information about the mythtv-dev mailing list