Re: overstriking characters


Subject: Re: overstriking characters
From: Vlad Harchev (hvv@hippo.ru)
Date: Mon Feb 12 2001 - 05:08:03 CST


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
>
> *********************************************
> tomas@frydrych.net / www.frydrych.net
> PGP keys: http://www.frydrych.net/contact.html
>

 Best regards,
  -Vlad



This archive was generated by hypermail 2b25 : Mon Feb 12 2001 - 06:04:18 CST