Uniscribe under .net 2.0

Hi;

We have a library that is at present 100% managed code. However, we need to get the runs in bi-di (Hebrew/Arabic) text. (Long explanation as to why.)

Uniscribe seems like the best way to do this. Is there a .net equivilent of uniscribe or do we have to become 98% managed code I hate to do this because less than 100% is a security "opportunity."

thanks - dave


Answer this question

Uniscribe under .net 2.0

  • Simeão

    You can either use GDI+ to render, or if you want Uniscribe to do it you can use the new methods under the TextRenderer class (see this blog post for more details).

    Note that neither will give you the full control that Uniscribe does over the process, but both handle Hebrew and Arabic text quite well.


  • sibemolll

    Hi;

     What we need is just the runs of text in each direction, no rendering. So it looks like we are stuck with Uniscribe.

    thanks - dave



  • jmcauliffe0257

    Don't feel too bad about the 98%, Dave. There would be a whole lot of unmanaged code under any managed wrapper that existed. Perhaps your wrapper will even better than ours would have been. :-)
  • Uniscribe under .net 2.0