Re: problem using arphic chinese truetype fonts
Thanks for your information. :-)
On Tue, May 16, 2000 at 03:27:24AM +0800, firstname.lastname@example.org wrote:
> On Mon, 15 May 2000, Anthony Fok wrote:
> > * What platform? (i386?) How much RAM? How much free memory? etc.
> IBM Thinkpad notebook 390E 64MB RAM Celdron 336Mhz
64MB RAM. That looks good. :-)
> > * Are you using all-Debian packages? Or did you "roll-your-own"?
> all the packages is updated to the newest version in the frozen archive.
> > * What were the exact commands you used to run crxvt and friends?
> crxvt: crxvt-Big5 -pt Root -fg white -bg black
Did you set the font in ~/.Xresource? By default, crxvt uses the 16x15
taipei16 bitmap font (from ETen?) from the xfonts-intl-chinese package.
Does that (taipei16) work?
For your information, I am currently using:
crxvt -ls \
-fm '-Arphic-AR PL Mingti2L Big5-medium-r-normal--24-0-0-0-c-0-big5-0' \
-fn '-Arphic-AR PL Mingti2L Big5-medium-r-normal--24-0-0-0-c-0-iso8859-1' \
-im xcin -pt OverTheSpot -bg black -fg white -geometry +0+0 &
> also,for netscape,I choose to use the Alphic Fonts for Traditional Chinese
> and it hang too..
It works fine here. Hmm... I wonder what the problem is...
> > * Was the xfs-xtt killed _before_ or _after_ you tried to use any of the
> > arphic fonts?
> It seem when the application use the fonts,the application hang...
> killing the application make the xfs-xtt killed...thus the X exit
> abnormally too..
> > * Have you been able to use any other TrueType fonts sucessfully with
> > xfs-xtt?
> up to now,I don't have any other truetype fonts..maybe I will try it
If you happen to have some fonts from Microsoft Windows, say times.ttf and
arial.ttf, try them out and see if they can be displayed properly.
> > If you have xfonts-arphic-????00?p_2.10 installed, I suggest that you
> > try xfonts-arphic-????00?p_2.11, which is currently sitting in "Incoming".
> > You may find the following files at:
> I''m using xfonts-arphic 2.10 now...and ttf-arphic-xxxxxxx 2.10-9..
ttf-arphic-xxxxxxx 2.10-9? You meant "2.10-1", right? :-)
Please download xfonts-arphic-xxxxxxxx_2.11. 2.10 added way too many
aliases (648 of them), and those extraneous aliases have been removed. Now,
only 88 aliases. That should reduce xfs-xtt / Xserver's overhead. Please
try it out and let me know if it solves the problem. Use "wget" or "snarf"
to get the following files:
> Section "Files"
> RgbPath "/usr/X11R6/lib/X11/rgb"
> FontPath "unix/:7100"
Looks good. :-)
> catalogue = /usr/X11R6/lib/X11/fonts/misc,
Please remove /usr/X11R6/lib/X11/fonts/chinese from the list. This might
solve the problem.
Also, please do a "ls -l /usr/X11R6/lib/X11/fonts/chinese" and let me know
what's in there. If all it contains is fonts.dir and/or fonts.alias, then
you may safely do a "rm -rf /usr/X11R6/lib/X11/fonts/chinese" too.
/usr/X11R6/lib/X11/fonts/chinese is a left-over from the old
xfonts-cmex24-big5p package, which is now superceded by the new
xfonts-cmex-big5p package. The old package installed fonts in its own
/usr/X11R6/lib/X11/fonts/chinese directory, but that didn't comply with
Debian's X policy, so in the new xfonts-cmex-big5p package, the Chinese
fonts were moved to /usr/X11R6/lib/X11/fonts/misc instead.
/usr/X11R6/lib/X11/fonts/chinese was left behind by mistake.
See http://bugs.debian.org/54994 for more information.
Oh wait, I almost forgot! One more thing: the "deferglyphs = all" line MUST
/be in etc/X11/xfs/config, and the font cache control lines are recommended
deferglyphs = all
# font cache control, specified in KB
cache-hi-mark = 2048
cache-low-mark = 1433
As well, in /etc/X11/xdm/Xservers, make sure you add the option
"-deferglyphs 16", for example:
:0 local /usr/bin/X11/X vt7 -deferglyphs 16
If my hypothesis is correct, your Xserver/xfs-xtt did not hang/crash, but
rather, it was trying to load and render the ENTIRE Chinese TTF font with
14000+ glyphs (characters) into the memory. That would take _quite_ a
while, and might even crash it. That's where the "deferglyphs" option come
in: to tell both xfs-xtt and the Xserver to load only the fonts it needs.
That's why you need that option in both /etc/X11/xfs/config and
So, to summerize, please do the following three things:
1. Install the new (and lighter) xfonts-arphic-*_2.11*.deb
2. Removing the old/unused fontpath in /etc/X11/xfs/config
3. Add the deferglyphs option in both /etc/X11/xfs/config and
Let us know if it solves the problem or not.
Hope this helps.
Anthony Fok Tung-Ling Civil and Environmental Engineering
email@example.com, firstname.lastname@example.org University of Alberta, Canada
Come visit Our Lady of Victory Camp -- http://www.olvc.ab.ca/