[PATCH] fixes for printing with symbol fonts for gtk port


Subject: [PATCH] fixes for printing with symbol fonts for gtk port
From: Vlad Harchev (hvv@hippo.ru)
Date: Mon Feb 19 2001 - 07:12:17 CST


 Hi,

 After playing with printing today, I realized that gtk port of AW was unable
to print lists (under any locale, including en-US). Just try to print any
list, with triangles as item marks, or even plain unnumbered list ("bullets"
as markers) with zero interval between the mark and the text - different
symbols will be in the .ps file and the markers will be drawn under the texts
(since AW thinks that they are 0-points wide).
 It turned out that s050000l.u2g and d050000l.u2g files that are present in
'unixfonts' module are guilty. AW doesn't use unicode value for drawing list
items - it uses index of the character in the fonts (i.e. values < 256). Here
are the corrected versions of these files that will allow to use symbol fonts.
In these files, the 2nd value on each line is not unicode value of the symbol
any more, but the index of that character in the font (this is the only way to
make symbol printing working for chars > 127).

 Also I've attached a patch that makes printing with symbol fonts possible for
non-latin1 single-byte locales - please apply it.

 So, the attached two u2g files should be placed in the module 'unixfonts'.

 I wonder why nobody noticed this (perhaps everybody uses unnumbered lists
with default mark)..

 Best regards,
  -Vlad






This archive was generated by hypermail 2b25 : Mon Feb 19 2001 - 07:47:24 CST