Hi,

At Fri, 16 Nov 2001 23:22:36 -0800,
Keith Packard wrote:

> Yes, the behaviour is intended -- it's designed for terminal applications 
> that want to use several faces on the screen but need them to all have the 
> same width. The intended use (and what X term does) is to open the "main" 
> font and then specify the width of that font when opening subsequent fonts.

Thank you for your answer.

> I'm curious as to whether you're interested in using this behaviour or 
> just mystified as to its existance.

I am now interested in a terminal emulator which uses Xft.  Thus,
my interest is usage of fixed-width fonts.  I am now planning to
open a font (without XFT_WIDTH), checks the width, and then close and
reopen the font with XFT_WIDTH of the value.  Since there are some
(and will be many) fonts which contain doublewidth (or quasi-doublewidth)
glyphs and people may want to use these fonts for singlewidth glyphs,
I am planning to use XftTextExtent() to check the width of "W",
instead of using max_advance_width.  Though there may be many
"singlewidth" glyphs which are wider than "W", I think this is a
not so bad way to determine the width of singlewidth glyphs.  Anyway,
Using proportional fonts for fixed-width purpose is a makeshift and
the best way would be preparing fixed-width fonts.

BTW, I am testing the software using "Kochi Gothic" and "Kochi Mincho"
Unicode truetype Japanese fonts.  I found that XftDrawString*() cannot
display characters if these fonts are used in XFT_PIXEL_SIZEs of
10, 11, 12, 13, 14, 15, 16, 17, 20, and 21.  Curiously enough, the
Kochi fonts include built-in bitmap fonts for these sizes.  I imagine
either of FreeType, Xft, or Kochi fonts is responsible for this 
problem.  Since I don't know at all about TrueType font format,
I cannot check it.

Kochi Gothic and Kochi Mincho fonts:
http://www.on.cs.keio.ac.jp/~yasu/jp_fonts.html
Though this page is written in Japanese, I think you can easily
find .tar.bz2 files for kochi-gothic and kochi-mincho.

I am using Debian Sid (XFree86 4.1.0 and FreeType 2.0.2).

---
Tomohiro KUBOTA <[EMAIL PROTECTED]>
http://www.debian.or.jp/~kubota/
"Introduction to I18N"  http://www.debian.org/doc/manuals/intro-i18n/
_______________________________________________
I18n mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/i18n

Reply via email to