Changeset 7c7cffd in git


Ignore:
Timestamp:
15/06/10 08:10:58 (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:
72f37d2
Parents:
46cd512
Message:

lib/afm2txf.pl: Sanitise $FONT to ensure it doesn't contain a '/'.
Remove the temporary .ppm file at the end.

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

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • ChangeLog

    r46cd512 r7c7cffd  
     1Tue Jun 15 07:10:16 GMT 2010  Olly Betts <olly@survex.com>
     2
     3        * lib/afm2txf.pl: Sanitise $FONT to ensure it doesn't contain a '/'.
     4          Remove the temporary .ppm file at the end.
     5
    16Tue Jun 15 06:13:30 GMT 2010  Olly Betts <olly@survex.com>
    27
  • lib/afm2txf.pl

    r46cd512 r7c7cffd  
    1414#
    1515# Copyright (C) 2002 Andrew James Ross
     16# Copyright (C) 2010 Olly Betts
    1617#
    1718# This program is free software; you can redistribute it and/or modify
     
    126127die "No FontName found in metrics" if not defined $FONT;
    127128
     129# Sanitise $FONT.
     130$FONT =~ s!/!_!g;
     131
    128132#
    129133# Find the height of the tallest character, and print some warnings
     
    240244
    241245# Clean up
    242 #system("rm $FONT.ppm");
     246unlink("$FONT.ppm");
    243247
    244248########################################################################
Note: See TracChangeset for help on using the changeset viewer.