algorithm to shorten a string

2001-02-04 Thread Mike Lischke
Hi all, does anybody have a description of an algorithm to shorten a Unicode string to a particular width? What I want is to implement the DT_END_ELLIPSIS functionality of the DrawTextW Windows API also for Win9x and Linux. The implementation I have so far works quite well except that it

Re: algorithm to shorten a string

2001-02-04 Thread Roozbeh Pournader
On Sun, 4 Feb 2001, Mike Lischke wrote: Additionally, where are the usual three points to be drawn for right-to-left strings, on the left of the string or still on the right? On the left. --r