1 | Sergey A. Babkin |
---|
2 | <babkin@bellatlantic.net> or <sab123@hotmail.com> |
---|
3 | (Do not edit this file, it is generated from FONTS.hpux.html!!!) |
---|
4 | |
---|
5 | How to install new Type1 fonts on an HP-UX 10.20 machine |
---|
6 | -------------------------------------------------------- |
---|
7 | |
---|
8 | 1. Add the font files to /usr/lib/X11/fonts/type1.st/typefaces. |
---|
9 | |
---|
10 | 2. Add the font descriptions to |
---|
11 | /usr/lib/X11/fonts/type1.st/typefaces/fonts.scale. Run `mkfontdir' |
---|
12 | in /usr/lib/X11/fonts/type1.st/typefaces. In the descriptions |
---|
13 | you have to specify the font manufacturer as `misc', like: |
---|
14 | |
---|
15 | -misc-courier-... |
---|
16 | |
---|
17 | 3. Copy /usr/lib/X11/fonts/type1.st/typefaces/fonts.dir to |
---|
18 | /usr/lib/X11/fonts/type1.st/licenses/STSYSTEM/DISPLAYS/fonts.dir. |
---|
19 | Better yet, create a symbolic link. |
---|
20 | |
---|
21 | 4. For each font encoding you are going to use create a description |
---|
22 | file in /usr/lib/X11/fonts/stadmin/type1/charsets. Of course, if you |
---|
23 | are going to use the same fonts in several encodings, the best way |
---|
24 | would be to create fair descriptions of charsets and really store |
---|
25 | only one encoding in typefaces, all the others will be produced |
---|
26 | automatically. That's not difficult at all. |
---|
27 | But the simplest way is to just copy the file cp.iso8859-1 |
---|
28 | to cp.<your-encoding-name>, like cp.koi8-r. |
---|
29 | |
---|
30 | 5. Restart you X server and/or font server. |
---|
31 | |
---|
32 | What if you don't have the `root' privileges ? |
---|
33 | ---------------------------------------------- |
---|
34 | |
---|
35 | You still can run the font server and configure your X server |
---|
36 | to get the fonts from it. |
---|
37 | |
---|
38 | Further let's suppose that the name on which you are going |
---|
39 | to run the font server is named `somehost'. Login to it |
---|
40 | and configure the font server. |
---|
41 | |
---|
42 | First, choose some unused port. Numbers around 9000 are a good |
---|
43 | choice. Verify that this port is not used by somebody else |
---|
44 | by entering |
---|
45 | |
---|
46 | netstat -naf inet |grep 9000 |
---|
47 | |
---|
48 | and look what happens. If you get nothing, that's good, this |
---|
49 | port is unused. If you get some lines of data, try abother port. |
---|
50 | |
---|
51 | Go to you home directory $HOME and create some directory for |
---|
52 | your font server, say, $HOME/fs. Copy the directory structure |
---|
53 | of /usr/lib/X11/fonts/type1.st into $HOME/fs, so that in result |
---|
54 | you get $HOME/fs/type1.st/<whatever was there>. Copy the directory |
---|
55 | structure of /usr/lib/X11/fonts/stadmin/type1/charsets into $HOME/fs, |
---|
56 | so that in result you get $HOME/fs/charsets/<whatever was there>. |
---|
57 | Install the new fonts in these directorues as described above. |
---|
58 | |
---|
59 | Then create the fontserver configuration file, say, $HOME/fs/xfs.cfg. |
---|
60 | The sample contents (supposing that my $HOME is equal to /home/babkin) |
---|
61 | is: |
---|
62 | |
---|
63 | --------------8<----------- cut here ----------------------------- |
---|
64 | # font server configuration file |
---|
65 | # $XConsortium: config.cpp,v 1.7 91/08/22 11:39:59 rws Exp $ |
---|
66 | |
---|
67 | rasterizers = /usr/lib/X11/fs/ufstrast.sl,/usr/lib/X11/fs/iforast.sl |
---|
68 | |
---|
69 | clone-self = off |
---|
70 | use-syslog = off |
---|
71 | catalogue = /home/babkin/fs/type1.st |
---|
72 | # in decipoints |
---|
73 | default-point-size = 120 |
---|
74 | default-resolutions = 100,100,75,75 |
---|
75 | port=9000 |
---|
76 | error-file=/home/babkin/fs/fs.err |
---|
77 | --------------8<----------- cut here ----------------------------- |
---|
78 | |
---|
79 | Then create the script to start your font server, say, $HOME/fs/runme: |
---|
80 | |
---|
81 | --------------8<----------- cut here ----------------------------- |
---|
82 | TYPE1_CODEPAGE_DIR=$HOME/fs/charsets |
---|
83 | export TYPE1_CODEPAGE_DIR |
---|
84 | kill `ps -ef | grep $HOME/\[f\]s/xfs.cfg | awk '{print $2}'`; |
---|
85 | nohup xfs -config $HOME/fs/xfs.cfg & |
---|
86 | --------------8<----------- cut here ----------------------------- |
---|
87 | |
---|
88 | Don't forget to make $HOME/fs/runme executable. Then you can |
---|
89 | execute it manually or from you .profile. |
---|
90 | |
---|
91 | After you get your font server running, just execute the following |
---|
92 | command (with proper host name and port number) in your X session |
---|
93 | |
---|
94 | xset fp+ tcp/somehost:9000 |
---|
95 | |
---|
96 | to get the access to your private font server. You can add this |
---|
97 | information to the configuration data of your X server or just |
---|
98 | put it also into your .profile. In the latter case the best way |
---|
99 | to do that would be like: |
---|
100 | |
---|
101 | --------------8<----------- cut here ----------------------------- |
---|
102 | ... |
---|
103 | $HOME/fs/runme |
---|
104 | sleep 2 # give it some time to start |
---|
105 | xset fp+ tcp/somehost:9000 |
---|
106 | ... |
---|
107 | --------------8<----------- cut here ----------------------------- |
---|