[mythtv] OSD RTL languages patch
danielk at cuymedia.net
Sun Nov 18 17:56:45 UTC 2007
On Sun, 2007-11-18 at 19:40 +0200, Ahmed Toulan wrote:
> Hi All,
> I attached a patch to correct the viewing of OSD text for RTL
> languages. It uses fribidi lib.
> This should work for Hebrew and Persian using the stable released
> fribidi library, just make sure you choose a font that supports these
> Arabic language needs the fribidi2 module from cvs, so as to get
> correct shaping and joining. The configure script still doesn't handle
> this, but if there's a tendency to accept this, I will gladly fix it.
> I just wanted to get an early opinion about it.
> The patch is for mythtv.0.21
> This is part of the Heliocreek front port by OpenCraft company.
The patch needs to be against head. There is limited RTL support for
OSD text in head, it should be used when the fribidi2 library isn't
available, and disabled when it is (see ConvertFromRtoL in OSDTypeText).
Also, is DrawString the best place for this? I think it would make
sense to do the conversion earlier when the text is set, DrawText()
itself should run as quickly as possible.
More information about the mythtv-dev