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

Re: How to edit a fonts.dir for xtt module in xfree86 4.0.2 ?



On Tue, 6 Mar 2001, Gong Yi LIAO wrote:
> 
> As title ,I have get some other truetype fonts by Prof.Wang,
> YCCU,Taiwan;but i do not know how to make xtt module(libxtt.a)
> to recognize the fonts ,would like to offer the informations for
> making fonts.dir ? Thanz!


> Question 2: What are the differences between fonts.dir for freetype and
> xtt? 

Different formats.  :-)

The "freetype" one is from Europe; it also supports CJK, but without
poor-man's bold.  For italics, a linear transformation is needed.  Other
than that, its format looks very much like other non-TrueType fonts.dir.
See my posting on debian-chinese-big5 about my experience with the
"freetype" module.

The "xtt" one is from Japan.  Each entry in fonts.dir is prepended by some
variables that specify, for example, boldness, slantness for italics, etc.
To see an example, just look at existing entries for the Arphic fonts in
/usr/lib/X11/fonts/TrueType/fonts.scale or fonts.dir, or in
/etc/X11/fonts/xfonts-arphic-????????.scale (?).  (I can't remember.)

I have decided to stick with using the "xtt" module for now because it
works and because it is what we and the CLE had been using all along.  But
yes, as our little experiment with "freetype" show, both ways work.  :-)
I believe thhsieh is using the "freetype" module on his Debian
system.  :-)

Cheers,

Anthony

-- 
Anthony Fok Tung-Ling                Civil and Environmental Engineering
foka@ualberta.ca, foka@debian.org    University of Alberta, Canada
   Debian GNU/Linux Chinese Project -- http://www.debian.org/intl/zh/
Come visit Our Lady of Victory Camp -- http://www.olvc.ab.ca/



Reply to: