>>>> "Stephen" == Stephen J Turnbull
<turnbull(a)sk.tsukuba.ac.jp> writes:
> Any hints on how to figure out what xemacs is doing to select
fonts in
> the non-xft build?
Stephen> Xft works completely differently from the legacy X11 engine; you may
Stephen> as well forget about porting anything from X to Xft.
I was just looking at hints for where to look. :-) I don't know
anything about X so porting is out of the question for me.
Stephen> I suspect that the problem is here in the array `charset_table' in
Stephen> src/objects-xlike-inc.c:
Stephen> { &Vcharset_thai_tis620, NULL, NULL },
Stephen> { &Vcharset_arabic_iso8859_6, NULL, NULL },
Stephen> { &Vcharset_hebrew_iso8859_8, "Hebrew", "he"
},
Stephen> Compare to the entry for Vcharset_hebrew-iso8859_6. The second
Stephen> element is just a name, but the third is what is used to check the
Stephen> repertoire. If you can fill these in correctly ... hm, on second
Stephen> thought these are probably just ISO 639. Try editing those lines to
Stephen> { &Vcharset_thai_tis620, "Thai", "th" },
Stephen> { &Vcharset_arabic_iso8859_6, "Arabic", "ar"
},
Stephen> { &Vcharset_hebrew_iso8859_8, "Hebrew", "he"
},
Hmm. I tried that. Thai and Arabic still don't work. I also see
that the entry for cyrillic_iso8859_5 appears to work, but the
charset_table entry is NULL there.
It could very well be that I didn't set up Xft correctly. Here's
what I have now:
(define-specifier-tag 'lang-ar)
(define-specifier-tag 'lang-th)
(set-face-font 'default "KacstBook-12" nil
'(lang-ar) 'remove-tag-set-append)
(set-face-font 'default "BrowalliaUPC-12" nil
'(lang-th) 'remove-tag-set-append)
I'm pretty sure the fonts are correct. At the very least those are
the fonts in /usr/openwin/lib/locale/{ar,th}/X11/fonts/TrueType.
I also don't see any messages about checking if font foo handles bar
like:
checking if Courier New-12 handles Greek
Xft font Courier New-12 supports el
checking if Courier New Hebrew-12 handles Hebrew
Xft font Courier New Hebrew-12 supports he
There are no messages about Thai or Arabic. I do see messages for
Japanese, Chinese, and Korean.
Also, on a different note. Are the fonts for the splash screen done
too early for set-face-font 'default in my xemacs init? The columns
on the splash screen don't line up if I have different .Xdefaults font
and set-face-font. Just curious.
Ray
_______________________________________________
XEmacs-Beta mailing list
XEmacs-Beta(a)xemacs.org
http://calypso.tux.org/cgi-bin/mailman/listinfo/xemacs-beta