Re: overstriking characters


Subject: Re: overstriking characters
From: Martin Sevior (msevior@mccubbin.ph.unimelb.edu.au)
Date: Sun Feb 11 2001 - 16:11:08 CST


On Sun, 11 Feb 2001, Tomas Frydrych wrote:

>
> 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?
>

This sounds a bit like what Pango does. I don't know if it has a better
way of doing it but it might be worthwhile to look.

Cheers

Martin



This archive was generated by hypermail 2b25 : Sun Feb 11 2001 - 16:11:15 CST