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

Bug#641460: texlive-font-utils: endless loop in font2afm when converting OTF files



Package: texlive-font-utils
Version: 2009-10
Severity: normal
Tags: patch

Hi,

when trying to convert Open Type Font files to AFM using font2afm, the
script gets stuck in an endless loop. The problem is introduced by the
following code:

    elsif ($ext =~ m!otf!) {
        system "cfftot1 -b -o ${base}.pfb $_";
        redo;
    }

The problem is that this restarts the loop without changing the loop
variable ($_). I suppose that the loop was meant to be re-started in
order to process the newly generated PFB file. The attached patch fixes
the issue.

TIA,
Sebastian

-- 
Sebastian "tokkee" Harl +++ GnuPG-ID: 0x8501C7FC +++ http://tokkee.org/

Those who would give up Essential Liberty to purchase a little Temporary
Safety, deserve neither Liberty nor Safety.         -- Benjamin Franklin

--- a/font2afm
+++ b/font2afm
@@ -175,6 +175,7 @@
     }
     elsif ($ext =~ m!otf!) {
         system "cfftot1 -b -o ${base}.pfb $_";
+		$_ = "${base}.pfb";
         redo;
     }
     else {

Attachment: signature.asc
Description: Digital signature


Reply to: