Ken Moffat wrote: > > B. With enough "magic" in .Xresources, an xterm will know it has to > use a TTF. BUT, it searches for the first available font and uses > that - I had erroneously believed the faceName resource would select > the font. <snip> > My "magic" in .Xresources seems to be > *VT100*locale: UTF-8 > *VT100*faceName: "FreeMono" > *VT100*faceSize: 12 > (I suppose I could be overlooking another entry)
I think the problem here might be the *locale resource. I don't think that you pass the locale you want, you are actually telling the resource whether you want it to respect for current locale setting or not. So, it's a boolean, and I have it set to 1. That would in turn affect Fontconfig, which tries to make font selections based on your charset, etc. I could be wrong there, but I've had these settings working for a while. Here's exactly what I'm applying: [11:22 AM [EMAIL PROTECTED] tail /usr/share/X11/app-defaults/XTerm XTerm*Geometry: 80x40 XTerm*scrollBar: on XTerm*rightScrollBar: on Xterm*color255: on *VT100.locale: 1 *VT100.faceName: Monospace *VT100.faceSize: 10 *customization: -color But, here's what I played around with when I was testing, and it seems to work. I just tried it again right now, and it seems to work, although I can't recall exactly what FreeMono looks like. ! *VT100.locale: 1 ! *VT100.faceName: "DejaVu Sans Mono" *VT100.faceName: "FreeMono" ! *VT100.faceName: "Luxi Mono" ! *VT100.faceName: "Monospace" ! *VT100.faceName: Monospace ! *VT100.faceSize: 8 Hmm, no I take that back. It keeps selecting DejaVu every time. The only way I could get FreeMono explicitly was by passing -fa on the command line. I'm not sure what's going on there. > 1. The faceSize seems to be used, but is this enough in itself to > make xterm use a TTF ? If not, what is/are the other key value(s) ? Look at XTerm(1), seems there's a resource renderFont, but it defaults to True. > 2. Anybody know how to write a resource to force the specified font, > with size and charwidth ? (e.g. so that my xterms suddenly use > FreeMono with size 10 and charwidth 9). I don't know anything about setting the width. > One of my test documents is 'quickbrown.txt' from the ucs-fonts > package (which _doesn't_ provide TTFs). With DejaVu I can see the > Latin and Cyrillic, with FreeMono I can see the hebrew, but none of > my fonts seem to work correctly on the Japanese or Thai examples. >From the above, it appears that I'm not using xterm's fonts correctly. But even when I force FreeMono, it doesn't do the right thing. You need a smarter terminal, unfortunately, which knows how to better interact with Fontconfig. Gnome-terminal is handling it nicely, and I'm sure this comes from Pango. But I also have the baekmuk, firefly and kochi fonts installed. The thai looks like it could be sketchy. See screenshot here: http://anduin.linuxfromscratch.org/~dnicholson/terminal_chars.png That's the best I can say about the subject. Good luck. -- Dan -- http://linuxfromscratch.org/mailman/listinfo/blfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page
