diff options
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/gen-mplus-patch.pl | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/scripts/gen-mplus-patch.pl b/scripts/gen-mplus-patch.pl index ffdd263..33e452a 100755 --- a/scripts/gen-mplus-patch.pl +++ b/scripts/gen-mplus-patch.pl @@ -216,13 +216,14 @@ sub conv_fonts my $weight; my $width; my $height; + my $font_name; my $new; $patch = ''; foreach my $font (@FONTS) { ($face, $weight, $width, $height) = @$font; - $font = "mplus-$face-$weight"; - $new = `otf2bdf -p $width -r 72 $mplus_dir/$font.ttf | \\ - $bdf2fbcon -o - -n $font -p 2 -`; + $font_name = "mplus-$face-$weight"; + $new = `otf2bdf -p $width -r 72 $mplus_dir/$font_name.ttf | \\ + $bdf2fbcon -o - -n $font_name -p 2 -`; $patch .= make_patch("lib/fonts/font_mplus_${face}_${weight}_" . "${width}x${height}.c", '', $new); } |