Changeset 233995e in git


Ignore:
Timestamp:
15/06/10 06:05:25 (9 years ago)
Author:
Olly Betts <olly@…>
Branches:
add-show-splays, line_contents, master, stereo, svn/github/master, svn/origin/master, svn/survex-1_1, svn/tags/1.1.14, svn/tags/1.1.15, svn/tags/1.1.16, svn/tags/1.2.0, svn/tags/1.2.1, svn/tags/1.2.2, svn/tags/1.2.3, svn/tags/1.2.4, svn/tags/1.2.5, svn/tags/v1_1_13, svn/trunk, travis-osx
Children:
46cd512
Parents:
9ce6a65
Message:

lib/afm2txf.pl: Quote $FONT when passing to external commands.

git-svn-id: file:///home/survex-svn/survex/branches/survex-1_1@3409 4b37db11-9a0c-4f06-9ece-9ab7cdaee568

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • ChangeLog

    r9ce6a65 r233995e  
     1Tue Jun 15 05:05:05 GMT 2010  Olly Betts <olly@survex.com>
     2
     3        * lib/afm2txf.pl: Quote $FONT when passing to external commands.
     4
    15Tue Jun 15 04:24:33 GMT 2010  Olly Betts <olly@survex.com>
    26
  • lib/afm2txf.pl

    r9ce6a65 r233995e  
    158158print STDERR "Rendering Postscript...\n";
    159159my $res = $TEXSIZ * $DOWNSAMPLE;
    160 my $pid = open PS, "|gs -r$res -g${res}x${res} -sDEVICE=ppm -sOutputFile=$FONT.ppm > /dev/null";
     160my $pid = open PS, "|gs -r$res -g${res}x${res} -sDEVICE=ppm -sOutputFile=\Q$FONT\E.ppm > /dev/null";
    161161die "Couldn't spawn ghostscript interpreter" if !defined $pid;
    162162print PS join("\n", @$PS), "\n";
     
    168168#
    169169print STDERR "Antialiasing image...\n";
    170 system("mogrify -geometry ${TEXSIZ}x${TEXSIZ} $FONT.ppm") == 0
     170system("mogrify -geometry ${TEXSIZ}x${TEXSIZ} \Q$FONT\E.ppm") == 0
    171171    or die "Couldn't rescale $FONT.ppm";
    172172
Note: See TracChangeset for help on using the changeset viewer.