晋太元中,武陵人捕鱼为业。缘溪行,忘路之远近。忽逢桃花林,夹岸数百步,中无杂树,芳草鲜美,落英缤纷。渔人甚异之,复前行,欲穷其林。 林尽水源,便得一山,山有小口,仿佛若有光。便舍船,从口入。初极狭,才通人。复行数十步,豁然开朗。土地平旷,屋舍俨然,有良田、美池、桑竹之属。阡陌交通,鸡犬相闻。其中往来种作,男女衣着,悉如外人。黄发垂髫,并怡然自乐。 见渔人,乃大惊,问所从来。具答之。便要还家,设酒杀鸡作食。村中闻有此人,咸来问讯。自云先世避秦时乱,率妻子邑人来此绝境,不复出焉,遂与外人间隔。问今是何世,乃不知有汉,无论魏晋。此人一一为具言所闻,皆叹惋。余人各复延至其家,皆出酒食。停数日,辞去。此中人语云:“不足为外人道也。”(间隔 一作:隔绝) 既出,得其船,便扶向路,处处志之。及郡下,诣太守,说如此。太守即遣人随其往,寻向所志,遂迷,不复得路。 南阳刘子骥,高尚士也,闻之,欣然规往。未果,寻病终。后遂无问津者。
|
Server : Apache System : Linux srv.rainic.com 4.18.0-553.47.1.el8_10.x86_64 #1 SMP Wed Apr 2 05:45:37 EDT 2025 x86_64 User : rainic ( 1014) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/akaindir/www/crm/libraries/tcpdf/fonts/ttf2ufm/ttf2ufm-src/ |
Upload File : |
<HTML>
<HEAD>
<TITLE>
How to install new Type1 fonts on an HP-UX 10.20 machine
</TITLE>
</HEAD>
<BODY>
Sergey A. Babkin
<br>
<A HREF="mailto:babkin@bellatlantic.net">
<babkin@bellatlantic.net></A> or <A HREF="mailto:sab123@hotmail.com"><sab123@hotmail.com></A>
<p>
<!
(Do not edit this file, it is generated from FONTS.hpux.html!!!)
>
<H3>
How to install new Type1 fonts on an HP-UX 10.20 machine
</H3>
<!
--------------------------------------------------------
>
1. Add the font files to <tt>/usr/lib/X11/fonts/type1.st/typefaces</tt>.
<p>
2. Add the font descriptions to
<tt>/usr/lib/X11/fonts/type1.st/typefaces/fonts.scale</tt>. Run `mkfontdir'
in <tt>/usr/lib/X11/fonts/type1.st/typefaces</tt>. In the descriptions
you have to specify the font manufacturer as `misc', like:
<p>
<tt>
-misc-courier-...
</tt>
<p>
3. Copy <tt>/usr/lib/X11/fonts/type1.st/typefaces/fonts.dir</tt> to
<tt>/usr/lib/X11/fonts/type1.st/licenses/STSYSTEM/DISPLAYS/fonts.dir</tt>.
Better yet, create a symbolic link.
<p>
4. For each font encoding you are going to use create a description
file in <tt>/usr/lib/X11/fonts/stadmin/type1/charsets</tt>. Of course, if you
are going to use the same fonts in several encodings, the best way
would be to create fair descriptions of charsets and really store
only one encoding in typefaces, all the others will be produced
automatically. That's not difficult at all.
But the simplest way is to just copy the file <tt>cp.iso8859-1</tt>
to <tt>cp.<i><your-encoding-name></i></tt>, like <tt>cp.koi8-r</tt>.
<p>
5. Restart you X server and/or font server.
<p>
<H4>
What if you don't have the `root' privileges ?
</H4>
<!
----------------------------------------------
>
You still can run the font server and configure your X server
to get the fonts from it.
<p>
Further let's suppose that the name on which you are going
to run the font server is named `somehost'. Login to it
and configure the font server.
<p>
First, choose some unused port. Numbers around 9000 are a good
choice. Verify that this port is not used by somebody else
by entering
<p>
<blockquote><tt>
netstat -naf inet |grep 9000
</tt></blockquote>
and look what happens. If you get nothing, that's good, this
port is unused. If you get some lines of data, try abother port.
<p>
Go to you home directory <tt>$HOME</tt> and create some directory for
your font server, say, <tt>$HOME/fs</tt>. Copy the directory structure
of <tt>/usr/lib/X11/fonts/type1.st</tt> into <tt>$HOME/fs</tt>, so that in result
you get <tt>$HOME/fs/type1.st/<i><whatever was there></i></tt>. Copy the directory
structure of <tt>/usr/lib/X11/fonts/stadmin/type1/charsets</tt> into <tt>$HOME/fs</tt>,
so that in result you get <tt>$HOME/fs/charsets/<i><whatever was there></i></tt>.
Install the new fonts in these directorues as described above.
<p>
Then create the fontserver configuration file, say, <tt>$HOME/fs/xfs.cfg</tt>.
The sample contents (supposing that my <tt>$HOME</tt> is equal to <tt>/home/babkin</tt>)
is:
<p>
<!
--------------8<----------- cut here -----------------------------
>
<hr>
<tt>
# font server configuration file
<br>
# $XConsortium: config.cpp,v 1.7 91/08/22 11:39:59 rws Exp $
<br>
<br>
rasterizers = /usr/lib/X11/fs/ufstrast.sl,/usr/lib/X11/fs/iforast.sl
<br>
<br>
clone-self = off
<br>
use-syslog = off
<br>
catalogue = /home/babkin/fs/type1.st
<br>
# in decipoints
<br>
default-point-size = 120
<br>
default-resolutions = 100,100,75,75
<br>
port=9000
<br>
error-file=/home/babkin/fs/fs.err
</tt>
<hr>
<!
--------------8<----------- cut here -----------------------------
>
<p>
Then create the script to start your font server, say, <tt>$HOME/fs/runme</tt>:
<p>
<!
--------------8<----------- cut here -----------------------------
>
<hr>
<tt>
TYPE1_CODEPAGE_DIR=$HOME/fs/charsets
<br>
export TYPE1_CODEPAGE_DIR
<br>
kill `ps -ef | grep $HOME/\[f\]s/xfs.cfg | awk '{print $2}'`;
<br>
nohup xfs -config $HOME/fs/xfs.cfg &
</tt>
<hr>
<!
--------------8<----------- cut here -----------------------------
>
<p>
Don't forget to make <tt>$HOME/fs/runme</tt> executable. Then you can
execute it manually or from you .profile.
<p>
After you get your font server running, just execute the following
command (with proper host name and port number) in your X session
<p>
<blockquote><tt>
xset fp+ tcp/somehost:9000
</tt></blockquote>
to get the access to your private font server. You can add this
information to the configuration data of your X server or just
put it also into your .profile. In the latter case the best way
to do that would be like:
<p>
<!
--------------8<----------- cut here -----------------------------
>
<hr>
<tt>
...
<br>
$HOME/fs/runme
<br>
sleep 2 # give it some time to start
<br>
xset fp+ tcp/somehost:9000
<br>
...
</tt>
<hr>
<!
--------------8<----------- cut here -----------------------------
>
<p>
</BODY>
</HTML>