freefont-bugs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Freefont-bugs] Off-by-one error in glyph positioning?


From: Josef W. Segur
Subject: Re: [Freefont-bugs] Off-by-one error in glyph positioning?
Date: Thu, 25 Apr 2002 23:24:40 -0400

On Mon, 8 Apr 2002 19:05:00 +0200 (METDST) Primoz wrote:

>Hello everyone,

>Greg Lyons recently brought to my attention that font files s exhibit an
>off-by-one (and gradually off-by-more-than-one) error when its character
>table is displayed using Font::Fret module (available at CPAN,
>http://www.cpan.org/modules/by-module/Font/). Can anybody confirm any
>similar misbehaviour in some other conditions?

The 'post' table in FreeSans.ttf causes names to be off-by-one when making
an AFM file with Richard Kinch's ttf_edit:

CH <0020> ; WX 278 ; N .notdef ; B 124 0 208 729 ;
CH <0021> ; WX 278 ; N space ; B 124 0 208 729 ;
CH <0022> ; WX 355 ; N exclam ; B 52 464 305 709 ;

There's an extra index entry near the beginning of the table, so in
addition to those MACglyph names being off by one, the attempt to read
the string names starts with the last index and gets badly confused:

CH <0101> ; WX 556 ; N thyphenXAmacronXamacronXAbreveXabreveXAogonekXaogon...


-- 
                                                 Joe



reply via email to

[Prev in Thread] Current Thread [Next in Thread]