[tex-k] dvipsk

Peter Breitenlohner peb at mppmu.mpg.de
Fri Jan 14 13:02:23 CET 2005


On Thu, 13 Jan 2005, Akira Kakuto wrote:

>> BTW: There is one "#ifndef Omega" in dvipsk/download.c ("/* from ASCII
>> jpatch */"). I suppose that either the ifndef is a mistake or this piece of
>> code is obsolete.
>
> I think that part should be changed as follows:
>
> Akira
> --------------------
>
> #ifndef Omega /* from ASCII jpatch */
>      for (b=0; b<16; b++)
>        if(p->bitmap[b] !=0)
>            non_empty =1;
>      if(non_empty==0)
>        return;
> #endif
>
>
> --->
>
>      for (b=0; b<16; b++)
>        if(p->bitmap[b] !=0)
>            non_empty =1;
> #ifdef Omega
>      if(non_empty==0 && curfnt->codewidth != 2)
> #else
>      if(non_empty==0)
> #endif
>        return;
>

Hi,

after some look at the code after the quoted piece, I am fairly sure it
should actually be

      for (b=0; b<16; b++)
        if(p->bitmap[b] !=0)
            non_empty =1;
      if(non_empty==0)
        return;

in order to prevent the downloading of empty fonts (Omega's curfnt->codewidth
shouldn't play any role).

Peter Breitenlohner <peb at mppmu.mpg.de>



More information about the tex-k mailing list