X-Git-Url: http://code.vuplus.com/gitweb/?p=vuplus_dvbapp;a=blobdiff_plain;f=lib%2Fgdi%2Ffont.cpp;h=9e175476688d31c9a9308a63ed3d58bec7bd9b37;hp=3b5ca946b30ae6bc0d21d124e9415119f7260625;hb=d6dd733f6a7ade7f07b0721e576d66e56cf8b563;hpb=6d3b397a9316337447f2ebfcd66c01abec54b4e8 diff --git a/lib/gdi/font.cpp b/lib/gdi/font.cpp index 3b5ca94..9e17547 100644 --- a/lib/gdi/font.cpp +++ b/lib/gdi/font.cpp @@ -27,12 +27,7 @@ #include #include -#define HAVE_FRIBIDI -// until we have it in the cdk - -#ifdef HAVE_FRIBIDI #include -#endif #include @@ -568,7 +563,6 @@ int eTextPara::renderString(const char *string, int rflags) // now do the usual logical->visual reordering int size=uc_shape.size(); -#ifdef HAVE_FRIBIDI FriBidiCharType dir=FRIBIDI_TYPE_ON; uc_visual.resize(size); // gaaanz lahm, aber anders geht das leider nicht, sorry. @@ -576,9 +570,6 @@ int eTextPara::renderString(const char *string, int rflags) std::copy(uc_shape.begin(), uc_shape.end(), array); fribidi_log2vis(array, size, &dir, target, 0, 0, 0); uc_visual.assign(target, target+size); -#else - uc_visual=uc_shape; -#endif glyphs.reserve(size); @@ -672,13 +663,11 @@ nprint: isprintable=0; } bboxValid=false; calc_bbox(); -#ifdef HAVE_FRIBIDI if (dir & FRIBIDI_MASK_RTL) { realign(dirRight); doTopBottomReordering=true; } -#endif if (charCount) {