1
0
mirror of https://github.com/VDR4Arch/vdr.git synced 2023-10-10 13:36:52 +02:00

Fixed checking for UTF-8 support in cFont::Bidi()

This commit is contained in:
Klaus Schmidinger 2012-05-19 10:20:16 +02:00
parent c1ddc63fda
commit 1378f599c2
3 changed files with 5 additions and 3 deletions

View File

@ -2860,6 +2860,7 @@ Torsten Lang <info@torstenlang.de>
of EPG data from BSkyB's "MTV MUSIC" of EPG data from BSkyB's "MTV MUSIC"
for suggesting to make BIDI support check at runtime whether the system runs with for suggesting to make BIDI support check at runtime whether the system runs with
UTF-8 UTF-8
for reporting a bug in checking for UTF-8 support in cFont::Bidi()
Christian Ruppert <idl0r@gentoo.org> Christian Ruppert <idl0r@gentoo.org>
for some improvements to the Makefiles for some improvements to the Makefiles

View File

@ -7052,7 +7052,7 @@ Video Disk Recorder Revision History
- Fixed handling IDLEPRIORITY in cDvbDevice::ProvidesChannel() (thanks to Frank - Fixed handling IDLEPRIORITY in cDvbDevice::ProvidesChannel() (thanks to Frank
Schmirler). Schmirler).
2012-05-17: Version 1.7.28 2012-05-19: Version 1.7.28
- Fixed cPixmapMemory::DrawEllipse() for quadrants -1 and -4. - Fixed cPixmapMemory::DrawEllipse() for quadrants -1 and -4.
- Fixed getting the maximum short channel name length in case there are no short names - Fixed getting the maximum short channel name length in case there are no short names
@ -7111,3 +7111,4 @@ Video Disk Recorder Revision History
- The DrawText() functions of the OSD now accept the new alignment flag taBorder, - The DrawText() functions of the OSD now accept the new alignment flag taBorder,
which triggers keeping a proper distance from the edge that taLeft or taRight which triggers keeping a proper distance from the edge that taLeft or taRight
aligns to. aligns to.
- Fixed checking for UTF-8 support in cFont::Bidi() (reported by Torsten Lang).

4
font.c
View File

@ -6,7 +6,7 @@
* *
* BiDi support by Osama Alrawab <alrawab@hotmail.com> @2008 Tripoli-Libya. * BiDi support by Osama Alrawab <alrawab@hotmail.com> @2008 Tripoli-Libya.
* *
* $Id: font.c 2.10 2012/03/02 10:47:45 kls Exp $ * $Id: font.c 2.11 2012/05/19 10:15:18 kls Exp $
*/ */
#include "font.h" #include "font.h"
@ -508,7 +508,7 @@ cString cFont::GetFontFileName(const char *FontName)
#ifdef BIDI #ifdef BIDI
cString cFont::Bidi(const char *Ltr) cString cFont::Bidi(const char *Ltr)
{ {
if (cCharSetConv::SystemCharacterTable()) { // bidi requires UTF-8 if (!cCharSetConv::SystemCharacterTable()) { // bidi requires UTF-8
fribidi_set_mirroring(true); fribidi_set_mirroring(true);
fribidi_set_reorder_nsm(false); fribidi_set_reorder_nsm(false);
FriBidiCharSet fribidiCharset = FRIBIDI_CHAR_SET_UTF8; FriBidiCharSet fribidiCharset = FRIBIDI_CHAR_SET_UTF8;