source: trunk/filemanager/tp/dompdf/lib/ttf2ufm/ttf2ufm-src/FONTS.hpux @ 2000

Revision 2000, 4.5 KB checked in by amuller, 14 years ago (diff)

Ticket #597 - Implementação do módulo gerenciador de arquivos

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