プリンター関係の設定
ローカルプリンタとして、BJ-10VとLaserShotがあります。
普段はLaserShot(LIPS3)を使用しているので、そのための設定内容です。
/etc/printcap
以下の行を追加
# Cannon Lips III
lp|lshot:\
:lp=/dev/lp1:\
:sd=/var/spool/lp1:\
:lf=/var/spool/lpd-errs:\
:sh:sf:mx#0:\
:if=/usr/local/lib/lpr/ps2lpr:\
:df=/usr/local/lib/lpr/dvips2lpr:\
:tf=/usr/local/lib/lpr/txt2lpr:\
:pw#80:pl#66:
/usr/local/lib/lpr/ps2lpr
#!/bin/sh
/usr/local/bin/gs -dSAFER -dNOPAUSE -q -sDEVICE=lips3 -sOutputFile=- - #lips3
exit 0
/usr/local/lib/lpr/dvi2lpr
#!/bin/sh
/bin/cat - > /tmp/$$.dvi
/usr/local/bin/dviprt /tmp/$$.dvi
rm -f /tmp/$$.dvi
exit 0
/usr/local/lib/lpr/txt2lpr
#!/bin/sh
cat
exit 0
これで、dviファイルは、jdvi2kps filename.dvi | lpr で印字できる。
表示にMS-Win3.1のフォント利用
/usr/share/fonts/TrueTypeのディレクトリを作成する。
そこでMS明朝とMSゴシックのフォントを以下のコマンドで使えるようにする
ttindex msmincho.ttf
ttindex msgothic.ttf
/usr/etc/vfontcapを編集する。
以下はそのすべて
####
#### vfontcap - Vector Font Capability Database File for VFlib Version 2
####
#### by HIROTSUGU KAKUGAWA,
####
#### Faculty of Engineering, Hiroshima Univ., JAPAN
#### E-mail: kakugawa@se.hiroshima-u.ac.jp
####
#### IF YOU ADDED OTHER FONTS NOT APPEAR IN THIS FILE, PLEASE SEND ME
#### THE ENTRY AND CORRECTION FACTORS. I ADD THE ENTRY IN THE NEXT RELEASE
#### OF VFLIB.
####
#### This is a part of VFlib
####
#### Copyright (C) 1993 Hirotsugu KAKUGAWA. All rights reserved.
#### VFlib is distributed in the hope that it will be useful, but
#### WITHOUT ANY WARRANTY. No author or distributor accepts responsibility
#### to anyone for the consequences of using it or for whether it serves any
#### particular purpose or works at all, unless he says so in writing. Refer
#### to the GNU General Public License for full details.
####
#### Everyone is granted permission to copy, modify and redistribute
#### VFlib, but only under the conditions described in the GNU
#### General Public License. A copy of this license is supposed to have been
#### given to you along with VFlib so you can know your rights and
#### responsibilities. It should be in a file named COPYING. Among other
#### things, the copyright notice and this notice must be preserved on all
#### copies.
####
####
####
#### PRIMITIVE FONTS
####
### SONY VECTOR FONTS
r_sony_mincho|Sony Vector Font (Mincho):\
:ft=sony:\
:ff=/usr/local/font/devnwp533/Mincho.vfont:
r_sony_gothic|Sony Vector Font (Gothic):\
:ft=sony:\
:ff=/usr/local/font/devnwp533/Gothic.vfont:
### ZEIT "SYOTAI CLUB" FONTS
r_zeit_mincho|Zeit "SYOTAI CLUB" Vector Font (Mincho):\
:ft=zeit:\
:ff=/usr/share/fonts/zeit/mincho:
r_zeit_gothic|Zeit "SYOTAI CLUB" Vector Font (gothic):\
:ft=zeit:\
:ff=/usr/share/fonts/zeit/gothic:
r_zeit_gothicMH|Zeit "SYOTAI CLUB" Vector Font (maru gothic H):\
:ft=zeit:\
:ff=/usr/share/fonts/zeit/asiya24:
r_zeit_textbook|Zeit "SYOTAI CLUB" Vector Font (textbook):\
:ft=zeit:\
:ff=/usr/local/font/syotai_club/aska:
### WATANABE FONT IN "SYOTAI CLUB" FORMAT
r_watanabe_mincho|Watanabe "SYOTAI CLUB" Vector Font (mincho):\
:ft=zeit:\
:ff=/usr/share/fonts/zeit/mincho:
### ZEIT "JG FONT"
r_jg_textbook|Zeit "JG FONT" Vector Font (textbook):\
:ft=jg:\
:ff=/usr/local/font/jg_font/zkyo0by:
r_jg_mouhitsu|Zeit "JG FONT" Vector Font (mouhitsu):\
:ft=jg:\
:ff=/usr/local/font/jg_font/zmou0by:
### MS-WINDOWS 3.1 TRUETYPE FONTS
r_ms_mincho|MS-Windows 3.1 TrueType Font (Mincho):\
:ft=truetype:\
:ff=/usr/share/fonts/TrueType/msmincho:
r_ms_gothic|MS-Windows 3.1 TrueType Font (Gothic):\
:ft=truetype:\
:ff=/usr/share/fonts/TrueType/msgothic:
###
### CORRECTED
###
ms_mincho:\
:fc=r_ms_mincho:
ms_gothic:\
:fc=r_ms_gothic:
sony_mincho:\
:fc=r_sony_mincho:
sony_gothic:\
:fc=r_sony_gothic:
zeit_mincho:\
:ox#10:oy#-5:fx#105:fy#105:\
:fc=r_zeit_mincho:
zeit_gothic:\
:ox#20:oy#0:fx#105:fy#108:\
:fc=r_zeit_gothic:
zeit_gothicMH:\
:ox#10:yo#10:fx#105:fy#103:\
:fc=r_zeit_gothicMH:
zeit_textbook:\
:ox#20:oy#-10:fx#108:fy#105:\
:fc=r_zeit_textbook:
watanabe_mincho:\
:ox#5:oy#0:fx#116:fy#117:\
:fc=r_watanabe_mincho:
jg_textbook:\
:ox#60:oy#40:fx#108:fy#108:\
:fc=r_jg_textbook:
jg_mouhitsu:\
:ox#70:oy#50:fx#107:fy#115:\
:fc=r_jg_mouhitsu:
####
#### COMPOUND FONTS
####
comic|Kanji is Gothic, kana is mincho; Used in comics:\
:ft=compound:\
:kj=ztgoth:kn=ztmin:sy=ztmin:
###
### BIT OPERATION FONTS
###
minstar:\
:ft=bitop:\
:op=LDSBS217aXDDS:fo=min:sf=min:
### ALIASES
#min:\
# :fc=sony_mincho:
#goth:\
# :fc=sony_gothic:
#ztmin:\
# :fc=zeit_mincho:
#ztgoth:\
# :fc=zeit_gothic:
#ztmgo:\
# :fc=zeit_gothicMH:
#zttxt:\
# :fc=zeit_textbook:
#wmin:\
# :fc=watanabe_mincho:
#jgtxt:\
# :fc=jg_textbook:
#goth:\
# :fc=zeit_gothicMH:
#min:\
# :fc=zeit_mincho:
min:\
:fc=ms_mincho:
goth:\
:fc=ms_gothic:
### FLAVORED FONTS
minsl:\
:sl#10:fc=min:
minfr:\
:th:fr:fc=min:
gothsl:\
:sl#10:fc=goth:
gothfr:\
:th:fr:fc=goth:
ztgothsl:\
:sl#10:fc=ztgoth:
ztgothfr:\
:fr:fc=ztgoth:
ztgothrv:\
:rv:fc=ztgoth:
ztgothro:\
:ro#1:fc=ztgoth:
zttxtth:\
:th:fc=zttxt:
zttxtsl:\
:sl#10:fc=zttxt:
jgtxtsl:\
:sl#10:fc=jgtxt:
jgtxtrv:\
:rv:fc=jgtxt:
##
## FOR VFLIB TESTING
##
# SONY FONT
TEST-SONY: :fc=sony_mincho:
TEST-SONY-slR: :sl#10:fc=sony_mincho:
TEST-SONY-slL: :sl#-10:fc=sony_mincho:
TEST-SONY-fr: :fr:fc=sony_mincho:
TEST-SONY-rx: :rx:fc=sony_mincho:
TEST-SONY-ry: :ry:fc=sony_mincho:
TEST-SONY-rv: :rv:fc=sony_mincho:
TEST-SONY-roI: :ro#1:fc=sony_mincho:
TEST-SONY-roII: :ro#2:fc=sony_mincho:
TEST-SONY-roIII::ro#3:fc=sony_mincho:
# SYOTAI-CLUB FONT
TEST-ZEIT: :fc=zeit_mincho:
TEST-ZEIT-slR: :sl#10:fc=zeit_mincho:
TEST-ZEIT-slL: :sl#-10:fc=zeit_mincho:
TEST-ZEIT-fr: :fr:fc=zeit_mincho:
TEST-ZEIT-rx: :rx:fc=zeit_mincho:
TEST-ZEIT-ry: :ry:fc=zeit_mincho:
TEST-ZEIT-rv: :rv:fc=zeit_mincho:
TEST-ZEIT-roI: :ro#1:fc=zeit_mincho:
TEST-ZEIT-roII: :ro#2:fc=zeit_mincho:
TEST-ZEIT-roIII::ro#3:fc=zeit_mincho:
# JG FONT
TEST-JG: :fc=jg_textbook:
TEST-JG-slR: :sl#10:fc=jg_textbook:
TEST-JG-slL: :sl#-10:fc=jg_textbook:
TEST-JG-fr: :fr:fc=jg_textbook:
TEST-JG-rx: :rx:fc=jg_textbook:
TEST-JG-ry: :ry:fc=jg_textbook:
TEST-JG-rv: :rv:fc=jg_textbook:
TEST-JG-roI: :ro#1:fc=jg_textbook:
TEST-JG-roII: :ro#2:fc=jg_textbook:
TEST-JG-roIII: :ro#3:fc=jg_textbook:
# TRUETYPE FONT
TEST-TT: :fc=tt_mincho:
TEST-TT-slR: :sl#10:fc=TT_mincho:
TEST-TT-slL: :sl#-10:fc=tt_mincho:
TEST-TT-fr: :fr:fc=tt_mincho:
TEST-TT-rx: :rx:fc=tt_mincho:
TEST-TT-ry: :ry:fc=tt_mincho:
TEST-TT-rv: :rv:fc=tt_mincho:
TEST-TT-roI: :ro#1:fc=tt_mincho:
TEST-TT-roII: :ro#2:fc=tt_mincho:
TEST-TT-roIII: :ro#3:fc=tt_mincho:
/usr/local/lib/ghostscript/kanjiディレクトリで、ln -sf vflib.ps kconfig.ps
を実行しておく。