source: branches/2.2/filemanager/tp/dompdf/lib/ttf2ufm/ttf2ufm-src/FONTS.hpux.html @ 3019

Revision 3019, 5.4 KB checked in by amuller, 14 years ago (diff)

Ticket #1135 - Corrigindo CSS e adicionando filemanager

Line 
1<HTML>
2<HEAD>
3<TITLE>
4How to install new Type1 fonts on an HP-UX 10.20 machine
5</TITLE>
6</HEAD>
7<BODY>
8Sergey A. Babkin
9<br>
10<A HREF="mailto:babkin@bellatlantic.net">
11&lt;babkin@bellatlantic.net&gt;</A> or <A HREF="mailto:sab123@hotmail.com">&lt;sab123@hotmail.com&gt;</A>
12<p>
13<!
14(Do not edit this file, it is generated from FONTS.hpux.html!!!)
15>
16
17<H3>
18How to install new Type1 fonts on an HP-UX 10.20 machine
19</H3>
20<!
21--------------------------------------------------------
22>
23
241. Add the font files to <tt>/usr/lib/X11/fonts/type1.st/typefaces</tt>.
25<p>
26
272. Add the font descriptions to
28<tt>/usr/lib/X11/fonts/type1.st/typefaces/fonts.scale</tt>. Run `mkfontdir'
29in <tt>/usr/lib/X11/fonts/type1.st/typefaces</tt>. In the descriptions
30you have to specify the font manufacturer as `misc', like:
31<p>
32
33<tt>
34&nbsp;&nbsp;-misc-courier-...
35</tt>
36<p>
37
383. Copy <tt>/usr/lib/X11/fonts/type1.st/typefaces/fonts.dir</tt> to
39<tt>/usr/lib/X11/fonts/type1.st/licenses/STSYSTEM/DISPLAYS/fonts.dir</tt>.
40Better yet, create a symbolic link.
41<p>
42
434. For each font encoding you are going to use create a description
44file in <tt>/usr/lib/X11/fonts/stadmin/type1/charsets</tt>. Of course, if you
45are going to use the same fonts in several encodings, the best way
46would be to create fair descriptions of charsets and really store
47only one encoding in typefaces, all the others will be produced
48automatically. That's not difficult at all.
49But the simplest way is to just copy the file <tt>cp.iso8859-1</tt>
50to <tt>cp.<i>&lt;your-encoding-name&gt;</i></tt>, like <tt>cp.koi8-r</tt>.
51<p>
52
535. Restart you X server and/or font server.
54<p>
55
56<H4>
57What if you don't have the `root' privileges ?
58</H4>
59<!
60----------------------------------------------
61>
62
63You still can run the font server and configure your X server
64to get the fonts from it.
65<p>
66
67Further let's suppose that the name on which you are going
68to run the font server is named `somehost'. Login to it
69and configure the font server.
70<p>
71
72First, choose some unused port. Numbers around 9000 are a good
73choice. Verify that this port is not used by somebody else
74by entering
75<p>
76
77<blockquote><tt>
78        netstat -naf inet |grep 9000
79</tt></blockquote>
80
81and look what happens. If you get nothing, that's good, this
82port is unused. If you get some lines of data, try abother port.
83<p>
84
85Go to you home directory <tt>$HOME</tt> and create some directory for
86your font server, say, <tt>$HOME/fs</tt>. Copy the directory structure
87of <tt>/usr/lib/X11/fonts/type1.st</tt> into <tt>$HOME/fs</tt>, so that in result
88you get <tt>$HOME/fs/type1.st/<i>&lt;whatever was there&gt;</i></tt>. Copy the directory
89structure of <tt>/usr/lib/X11/fonts/stadmin/type1/charsets</tt> into <tt>$HOME/fs</tt>,
90so that in result you get <tt>$HOME/fs/charsets/<i>&lt;whatever was there&gt;</i></tt>.
91Install the new fonts in these directorues as described above.
92<p>
93
94Then create the fontserver configuration file, say, <tt>$HOME/fs/xfs.cfg</tt>.
95The sample contents (supposing that my <tt>$HOME</tt> is equal to <tt>/home/babkin</tt>)
96is:
97<p>
98
99<!
100--------------8&lt;----------- cut here -----------------------------
101>
102<hr>
103<tt>
104# font server configuration file                                   
105<br>
106# $XConsortium: config.cpp,v 1.7 91/08/22 11:39:59 rws Exp $       
107<br>
108                                                                   
109<br>
110rasterizers = /usr/lib/X11/fs/ufstrast.sl,/usr/lib/X11/fs/iforast.sl
111<br>
112                                                                   
113<br>
114clone-self = off                                                   
115<br>
116use-syslog = off                                                   
117<br>
118catalogue = /home/babkin/fs/type1.st             
119<br>
120# in decipoints                                                     
121<br>
122default-point-size = 120                                           
123<br>
124default-resolutions = 100,100,75,75
125<br>
126port=9000                                                           
127<br>
128error-file=/home/babkin/fs/fs.err                 
129</tt>
130<hr>
131<!
132--------------8&lt;----------- cut here -----------------------------
133>
134<p>
135
136Then create the script to start your font server, say, <tt>$HOME/fs/runme</tt>:
137<p>
138
139<!
140--------------8&lt;----------- cut here -----------------------------
141>
142<hr>
143<tt>
144TYPE1_CODEPAGE_DIR=$HOME/fs/charsets                                         
145<br>
146export TYPE1_CODEPAGE_DIR                                                 
147<br>
148kill `ps -ef | grep $HOME/\[f\]s/xfs.cfg | awk '{print $2}'`;
149<br>
150nohup xfs -config $HOME/fs/xfs.cfg &
151</tt>
152<hr>
153<!
154--------------8&lt;----------- cut here -----------------------------
155>
156<p>
157
158Don't forget to make <tt>$HOME/fs/runme</tt> executable. Then you can
159execute it manually or from you .profile.
160<p>
161
162After you get your font server running, just execute the following
163command (with proper host name and port number) in your X session
164<p>
165
166<blockquote><tt>
167        xset fp+ tcp/somehost:9000
168</tt></blockquote>
169
170to get the access to your private font server. You can add this
171information to the configuration data of your X server or just
172put it also into your .profile. In the latter case the best way
173to do that would be like:
174<p>
175
176<!
177--------------8&lt;----------- cut here -----------------------------
178>
179<hr>
180<tt>
181...
182<br>
183$HOME/fs/runme
184<br>
185sleep 2 # give it some time to start
186<br>
187xset fp+ tcp/somehost:9000
188<br>
189...
190</tt>
191<hr>
192<!
193--------------8&lt;----------- cut here -----------------------------
194>
195<p>
196</BODY>
197</HTML>
Note: See TracBrowser for help on using the repository browser.