[mythtv] Color Text in the OSD

Isaac Richards ijr at po.cwru.edu
Mon Sep 22 15:10:46 EDT 2003


On Monday 22 September 2003 05:30 am, Daniel Williams wrote:
> Hi All,
>
> I'm looking at trying to implement Color Text in the On Screen display,
> but have no idea of how to convert the PixMap generated by Freetype, to
> be colorised to the colors needed.
>
> The reason I am wanting to do this, is for TeleText Subtitles, they are
> in up to 6 different colors, which aids Deaf People in knowing who said
> what. (What happens with US Closed Captions????).
>
> I'm sure that people would like to be able to display other colors on
> screen, rather than just plain white text.
>
> The system currently decodes the color needed, but doesn't pass it down
> the line when actually displaying to screen, due to freetypes grayscale
> rendering.
>
> Any hints would be appreciated as to how to convert the PixMap, as my
> C++ Skills are not the best, and my graphics / rendering skills are non
> existant.

All the font drawing code is in libs/libmythtv/ttfont.cpp, the merge_text() 
function.  That would have to be modifed to do color, mainly, and align the 
text properly so it doesn't look blocky with color.

Isaac


More information about the mythtv-dev mailing list