关于If you can dynamically change the font in the terminal like you can with CSS,我试图在Mac上为iTerm2安装UCS-fonts。 “ -misc-fixed- *”字体包的自述文件概述了以下步骤:
cd submission/
make
mkdir -p ~/local/lib/X11/fonts/
mv *.pcf.gz ~/local/lib/X11/fonts/
cd ~/local/lib/X11/fonts/
mkfontdir
xset +fp ~/local/lib/X11/fonts (put this last line also in ~/.xinitrc)
我这样做了,但是发现make
中的一个错误,然后可能导致xset
中的错误最后出现:
$ cd submission
$ make
for i in 5x7 5x8 6x9 6x10 6x12 6x13 7x13 7x14 8x13 9x15 9x18 10x20 6x13B 6x13O 7x13B 7x13O 7x14B 8x13B 8x13O 9x15B 9x18B ; do \
../bdftruncate.pl U+3200 <../$i.bdf >$i.bdf ; \
../ucs2any.pl +d ../$i.bdf \
../MAPPINGS/8859-1.TXT ISO8859-1 ; \
done
defined(@array) is deprecated at ../ucs2any.pl line 277.
(Maybe you should just omit the defined()?)
Writing 223 characters into file '5x7-ISO8859-1.bdf'.
defined(@array) is deprecated at ../ucs2any.pl line 277.
(Maybe you should just omit the defined()?)
Writing 223 characters into file '5x8-ISO8859-1.bdf'.
defined(@array) is deprecated at ../ucs2any.pl line 277.
(Maybe you should just omit the defined()?)
Writing 223 characters into file '6x9-ISO8859-1.bdf'.
defined(@array) is deprecated at ../ucs2any.pl line 277.
(Maybe you should just omit the defined()?)
Writing 223 characters into file '6x10-ISO8859-1.bdf'.
defined(@array) is deprecated at ../ucs2any.pl line 277.
(Maybe you should just omit the defined()?)
Writing 223 characters into file '6x12-ISO8859-1.bdf'.
defined(@array) is deprecated at ../ucs2any.pl line 277.
(Maybe you should just omit the defined()?)
Writing 223 characters into file '6x13-ISO8859-1.bdf'.
defined(@array) is deprecated at ../ucs2any.pl line 277.
(Maybe you should just omit the defined()?)
Writing 223 characters into file '7x13-ISO8859-1.bdf'.
defined(@array) is deprecated at ../ucs2any.pl line 277.
(Maybe you should just omit the defined()?)
Writing 223 characters into file '7x14-ISO8859-1.bdf'.
defined(@array) is deprecated at ../ucs2any.pl line 277.
(Maybe you should just omit the defined()?)
Writing 223 characters into file '8x13-ISO8859-1.bdf'.
defined(@array) is deprecated at ../ucs2any.pl line 277.
(Maybe you should just omit the defined()?)
Writing 223 characters into file '9x15-ISO8859-1.bdf'.
defined(@array) is deprecated at ../ucs2any.pl line 277.
(Maybe you should just omit the defined()?)
Writing 223 characters into file '9x18-ISO8859-1.bdf'.
defined(@array) is deprecated at ../ucs2any.pl line 277.
(Maybe you should just omit the defined()?)
Writing 223 characters into file '10x20-ISO8859-1.bdf'.
defined(@array) is deprecated at ../ucs2any.pl line 277.
(Maybe you should just omit the defined()?)
Writing 223 characters into file '6x13B-ISO8859-1.bdf'.
defined(@array) is deprecated at ../ucs2any.pl line 277.
(Maybe you should just omit the defined()?)
Writing 206 characters into file '6x13O-ISO8859-1.bdf'.
defined(@array) is deprecated at ../ucs2any.pl line 277.
(Maybe you should just omit the defined()?)
Writing 223 characters into file '7x13B-ISO8859-1.bdf'.
defined(@array) is deprecated at ../ucs2any.pl line 277.
(Maybe you should just omit the defined()?)
Writing 206 characters into file '7x13O-ISO8859-1.bdf'.
defined(@array) is deprecated at ../ucs2any.pl line 277.
(Maybe you should just omit the defined()?)
Writing 223 characters into file '7x14B-ISO8859-1.bdf'.
defined(@array) is deprecated at ../ucs2any.pl line 277.
(Maybe you should just omit the defined()?)
Writing 223 characters into file '8x13B-ISO8859-1.bdf'.
defined(@array) is deprecated at ../ucs2any.pl line 277.
(Maybe you should just omit the defined()?)
Writing 206 characters into file '8x13O-ISO8859-1.bdf'.
defined(@array) is deprecated at ../ucs2any.pl line 277.
(Maybe you should just omit the defined()?)
Writing 223 characters into file '9x15B-ISO8859-1.bdf'.
defined(@array) is deprecated at ../ucs2any.pl line 277.
(Maybe you should just omit the defined()?)
Writing 223 characters into file '9x18B-ISO8859-1.bdf'.
for i in 6x13 6x13B 6x13O 7x13 7x13B 7x13O 8x13 8x13B 8x13O ; do \
../ucs2any.pl +d ../$i.bdf \
../MAPPINGS/8859-2.TXT ISO8859-2 \
../MAPPINGS/8859-5.TXT ISO8859-5 \
../MAPPINGS/8859-7.TXT ISO8859-7 \
../MAPPINGS/8859-9.TXT ISO8859-9 \
../MAPPINGS/8859-13.TXT ISO8859-13 \
../MAPPINGS/8859-15.TXT ISO8859-15 ; \
done
defined(@array) is deprecated at ../ucs2any.pl line 277.
(Maybe you should just omit the defined()?)
Writing 223 characters into file '6x13-ISO8859-2.bdf'.
Writing 223 characters into file '6x13-ISO8859-5.bdf'.
Writing 220 characters into file '6x13-ISO8859-7.bdf'.
Writing 223 characters into file '6x13-ISO8859-9.bdf'.
Writing 223 characters into file '6x13-ISO8859-13.bdf'.
Writing 223 characters into file '6x13-ISO8859-15.bdf'.
defined(@array) is deprecated at ../ucs2any.pl line 277.
(Maybe you should just omit the defined()?)
Writing 223 characters into file '6x13B-ISO8859-2.bdf'.
Writing 223 characters into file '6x13B-ISO8859-5.bdf'.
Writing 220 characters into file '6x13B-ISO8859-7.bdf'.
Writing 223 characters into file '6x13B-ISO8859-9.bdf'.
Writing 223 characters into file '6x13B-ISO8859-13.bdf'.
Writing 223 characters into file '6x13B-ISO8859-15.bdf'.
defined(@array) is deprecated at ../ucs2any.pl line 277.
(Maybe you should just omit the defined()?)
Writing 206 characters into file '6x13O-ISO8859-2.bdf'.
Writing 206 characters into file '6x13O-ISO8859-5.bdf'.
No glyph for character U+20AF (0xa5) available.
Writing 202 characters into file '6x13O-ISO8859-7.bdf'.
Writing 206 characters into file '6x13O-ISO8859-9.bdf'.
Writing 206 characters into file '6x13O-ISO8859-13.bdf'.
Writing 206 characters into file '6x13O-ISO8859-15.bdf'.
defined(@array) is deprecated at ../ucs2any.pl line 277.
(Maybe you should just omit the defined()?)
Writing 223 characters into file '7x13-ISO8859-2.bdf'.
Writing 223 characters into file '7x13-ISO8859-5.bdf'.
Writing 220 characters into file '7x13-ISO8859-7.bdf'.
Writing 223 characters into file '7x13-ISO8859-9.bdf'.
Writing 223 characters into file '7x13-ISO8859-13.bdf'.
Writing 223 characters into file '7x13-ISO8859-15.bdf'.
defined(@array) is deprecated at ../ucs2any.pl line 277.
(Maybe you should just omit the defined()?)
Writing 223 characters into file '7x13B-ISO8859-2.bdf'.
Writing 223 characters into file '7x13B-ISO8859-5.bdf'.
Writing 220 characters into file '7x13B-ISO8859-7.bdf'.
Writing 223 characters into file '7x13B-ISO8859-9.bdf'.
Writing 223 characters into file '7x13B-ISO8859-13.bdf'.
Writing 223 characters into file '7x13B-ISO8859-15.bdf'.
defined(@array) is deprecated at ../ucs2any.pl line 277.
(Maybe you should just omit the defined()?)
Writing 206 characters into file '7x13O-ISO8859-2.bdf'.
Writing 206 characters into file '7x13O-ISO8859-5.bdf'.
No glyph for character U+20AF (0xa5) available.
Writing 202 characters into file '7x13O-ISO8859-7.bdf'.
Writing 206 characters into file '7x13O-ISO8859-9.bdf'.
Writing 206 characters into file '7x13O-ISO8859-13.bdf'.
Writing 206 characters into file '7x13O-ISO8859-15.bdf'.
defined(@array) is deprecated at ../ucs2any.pl line 277.
(Maybe you should just omit the defined()?)
Writing 223 characters into file '8x13-ISO8859-2.bdf'.
Writing 223 characters into file '8x13-ISO8859-5.bdf'.
Writing 220 characters into file '8x13-ISO8859-7.bdf'.
Writing 223 characters into file '8x13-ISO8859-9.bdf'.
Writing 223 characters into file '8x13-ISO8859-13.bdf'.
Writing 223 characters into file '8x13-ISO8859-15.bdf'.
defined(@array) is deprecated at ../ucs2any.pl line 277.
(Maybe you should just omit the defined()?)
Writing 223 characters into file '8x13B-ISO8859-2.bdf'.
Writing 223 characters into file '8x13B-ISO8859-5.bdf'.
Writing 220 characters into file '8x13B-ISO8859-7.bdf'.
Writing 223 characters into file '8x13B-ISO8859-9.bdf'.
Writing 223 characters into file '8x13B-ISO8859-13.bdf'.
Writing 223 characters into file '8x13B-ISO8859-15.bdf'.
defined(@array) is deprecated at ../ucs2any.pl line 277.
(Maybe you should just omit the defined()?)
Writing 206 characters into file '8x13O-ISO8859-2.bdf'.
Writing 206 characters into file '8x13O-ISO8859-5.bdf'.
Writing 203 characters into file '8x13O-ISO8859-7.bdf'.
Writing 206 characters into file '8x13O-ISO8859-9.bdf'.
Writing 206 characters into file '8x13O-ISO8859-13.bdf'.
Writing 206 characters into file '8x13O-ISO8859-15.bdf'.
for i in 6x13 7x13 8x13 ; do \
../ucs2any.pl +d ../$i.bdf \
../MAPPINGS/8859-3.TXT ISO8859-3 \
../MAPPINGS/8859-4.TXT ISO8859-4 \
../MAPPINGS/8859-8.TXT ISO8859-8 \
../MAPPINGS/8859-10.TXT ISO8859-10 \
../MAPPINGS/KOI8-R.TXT KOI8-R ; \
done
defined(@array) is deprecated at ../ucs2any.pl line 277.
(Maybe you should just omit the defined()?)
Writing 216 characters into file '6x13-ISO8859-3.bdf'.
Writing 223 characters into file '6x13-ISO8859-4.bdf'.
Writing 187 characters into file '6x13-ISO8859-8.bdf'.
Writing 223 characters into file '6x13-ISO8859-10.bdf'.
Writing 255 characters into file '6x13-KOI8-R.bdf'.
defined(@array) is deprecated at ../ucs2any.pl line 277.
(Maybe you should just omit the defined()?)
Writing 216 characters into file '7x13-ISO8859-3.bdf'.
Writing 223 characters into file '7x13-ISO8859-4.bdf'.
Writing 185 characters into file '7x13-ISO8859-8.bdf'.
Writing 223 characters into file '7x13-ISO8859-10.bdf'.
Writing 255 characters into file '7x13-KOI8-R.bdf'.
defined(@array) is deprecated at ../ucs2any.pl line 277.
(Maybe you should just omit the defined()?)
Writing 216 characters into file '8x13-ISO8859-3.bdf'.
Writing 223 characters into file '8x13-ISO8859-4.bdf'.
Writing 185 characters into file '8x13-ISO8859-8.bdf'.
Writing 223 characters into file '8x13-ISO8859-10.bdf'.
Writing 255 characters into file '8x13-KOI8-R.bdf'.
for i in 7x14 ; do \
../ucs2any.pl +d ../$i.bdf \
../MAPPINGS/JIS0201.TXT JISX0201.1976-0 ; \
done
defined(@array) is deprecated at ../ucs2any.pl line 277.
(Maybe you should just omit the defined()?)
Writing 190 characters into file '7x14-JISX0201.1976-0.bdf'.
for i in 12x13ja 18x18ja 18x18ko ; do \
cp ../$i.bdf . ; \
done
cp: ../12x13ja.bdf: No such file or directory
cp: ../18x18ja.bdf: No such file or directory
cp: ../18x18ko.bdf: No such file or directory
make: [bdfs] Error 1 (ignored)
for i in *.bdf ; do \
bdftopcf $i >${i%.bdf}.pcf ; \
done
gzip -9 *.pcf
$ mkdir -p ~/local/lib/X11/fonts/
$ mv *.pcf.gz ~/local/lib/X11/fonts/
$ cd ~/local/lib/X11/fonts/
$ mkfontdir
$ xset +fp ~/local/lib/X11/fonts
xset: unable to open display "/private/tmp/com.apple.launchd.2jV85C7GQ0/org.macosforge.xquartz:0"
我注意到的两件事是:
$ make
...
cp: ../12x13ja.bdf: No such file or directory
cp: ../18x18ja.bdf: No such file or directory
cp: ../18x18ko.bdf: No such file or directory
make: [bdfs] Error 1 (ignored)
...
并且:
$ xset +fp ~/local/lib/X11/fonts
xset: unable to open display "/private/tmp/com.apple.launchd.2jV85C7GQ0/org.macosforge.xquartz:0"
想知道如何使它工作。基本上,我只是想在Mac上为iTerm2安装此字体。