[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

CAD and TT_fonts



>>>>> Ian == Ian W Wright <ian [at] iw63.demon.co.uk> writes:

Ian> except that it isn't free!

TANSTAAFL. This is a _good_ thing. (Granted, it would be better if
it were free.)

Ian> X Error of failed request: BadAccess (attempt to access private
Ian> resource denied)
Ian> Major opcode of failed request: 89 (X_StoreColors)
Ian> Serial number of failed request: 310
Ian> Current serial number in output stream: 583

This is the X server being unfriendly to your program.

CAD programs are extremely demanding of colors. They need a lot of
them, and they often need read-write allocation (this allows tricks to
make layered diagrams fast). Modern window managers are pigs; they
allocate up lots of colors. OTOH, TrueColor means never being able to
change the meaning of a color cell. You just can't win....

(1) Check if VariCAD needs read/write colors. (Also called PseudoColor
and DirectColor). You may need to change your server or your color
depth (16 bpp is PseudoColor, 24/32 bpp is usually TrueColor, not
direct color---fewer colors may make your CAD program happier!)

(2) Check for an option to use a private colormap. (Common names are
--private, --cmap, and --pmap.) Using a private colormap, the
display will flash as you enter and leave VariCAD, and either the
VariCAD windows or the other windows will display in false colors.
(It's possible to avoid this by configuring other programs correctly
and starting VariCAD first, except that Enlightenment friends are
pigheaded about hogging the colormap.)

Ian> ttmkfdir: error in loading shared libraries libttf.so.2:
Ian> cannot open shared object file : no such file or directory

Ian> I don't understand this as libttf.so.2 is sitting in
Ian> /usr/temp/freetype-1.2/lib/.libs/libttf.so.2 which the
Ian> Makefile line -

Nobody reads makefiles except Make; most programs do not have source
installed. .so files are installed in executable memory by ld.so (aka
ld-linux.so), which gets its configuration from /etc/ld.so.conf.

Try
(a) in a Bourne-compatible shell (eg bash)
LD_PRELOAD=/usr/temp/freetype-1.2/lib/.libs/libttf.so.2 ttmkfdir

(b) in a Bourne-compatible shell
export LD_LIBRARY_PATH=/usr/temp/freetype-1.2/lib/.libs/; ttmkfdir

(c) in a root shell
if ! fgrep /usr/local/lib /etc/ld.so.conf; then echo /usr/local/lib >>/etc/ld.so.conf; fi
cp /usr/temp/freetype-1.2/lib/.libs/libttf.so.2 /usr/local/lib/
ldconfig
ttmkfdir

(d) man ld.so
man ld.so.conf

(d), of course, has nothing to do with getting TrueType fonts working.

--
University of Tsukuba Tennodai 1-1-1 Tsukuba 305-8573 JAPAN
Institute of Policy and Planning Sciences Tel/fax: +81 (298) 53-5091
__________________________________________________________________________
What are those two straight lines for? Free software rules.

Start your own FREE mailing list at

&copy; 2000 Microsoft Corporation. All Rights Reserved