texmacs-dev
[Top][All Lists]
Advanced

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

Re: [Texmacs-dev] [RFC] no character in font information


From: Joris van der Hoeven
Subject: Re: [Texmacs-dev] [RFC] no character in font information
Date: Tue, 5 Nov 2002 15:47:20 +0100 (MET)

> Inspired by valgrind debugging I added a simple check to
> tex_font_metric_rep::tag function:
> 
> int tex_font_metric_rep::tag (QN c)
> {
>      ...
>      if (c < bc) {
>      ...
>      if (c > ec) {
>      ...
>      return (char_info [c-bc]>>8)&3;
> }
>
> A test run give lines in output:
> 
> tex_font_metric_rep::tag  c=254 > ec=127 (res_name=cmr8)
> tex_font_metric_rep::tag  c=254 > ec=127 (res_name=cmr12)

Yes, this is indeed a subtle bug.
I corrected it for the next version.

While relooking at the code, I also noticed something else:
the tfm files are read in 32 bit blocks using the "int" type.
I am not sure that this is correct on 64 bits architectures.
Are there 64 bits architectures where the "int" type is 64 bits?
In that case, maybe someone is willing to patch this.





reply via email to

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