4 Einträge, 1 Seite |
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/usr/bin/perl -w
use strict;
# wandeln.ttf.pl
# converts True Type Fonts from Windows or other sources to
# bdf-files and pfc-files
# needs ttf2dbf, bdftopcf and perl
foreach my $i (@ARGV) {
if ($i =~ /(.*?)(|b|bi|bd|i)\.ttf$/) {
my $base = "$1$2";
my $face = $2;
my $ttf = $i;
for my $p (8..16) {
my $bdf = "$base$p.bdf";
my $pcf = "$base$p.pcf";
print "ttf2bdf -v -r 82 -p $p -o $bdf $ttf\n";
print "bdftopcf -o $pcf $bdf\n";
}
}
}
print "mkfontdir\n";
#
4 Einträge, 1 Seite |