Re: problem using arphic chinese truetype fonts

2000-05-24 Thread Anthony Fok
On Mon, May 15, 2000 at 09:26:52AM +0800, [EMAIL PROTECTED] wrote:
   When I tried to use the arphic chinese truetype fonts in
 application such as crxvt or netscape.The application will hang...
 and after I tried to kill the application,the X windows exit abnormally
 and I find that the xfs-xtt is killed.What's the problem?

As a general rule, when you are reporting a problem, please be more specific
and tell us the details.  In particular:

  * What platform? (i386?)  How much RAM?  How much free memory?  etc.
  * Are you using all-Debian packages?  Or did you roll-your-own?
  * What versions of Debian packages, esp. ttf-arphic-*, xfonts-arphic-*,
xfs-xtt, libxfont-xtt, xlib6g, freetype2, and your Linux kernel, etc.
  * potato, woody, or Debian 2.1?
  * What were the exact commands you used to run crxvt and friends?
  * Was the xfs-xtt killed _before_ or _after_ you tried to use any of the
arphic fonts?
  * Have you been able to use any other TrueType fonts sucessfully with
xfs-xtt?

Arphic fonts work great on my Cyrix P166 system with 64MB RAM, Linux
kernel 2.2.15, and XFree86 3.3.6, running on a Debian 2.2 (potato) system.

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:

http://incoming.debian.org/

 ce1d1c504eec03707be8fcc7fb80f4b1 4706 x11 optional 
xfonts-arphic-bsmi00lp_2.11_all.deb
 64133d9bb9d9f62c6e01a881e7124b89 4710 x11 optional 
xfonts-arphic-bkai00mp_2.11_all.deb
 e8a9e765fb44b1d4ea4974323e9eb4eb 4704 x11 optional 
xfonts-arphic-gbsn00lp_2.11_all.deb
 53219e29435081cd2356297418be7668 4710 x11 optional 
xfonts-arphic-gkai00mp_2.11_all.deb

Here's the changelog:


xfonts-arphic (2.11) frozen unstable; urgency=low

  * To Release Manager: As the changes are minimal, and it would
reduce the overhead and improve the stability of the X server and
X font server, please include it in potato.
  * Removed the number of aliases for the fonts.  There were 648 aliases
for each single Chinese TTF font, most of them just for circumventing
the font size glitch in Netscape 4.x.  No wonder xlsfonts was so slow.
Mea culpa.  :-)  The number of aliases has been reduced to 88.
  * [README.Debian]: Added a note to tell the users to use -default-*
 instead of -arphic-* in Netscape 4.x for the Chinese TrueType
 fonts to be displayed properly.

 -- Anthony Fok [EMAIL PROTECTED]  Sat, 13 May 2000 02:54:17 -0600


This might help if you have, say, less than 32MB.

You may also check your /etc/X11/xfs/config and /etc/X11/XF86Config
files. I've attached the former with this message.  As for XF86Config,
make sure you have the line

FontPath   unix/:7100

and all the other direct FontPaths removed or commented out, so
the fontpaths listed in in xfs/config are not repeated in XF86Config.

Please let me know if the above remedies work or not.

Anthony

-- 
Anthony Fok Tung-LingCivil and Environmental Engineering
[EMAIL PROTECTED], [EMAIL PROTECTED]University of Alberta, Canada
Come visit Our Lady of Victory Camp -- http://www.olvc.ab.ca/




Re: problem using arphic chinese truetype fonts

2000-05-24 Thread Anthony Fok
Thanks for your information.  :-)

On Tue, May 16, 2000 at 03:27:24AM +0800, [EMAIL PROTECTED] 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?
 yes..

 all the packages is updated to the newest version in the frozen archive.

Good.

* 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:

#!/bin/sh

export LANG=zh_TW.Big5
xcin 
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
 later..

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-xxx 2.10-9.. 

ttf-arphic-xxx 2.10-9?  You meant 2.10-1, right?  :-)

Please download xfonts-arphic-_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:

http://incoming.debian.org/xfonts-arphic-bsmi00lp_2.11_all.deb
http://incoming.debian.org/xfonts-arphic-bkai00mp_2.11_all.deb
http://incoming.debian.org/xfonts-arphic-gbsn00lp_2.11_all.deb
http://incoming.debian.org/xfonts-arphic-gkai00mp_2.11_all.deb

 XF86Config:
 Section Files
RgbPath/usr/X11R6/lib/X11/rgb
FontPath   unix/:7100
 EndSection

Looks good.  :-)

 /etc/X11/xfs/config:
 catalogue = /usr/X11R6/lib/X11/fonts/misc,
 /usr/X11R6/lib/X11/fonts/Type1,
 /usr/X11R6/lib/X11/fonts/75dpi:unscaled,
 /usr/X11R6/lib/X11/fonts/100dpi:unscaled,
 /usr/X11R6/lib/X11/fonts/75dpi,
 /usr/X11R6/lib/X11/fonts/100dpi,
 /usr/X11R6/lib/X11/fonts/chinese,
 /usr/X11R6/lib/X11/fonts/TrueType

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
/too:

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
/etc/X11/xdm/Xservers.

So, to summerize, please do 

Re: problem using arphic chinese truetype fonts

2000-05-24 Thread 50191914


On Mon, 15 May 2000, Anthony Fok wrote:

 On Mon, May 15, 2000 at 09:26:52AM +0800, [EMAIL PROTECTED] wrote:
  When I tried to use the arphic chinese truetype fonts in
  application such as crxvt or netscape.The application will hang...
  and after I tried to kill the application,the X windows exit abnormally
  and I find that the xfs-xtt is killed.What's the problem?
 
 As a general rule, when you are reporting a problem, please be more specific
 and tell us the details.  In particular:
 
   * What platform? (i386?)  How much RAM?  How much free memory?  etc.
IBM Thinkpad notebook 390E 64MB RAM Celdron 336Mhz
   * Are you using all-Debian packages?  Or did you roll-your-own?
yes..
   * What versions of Debian packages, esp. ttf-arphic-*, xfonts-arphic-*,
 xfs-xtt, libxfont-xtt, xlib6g, freetype2, and your Linux kernel, etc.
   * potato, woody, or Debian 2.1?
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
also,for netscape,I choose to use the Alphic Fonts for Traditional Chinese
and it hang too..
   * 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
later..
 
 Arphic fonts work great on my Cyrix P166 system with 64MB RAM, Linux
 kernel 2.2.15, and XFree86 3.3.6, running on a Debian 2.2 (potato) system.
 
 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-xxx 2.10-9.. 
   http://incoming.debian.org/
 
  ce1d1c504eec03707be8fcc7fb80f4b1 4706 x11 optional 
 xfonts-arphic-bsmi00lp_2.11_all.deb
  64133d9bb9d9f62c6e01a881e7124b89 4710 x11 optional 
 xfonts-arphic-bkai00mp_2.11_all.deb
  e8a9e765fb44b1d4ea4974323e9eb4eb 4704 x11 optional 
 xfonts-arphic-gbsn00lp_2.11_all.deb
  53219e29435081cd2356297418be7668 4710 x11 optional 
 xfonts-arphic-gkai00mp_2.11_all.deb
 
 Here's the changelog:
 
 
 xfonts-arphic (2.11) frozen unstable; urgency=low
 
   * To Release Manager: As the changes are minimal, and it would
 reduce the overhead and improve the stability of the X server and
 X font server, please include it in potato.
   * Removed the number of aliases for the fonts.  There were 648 aliases
 for each single Chinese TTF font, most of them just for circumventing
 the font size glitch in Netscape 4.x.  No wonder xlsfonts was so slow.
 Mea culpa.  :-)  The number of aliases has been reduced to 88.
   * [README.Debian]: Added a note to tell the users to use -default-*
  instead of -arphic-* in Netscape 4.x for the Chinese TrueType
  fonts to be displayed properly.
 
  -- Anthony Fok [EMAIL PROTECTED]  Sat, 13 May 2000 02:54:17 -0600
 
 
 This might help if you have, say, less than 32MB.
 
 You may also check your /etc/X11/xfs/config and /etc/X11/XF86Config
 files. I've attached the former with this message.  As for XF86Config,
 make sure you have the line
 
 FontPath   unix/:7100
 
Here's my part of XF86Config and /etc/X11/xfs/config
XF86Config:
Section Files
   RgbPath/usr/X11R6/lib/X11/rgb
   FontPath   unix/:7100
EndSection
/etc/X11/xfs/config:
catalogue = /usr/X11R6/lib/X11/fonts/misc,
/usr/X11R6/lib/X11/fonts/Type1,
/usr/X11R6/lib/X11/fonts/75dpi:unscaled,
/usr/X11R6/lib/X11/fonts/100dpi:unscaled,
/usr/X11R6/lib/X11/fonts/75dpi,
/usr/X11R6/lib/X11/fonts/100dpi,
/usr/X11R6/lib/X11/fonts/chinese,
/usr/X11R6/lib/X11/fonts/TrueType

 and all the other direct FontPaths removed or commented out, so
 the fontpaths listed in in xfs/config are not repeated in XF86Config.
 
 Please let me know if the above remedies work or not.
 
 Anthony
 
 -- 
 Anthony Fok Tung-LingCivil and Environmental Engineering
 [EMAIL PROTECTED], [EMAIL PROTECTED]University of Alberta, Canada
 Come visit Our Lady of Victory Camp -- http://www.olvc.ab.ca/
 
 




Re: problem using arphic chinese truetype fonts

2000-05-24 Thread 50191914


On Mon, 15 May 2000, Anthony Fok wrote:

 Thanks for your information.  :-)
 
 On Tue, May 16, 2000 at 03:27:24AM +0800, [EMAIL PROTECTED] 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?
  yes..
 
  all the packages is updated to the newest version in the frozen archive.
 
 Good.
 
 * 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:
 
 #!/bin/sh
 
 export LANG=zh_TW.Big5
 xcin 
 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..
um...still don't work...before I try to kill the crxvt...
and run top and see that XF86_SVGA is working heavily..(9X.X% CPU
usage...)xfs-xtt is still here before I kill the application...

 
 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
  later..
 
 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.
How do I install the M$ truetype font?
In redhat i have used a program called mkttfdir(may spell wrong)...to
make font.alias and fonts.dir.. but now seem don't have that program
 
   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-xxx 2.10-9.. 
 
 ttf-arphic-xxx 2.10-9?  You meant 2.10-1, right?  :-)
 
 Please download xfonts-arphic-_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:
 
   http://incoming.debian.org/xfonts-arphic-bsmi00lp_2.11_all.deb
   http://incoming.debian.org/xfonts-arphic-bkai00mp_2.11_all.deb
   http://incoming.debian.org/xfonts-arphic-gbsn00lp_2.11_all.deb
   http://incoming.debian.org/xfonts-arphic-gkai00mp_2.11_all.deb
 
I have tried to installed xfonts-arphic-gbsn* and xfonts-arphic-bsmi*..
(can't install bkai and bsmi coz havn't installed their truetype fonts..)
but seem...the same thing occur...

  XF86Config:
  Section Files
 RgbPath/usr/X11R6/lib/X11/rgb
 FontPath   unix/:7100
  EndSection
 
 Looks good.  :-)
 
  /etc/X11/xfs/config:
  catalogue = /usr/X11R6/lib/X11/fonts/misc,
  /usr/X11R6/lib/X11/fonts/Type1,
  /usr/X11R6/lib/X11/fonts/75dpi:unscaled,
  /usr/X11R6/lib/X11/fonts/100dpi:unscaled,
  /usr/X11R6/lib/X11/fonts/75dpi,
  /usr/X11R6/lib/X11/fonts/100dpi,
  /usr/X11R6/lib/X11/fonts/chinese,
  /usr/X11R6/lib/X11/fonts/TrueType
 
 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.

yes..it just remain fonts.dir and fonts.alias...but deleting them and
remove
the path in /etc/X11/xfs/config doesn't help...:(... 
 /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, 

Re: problem using arphic chinese truetype fonts

2000-05-24 Thread Anthony Fok
On Tue, May 16, 2000 at 12:39:56PM +0800, [EMAIL PROTECTED] wrote:
  export LANG=zh_TW.Big5
  xcin 
  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..
 um...still don't work...before I try to kill the crxvt...
 and run top and see that XF86_SVGA is working heavily..(9X.X% CPU
 usage...)xfs-xtt is still here before I kill the application...

Hmm... not sure what XF86_SVGA is doing.  However, I do know that XF86_SVGA
or any other Xserver would use lots of CPU_time if it can't talk to xfs-xtt.

  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.
 How do I install the M$ truetype font?
 In redhat i have used a program called mkttfdir(may spell wrong)...to
 make font.alias and fonts.dir.. but now seem don't have that program

As root, run:

# apt-get install fttools

However, in Debian, mkttfdir may not do what you want, especially in
X font directories used by Debian packages.  So, instead of using mkttfdir,
You may try the following instead:

  1. Save the attached file (in this message).
  2. Login as root.
  3. Save that file as:
/etc/X11/fonts/TrueType/microsoft-truetype.scale
  4. Copy some MS Window non-CJK (iso-8859-1) *.TTF files
 (arial, times, etc.) to /usr/lib/X11/fonts/TrueType
  5. Run:
# cd /usr/lib/X11/fonts/TrueType
# /usr/sbin/update-fonts-scale
# mkfontdir
  6. Stop both xdm and xfs-xtt, then restart both.
  7. Test the fonts.

 I have tried to installed xfonts-arphic-gbsn* and xfonts-arphic-bsmi*..
 (can't install bkai and bsmi coz havn't installed their truetype fonts..)
 but seem...the same thing occur...

Did you restart both xfs-xtt and xdm?

# /etc/init.d/xdm stop; /etc/init.d/xfs-xtt stop
# /etc/init.d/xfs-xtt start; /etc/init.d/xdm start

 I find that these line  have already added b4.

You are running X from xdm, and not by

$ startx

right?  If you use startx, you'll have to run it like

$ startx -deferglyph 16

too.

  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
   /etc/X11/xdm/Xservers.
 tried all that...seem don't work...:(.
 (my XF86_SVGA is still using 98.x% CPU before I end the message)..

Check these files:

/var/log/xdm.log
/var/log/xfs.log
~/.xsession-errors

and look for clues.

Well, I think I have run out of ideas.  Hope the last few remedies above
would do the trick.  Good luck!

Anthony

-- 
Anthony Fok Tung-LingCivil and Environmental Engineering
[EMAIL PROTECTED], [EMAIL PROTECTED]University of Alberta, Canada
Come visit Our Lady of Victory Camp -- http://www.olvc.ab.ca/

20
arialbd.ttf -Monotype-Arial-bold-r-normal--0-0-0-0-p-0-iso8859-1
verdanaz.ttf -Microsoft-Verdana-bold-i-normal--0-0-0-0-p-0-iso8859-1
verdanai.ttf -Microsoft-Verdana-medium-i-normal--0-0-0-0-p-0-iso8859-1
verdana.ttf -Microsoft-Verdana-medium-r-normal--0-0-0-0-p-0-iso8859-1
timesi.ttf -Monotype-Times New Roman-medium-i-normal--0-0-0-0-p-0-iso8859-1
timesbi.ttf -Monotype-Times New Roman-bold-i-normal--0-0-0-0-p-0-iso8859-1
timesbd.ttf -Monotype-Times New Roman-bold-r-normal--0-0-0-0-p-0-iso8859-1
times.ttf -Monotype-Times New Roman-medium-r-normal--0-0-0-0-p-0-iso8859-1
impact.ttf -Monotype-Impact-medium-r-normal--0-0-0-0-p-0-iso8859-1
couri.ttf -Monotype-Courier New-medium-i-normal--0-0-0-0-m-0-iso8859-1
courbi.ttf -Monotype-Courier New-bold-i-normal--0-0-0-0-m-0-iso8859-1
courbd.ttf -Monotype-Courier New-bold-r-normal--0-0-0-0-m-0-iso8859-1
cour.ttf -Monotype-Courier New-medium-r-normal--0-0-0-0-m-0-iso8859-1
cour.ttf -Monotype-Courier New-medium-r-normal--0-0-0-0-p-0-iso8859-1
comicbd.ttf -Microsoft-Comic Sans MS-bold-r-normal--0-0-0-0-p-0-iso8859-1
comic.ttf -Microsoft-Comic Sans MS-medium-r-normal--0-0-0-0-p-0-iso8859-1
ariblk.ttf -Monotype-Arial Black-medium-r-normal--0-0-0-0-p-0-iso8859-1
ariali.ttf -Monotype-Arial-medium-i-normal--0-0-0-0-p-0-iso8859-1
arialbi.ttf -Monotype-Arial-bold-i-normal--0-0-0-0-p-0-iso8859-1
arial.ttf -Monotype-Arial-medium-r-normal--0-0-0-0-p-0-iso8859-1
verdanab.ttf -Microsoft-Verdana-bold-r-normal--0-0-0-0-p-0-iso8859-1
symbol.ttf  -Microsoft-Symbol-normal-r-normal--0-0-0-0-p-0-iso8859-1


Re: problem using arphic chinese truetype fonts

2000-05-24 Thread 50191914


On Tue, 16 May 2000, Anthony Fok wrote:

 On Wed, May 17, 2000 at 10:17:02AM +0800, [EMAIL PROTECTED] wrote:
   right?  If you use startx, you'll have to run it like
   
 $ startx -deferglyph 16
   
  Yes..I havn't used xdm and use startx to start XWin
  and if I use startx -deferglyph 16 ...
  from the .xsession-error ..
  it say invalid number of argument(2)...
  seem the -deferglyph 16 not recognized.
  but then I tried xdm and it work
  maybe misspelling the argument -deferglyph 16
 
 Yes, indeed; I forgot an s.  Try, instead:
 
   $ startx -deferglyphs 16

Actually I have tried startx -deferglyphs 16 also...but still not right... 
 We usually use xdm in Debian as opposed to using startx in Red Hat.
 If you usually go into X11 right after you boot up your computer, you might
 want to use xdm by default too.  :-)
 




Re: problem using arphic chinese truetype fonts

2000-05-24 Thread Anthony Fok
On Wed, May 17, 2000 at 11:59:17AM +0800, [EMAIL PROTECTED] wrote:
 Actually I have tried startx -deferglyphs 16 also...but still not right... 

You're right.  /usr/bin/X11/startx doesn't seem to accept such command-line
options.  Maybe .xinitrc or other files are needed.  I don't know.
See man startx or study the source of /usr/bin/X11/startx (it's a sh
script).  Or better yet, use xdm.  :-)

Anthony

-- 
Anthony Fok Tung-LingCivil and Environmental Engineering
[EMAIL PROTECTED], [EMAIL PROTECTED]University of Alberta, Canada
Come visit Our Lady of Victory Camp -- http://www.olvc.ab.ca/




Re: problem using arphic chinese truetype fonts

2000-05-24 Thread Herbert Xu
Anthony Fok [EMAIL PROTECTED] wrote:
 On Wed, May 17, 2000 at 11:59:17AM +0800, [EMAIL PROTECTED] wrote:
 Actually I have tried startx -deferglyphs 16 also...but still not right... 

 You're right.  /usr/bin/X11/startx doesn't seem to accept such command-line
 options.  Maybe .xinitrc or other files are needed.  I don't know.
 See man startx or study the source of /usr/bin/X11/startx (it's a sh
 script).  Or better yet, use xdm.  :-)

If you wish to supply options to the X server via startx, you can do

startx -- -whatever
-- 
Debian GNU/Linux 2.1 is out! ( http://www.debian.org/ )
Email:  Herbert Xu ~{许志壬~} [EMAIL PROTECTED]
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt




Re: problem using arphic chinese truetype fonts

2000-05-24 Thread Hong-Hsing Liu
From: [EMAIL PROTECTED]
Subject: Re: problem using arphic chinese truetype fonts
Date: Wed, 17 May 2000 11:59:17 +0800 (HKT)
Message-ID: [EMAIL PROTECTED]

50191914 
50191914 
50191914 On Tue, 16 May 2000, Anthony Fok wrote:
50191914 
50191914  On Wed, May 17, 2000 at 10:17:02AM +0800, [EMAIL PROTECTED] wrote:
50191914right?  If you use startx, you'll have to run it like
50191914
50191914$ startx -deferglyph 16
50191914
50191914   Yes..I havn't used xdm and use startx to start XWin
50191914   and if I use startx -deferglyph 16 ...
50191914   from the .xsession-error ..
50191914   it say invalid number of argument(2)...
50191914   seem the -deferglyph 16 not recognized.
50191914   but then I tried xdm and it work
50191914   maybe misspelling the argument -deferglyph 16
50191914  
50191914  Yes, indeed; I forgot an s.  Try, instead:
50191914  
50191914  $ startx -deferglyphs 16
50191914 
50191914 Actually I have tried startx -deferglyphs 16 also...but still not 
right... 
50191914  We usually use xdm in Debian as opposed to using startx in Red Hat.
50191914  If you usually go into X11 right after you boot up your computer, 
you might
50191914  want to use xdm by default too.  :-)
50191914  


Maybe this...

  startx -- -deferglyphs 16


Liu, Hong-Hsing
[EMAIL PROTECTED]




Re: problem using arphic chinese truetype fonts

2000-05-16 Thread 50191914


On Mon, 15 May 2000, Anthony Fok wrote:

 Thanks for your information.  :-)
 
 On Tue, May 16, 2000 at 03:27:24AM +0800, [EMAIL PROTECTED] 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?
  yes..
 
  all the packages is updated to the newest version in the frozen archive.
 
 Good.
 
 * 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:
 
 #!/bin/sh
 
 export LANG=zh_TW.Big5
 xcin 
 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..
um...still don't work...before I try to kill the crxvt...
and run top and see that XF86_SVGA is working heavily..(9X.X% CPU
usage...)xfs-xtt is still here before I kill the application...

 
 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
  later..
 
 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.
How do I install the M$ truetype font?
In redhat i have used a program called mkttfdir(may spell wrong)...to
make font.alias and fonts.dir.. but now seem don't have that program
 
   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-xxx 2.10-9.. 
 
 ttf-arphic-xxx 2.10-9?  You meant 2.10-1, right?  :-)
 
 Please download xfonts-arphic-_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:
 
   http://incoming.debian.org/xfonts-arphic-bsmi00lp_2.11_all.deb
   http://incoming.debian.org/xfonts-arphic-bkai00mp_2.11_all.deb
   http://incoming.debian.org/xfonts-arphic-gbsn00lp_2.11_all.deb
   http://incoming.debian.org/xfonts-arphic-gkai00mp_2.11_all.deb
 
I have tried to installed xfonts-arphic-gbsn* and xfonts-arphic-bsmi*..
(can't install bkai and bsmi coz havn't installed their truetype fonts..)
but seem...the same thing occur...

  XF86Config:
  Section Files
 RgbPath/usr/X11R6/lib/X11/rgb
 FontPath   unix/:7100
  EndSection
 
 Looks good.  :-)
 
  /etc/X11/xfs/config:
  catalogue = /usr/X11R6/lib/X11/fonts/misc,
  /usr/X11R6/lib/X11/fonts/Type1,
  /usr/X11R6/lib/X11/fonts/75dpi:unscaled,
  /usr/X11R6/lib/X11/fonts/100dpi:unscaled,
  /usr/X11R6/lib/X11/fonts/75dpi,
  /usr/X11R6/lib/X11/fonts/100dpi,
  /usr/X11R6/lib/X11/fonts/chinese,
  /usr/X11R6/lib/X11/fonts/TrueType
 
 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.

yes..it just remain fonts.dir and fonts.alias...but deleting them and
remove
the path in /etc/X11/xfs/config doesn't help...:(... 
 /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, 

Re: problem using arphic chinese truetype fonts

2000-05-16 Thread Anthony Fok
On Tue, May 16, 2000 at 12:39:56PM +0800, [EMAIL PROTECTED] wrote:
  export LANG=zh_TW.Big5
  xcin 
  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..
 um...still don't work...before I try to kill the crxvt...
 and run top and see that XF86_SVGA is working heavily..(9X.X% CPU
 usage...)xfs-xtt is still here before I kill the application...

Hmm... not sure what XF86_SVGA is doing.  However, I do know that XF86_SVGA
or any other Xserver would use lots of CPU_time if it can't talk to xfs-xtt.

  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.
 How do I install the M$ truetype font?
 In redhat i have used a program called mkttfdir(may spell wrong)...to
 make font.alias and fonts.dir.. but now seem don't have that program

As root, run:

# apt-get install fttools

However, in Debian, mkttfdir may not do what you want, especially in
X font directories used by Debian packages.  So, instead of using mkttfdir,
You may try the following instead:

  1. Save the attached file (in this message).
  2. Login as root.
  3. Save that file as:
/etc/X11/fonts/TrueType/microsoft-truetype.scale
  4. Copy some MS Window non-CJK (iso-8859-1) *.TTF files
 (arial, times, etc.) to /usr/lib/X11/fonts/TrueType
  5. Run:
# cd /usr/lib/X11/fonts/TrueType
# /usr/sbin/update-fonts-scale
# mkfontdir
  6. Stop both xdm and xfs-xtt, then restart both.
  7. Test the fonts.

 I have tried to installed xfonts-arphic-gbsn* and xfonts-arphic-bsmi*..
 (can't install bkai and bsmi coz havn't installed their truetype fonts..)
 but seem...the same thing occur...

Did you restart both xfs-xtt and xdm?

# /etc/init.d/xdm stop; /etc/init.d/xfs-xtt stop
# /etc/init.d/xfs-xtt start; /etc/init.d/xdm start

 I find that these line  have already added b4.

You are running X from xdm, and not by

$ startx

right?  If you use startx, you'll have to run it like

$ startx -deferglyph 16

too.

  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
   /etc/X11/xdm/Xservers.
 tried all that...seem don't work...:(.
 (my XF86_SVGA is still using 98.x% CPU before I end the message)..

Check these files:

/var/log/xdm.log
/var/log/xfs.log
~/.xsession-errors

and look for clues.

Well, I think I have run out of ideas.  Hope the last few remedies above
would do the trick.  Good luck!

Anthony

-- 
Anthony Fok Tung-LingCivil and Environmental Engineering
[EMAIL PROTECTED], [EMAIL PROTECTED]University of Alberta, Canada
Come visit Our Lady of Victory Camp -- http://www.olvc.ab.ca/

20
arialbd.ttf -Monotype-Arial-bold-r-normal--0-0-0-0-p-0-iso8859-1
verdanaz.ttf -Microsoft-Verdana-bold-i-normal--0-0-0-0-p-0-iso8859-1
verdanai.ttf -Microsoft-Verdana-medium-i-normal--0-0-0-0-p-0-iso8859-1
verdana.ttf -Microsoft-Verdana-medium-r-normal--0-0-0-0-p-0-iso8859-1
timesi.ttf -Monotype-Times New Roman-medium-i-normal--0-0-0-0-p-0-iso8859-1
timesbi.ttf -Monotype-Times New Roman-bold-i-normal--0-0-0-0-p-0-iso8859-1
timesbd.ttf -Monotype-Times New Roman-bold-r-normal--0-0-0-0-p-0-iso8859-1
times.ttf -Monotype-Times New Roman-medium-r-normal--0-0-0-0-p-0-iso8859-1
impact.ttf -Monotype-Impact-medium-r-normal--0-0-0-0-p-0-iso8859-1
couri.ttf -Monotype-Courier New-medium-i-normal--0-0-0-0-m-0-iso8859-1
courbi.ttf -Monotype-Courier New-bold-i-normal--0-0-0-0-m-0-iso8859-1
courbd.ttf -Monotype-Courier New-bold-r-normal--0-0-0-0-m-0-iso8859-1
cour.ttf -Monotype-Courier New-medium-r-normal--0-0-0-0-m-0-iso8859-1
cour.ttf -Monotype-Courier New-medium-r-normal--0-0-0-0-p-0-iso8859-1
comicbd.ttf -Microsoft-Comic Sans MS-bold-r-normal--0-0-0-0-p-0-iso8859-1
comic.ttf -Microsoft-Comic Sans MS-medium-r-normal--0-0-0-0-p-0-iso8859-1
ariblk.ttf -Monotype-Arial Black-medium-r-normal--0-0-0-0-p-0-iso8859-1
ariali.ttf -Monotype-Arial-medium-i-normal--0-0-0-0-p-0-iso8859-1
arialbi.ttf -Monotype-Arial-bold-i-normal--0-0-0-0-p-0-iso8859-1
arial.ttf -Monotype-Arial-medium-r-normal--0-0-0-0-p-0-iso8859-1
verdanab.ttf -Microsoft-Verdana-bold-r-normal--0-0-0-0-p-0-iso8859-1
symbol.ttf  -Microsoft-Symbol-normal-r-normal--0-0-0-0-p-0-iso8859-1


Re: problem using arphic chinese truetype fonts

2000-05-16 Thread 50191914


On Tue, 16 May 2000, Anthony Fok wrote:

 On Tue, May 16, 2000 at 12:39:56PM +0800, [EMAIL PROTECTED] wrote:
   export LANG=zh_TW.Big5
   xcin 
   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..
  um...still don't work...before I try to kill the crxvt...
  and run top and see that XF86_SVGA is working heavily..(9X.X% CPU
  usage...)xfs-xtt is still here before I kill the application...
 
 Hmm... not sure what XF86_SVGA is doing.  However, I do know that XF86_SVGA
 or any other Xserver would use lots of CPU_time if it can't talk to xfs-xtt.
 
   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.
  How do I install the M$ truetype font?
  In redhat i have used a program called mkttfdir(may spell wrong)...to
  make font.alias and fonts.dir.. but now seem don't have that program
 
 As root, run:
 
   # apt-get install fttools
 
 However, in Debian, mkttfdir may not do what you want, especially in
 X font directories used by Debian packages.  So, instead of using mkttfdir,
 You may try the following instead:
 
   1. Save the attached file (in this message).
   2. Login as root.
   3. Save that file as:
   /etc/X11/fonts/TrueType/microsoft-truetype.scale
   4. Copy some MS Window non-CJK (iso-8859-1) *.TTF files
  (arial, times, etc.) to /usr/lib/X11/fonts/TrueType
   5. Run:
   # cd /usr/lib/X11/fonts/TrueType
   # /usr/sbin/update-fonts-scale
   # mkfontdir
   6. Stop both xdm and xfs-xtt, then restart both.
   7. Test the fonts.
 
I may try that later...
 
 You are running X from xdm, and not by
 
   $ startx
 
 right?  If you use startx, you'll have to run it like
 
   $ startx -deferglyph 16
 
Yes..I havn't used xdm and use startx to start XWin
and if I use startx -deferglyph 16 ...
from the .xsession-error ..
it say invalid number of argument(2)...
seem the -deferglyph 16 not recognized.
but then I tried xdm and it worke
maybe misspelling the argument -deferglyph 16




Re: problem using arphic chinese truetype fonts

2000-05-16 Thread Anthony Fok
On Wed, May 17, 2000 at 10:17:02AM +0800, [EMAIL PROTECTED] wrote:
  right?  If you use startx, you'll have to run it like
  
  $ startx -deferglyph 16
  
 Yes..I havn't used xdm and use startx to start XWin
 and if I use startx -deferglyph 16 ...
 from the .xsession-error ..
 it say invalid number of argument(2)...
 seem the -deferglyph 16 not recognized.
 but then I tried xdm and it work
 maybe misspelling the argument -deferglyph 16

Yes, indeed; I forgot an s.  Try, instead:

$ startx -deferglyphs 16

We usually use xdm in Debian as opposed to using startx in Red Hat.
If you usually go into X11 right after you boot up your computer, you might
want to use xdm by default too.  :-)

Anyway, I am glad that the problem is solved.  :-)

Anthony

-- 
Anthony Fok Tung-LingCivil and Environmental Engineering
[EMAIL PROTECTED], [EMAIL PROTECTED]University of Alberta, Canada
Come visit Our Lady of Victory Camp -- http://www.olvc.ab.ca/




Re: problem using arphic chinese truetype fonts

2000-05-15 Thread 50191914


On Mon, 15 May 2000, Anthony Fok wrote:

 On Mon, May 15, 2000 at 09:26:52AM +0800, [EMAIL PROTECTED] wrote:
  When I tried to use the arphic chinese truetype fonts in
  application such as crxvt or netscape.The application will hang...
  and after I tried to kill the application,the X windows exit abnormally
  and I find that the xfs-xtt is killed.What's the problem?
 
 As a general rule, when you are reporting a problem, please be more specific
 and tell us the details.  In particular:
 
   * What platform? (i386?)  How much RAM?  How much free memory?  etc.
IBM Thinkpad notebook 390E 64MB RAM Celdron 336Mhz
   * Are you using all-Debian packages?  Or did you roll-your-own?
yes..
   * What versions of Debian packages, esp. ttf-arphic-*, xfonts-arphic-*,
 xfs-xtt, libxfont-xtt, xlib6g, freetype2, and your Linux kernel, etc.
   * potato, woody, or Debian 2.1?
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
also,for netscape,I choose to use the Alphic Fonts for Traditional Chinese
and it hang too..
   * 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
later..
 
 Arphic fonts work great on my Cyrix P166 system with 64MB RAM, Linux
 kernel 2.2.15, and XFree86 3.3.6, running on a Debian 2.2 (potato) system.
 
 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-xxx 2.10-9.. 
   http://incoming.debian.org/
 
  ce1d1c504eec03707be8fcc7fb80f4b1 4706 x11 optional 
 xfonts-arphic-bsmi00lp_2.11_all.deb
  64133d9bb9d9f62c6e01a881e7124b89 4710 x11 optional 
 xfonts-arphic-bkai00mp_2.11_all.deb
  e8a9e765fb44b1d4ea4974323e9eb4eb 4704 x11 optional 
 xfonts-arphic-gbsn00lp_2.11_all.deb
  53219e29435081cd2356297418be7668 4710 x11 optional 
 xfonts-arphic-gkai00mp_2.11_all.deb
 
 Here's the changelog:
 
 
 xfonts-arphic (2.11) frozen unstable; urgency=low
 
   * To Release Manager: As the changes are minimal, and it would
 reduce the overhead and improve the stability of the X server and
 X font server, please include it in potato.
   * Removed the number of aliases for the fonts.  There were 648 aliases
 for each single Chinese TTF font, most of them just for circumventing
 the font size glitch in Netscape 4.x.  No wonder xlsfonts was so slow.
 Mea culpa.  :-)  The number of aliases has been reduced to 88.
   * [README.Debian]: Added a note to tell the users to use -default-*
  instead of -arphic-* in Netscape 4.x for the Chinese TrueType
  fonts to be displayed properly.
 
  -- Anthony Fok [EMAIL PROTECTED]  Sat, 13 May 2000 02:54:17 -0600
 
 
 This might help if you have, say, less than 32MB.
 
 You may also check your /etc/X11/xfs/config and /etc/X11/XF86Config
 files. I've attached the former with this message.  As for XF86Config,
 make sure you have the line
 
 FontPath   unix/:7100
 
Here's my part of XF86Config and /etc/X11/xfs/config
XF86Config:
Section Files
   RgbPath/usr/X11R6/lib/X11/rgb
   FontPath   unix/:7100
EndSection
/etc/X11/xfs/config:
catalogue = /usr/X11R6/lib/X11/fonts/misc,
/usr/X11R6/lib/X11/fonts/Type1,
/usr/X11R6/lib/X11/fonts/75dpi:unscaled,
/usr/X11R6/lib/X11/fonts/100dpi:unscaled,
/usr/X11R6/lib/X11/fonts/75dpi,
/usr/X11R6/lib/X11/fonts/100dpi,
/usr/X11R6/lib/X11/fonts/chinese,
/usr/X11R6/lib/X11/fonts/TrueType

 and all the other direct FontPaths removed or commented out, so
 the fontpaths listed in in xfs/config are not repeated in XF86Config.
 
 Please let me know if the above remedies work or not.
 
 Anthony
 
 -- 
 Anthony Fok Tung-LingCivil and Environmental Engineering
 [EMAIL PROTECTED], [EMAIL PROTECTED]University of Alberta, Canada
 Come visit Our Lady of Victory Camp -- http://www.olvc.ab.ca/
 
 




Re: problem using arphic chinese truetype fonts

2000-05-15 Thread Anthony Fok
Thanks for your information.  :-)

On Tue, May 16, 2000 at 03:27:24AM +0800, [EMAIL PROTECTED] 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?
 yes..

 all the packages is updated to the newest version in the frozen archive.

Good.

* 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:

#!/bin/sh

export LANG=zh_TW.Big5
xcin 
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
 later..

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-xxx 2.10-9.. 

ttf-arphic-xxx 2.10-9?  You meant 2.10-1, right?  :-)

Please download xfonts-arphic-_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:

http://incoming.debian.org/xfonts-arphic-bsmi00lp_2.11_all.deb
http://incoming.debian.org/xfonts-arphic-bkai00mp_2.11_all.deb
http://incoming.debian.org/xfonts-arphic-gbsn00lp_2.11_all.deb
http://incoming.debian.org/xfonts-arphic-gkai00mp_2.11_all.deb

 XF86Config:
 Section Files
RgbPath/usr/X11R6/lib/X11/rgb
FontPath   unix/:7100
 EndSection

Looks good.  :-)

 /etc/X11/xfs/config:
 catalogue = /usr/X11R6/lib/X11/fonts/misc,
 /usr/X11R6/lib/X11/fonts/Type1,
 /usr/X11R6/lib/X11/fonts/75dpi:unscaled,
 /usr/X11R6/lib/X11/fonts/100dpi:unscaled,
 /usr/X11R6/lib/X11/fonts/75dpi,
 /usr/X11R6/lib/X11/fonts/100dpi,
 /usr/X11R6/lib/X11/fonts/chinese,
 /usr/X11R6/lib/X11/fonts/TrueType

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
/too:

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
/etc/X11/xdm/Xservers.

So, to summerize, please do