On Sun, 11 Feb 2001, Tomas Frydrych wrote:

 Hello Tomas, 

 Just curious, could you please explain a bit what is the problem with
overstriking characters in Unix version of AW? Of course I'm not objecting to
anything - I just didn't notice any problem.

 Thanks.

> 
> The Unix version of AW does not handle overstriking characters 
> correctly, it treats them like normal characters (this might be a 
> problem on other platforms too, although not on Windows, since 
> the Win ttf engine handles this).
> 
> We could create a lookup table along the lines
> 
> struct {
>     UT_UCSChar lower_indx;
>     UT_UCSChar upper_indx;
> } lut_entry;
> 
> lut_entry LUT [] {{0x0590, 0x05c4}, ...};
> 
> where the lower_indx and upper_indx would mark out contigous 
> blocks of overstriking characters. We could then use binary search 
> to test if a UCS-2 value represents an overstriking character and if 
> so, we would take necessary steps in adjusting the width. This 
> would work for both screen and the PS printing, since we output 
> characters one by one in both cases.
> 
> Anyone has got a better idea how to handle this?
> 
> Tomas
> 
> *********************************************
> [EMAIL PROTECTED] / www.frydrych.net
> PGP keys:  http://www.frydrych.net/contact.html
> 

 Best regards,
  -Vlad


Reply via email to