Mailing List ArchiveSupport open source code!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Re: tlug: Mucked up my kterm fonts
- To: tlug@example.com
- Subject: Re: tlug: Mucked up my kterm fonts
- From: jwb@example.com (Jim Breen)
- Date: Wed, 26 Feb 1997 09:52:46 -0500
- In-Reply-To: "Stephen J. Turnbull" <turnbull@example.com> "Re: tlug: Mucked up my kterm fonts" (Feb 25, 6:23pm)
- Reply-To: tlug@example.com
- Sender: owner-tlug
-------------------------------------------------------- tlug note from jwb@example.com (Jim Breen) -------------------------------------------------------- On Feb 25, 6:23pm, "Stephen J. Turnbull" wrote: } Subject: Re: tlug: Mucked up my kterm fonts Well, my problem is fixed, not because of specific advice from anyone on TLUG, but because Jason Molenda made a suggestion which, while it didn't work, made me revisit the problem, fiddle a bit more, and hey-presto everything is working, including the 24x24 JIS212 fonts. I'll explain below what I actually did, but to turn to Stephen's mail: >> Jim> This is a faint cry for help. I did something stupid, and I >> Jim> don't know how to get out of it. >> >> Easy enough to do in X Windows. Easy enough to undo, usually, if you >> know how, unlike Microsoft products. 8-)} >> >> Jim> I was having trouble getting the new font to work, so I was >> Jim> poking around with xfontsel. It displays the new font >> Jim> perfectly, but there was no way I could get it to work with >> Jim> kterm. Pity. >> >> ?? This is strange. I assume for xfontsel to work, you put the font >> in a directory on your X font path, did "mkfontdir", and "xset fp >> rehash". Then you should be able to (if necessary) edit your >> ~/.Xresources file and add "KTerm*VT100*...." Ooops. This is the >> KTerm you hacked up yourself. Did you do the right things with >> putting the ability to select the JISX-0212 font in a resource and all >> that? If not, if you just hard-coded that stuff, then it's not going >> to work.... You're going to have to rebuild KTerm-212 to use a >> different font. No, it's the X11R6 kterm with the patches (devised in Japan) to extend it to extra fonts, including JIS X 0212. I only found and fixed a bug which kept crashing it in jstevie (for some reason, I am the only person in the Known Universe with a penchant for using vi-like editors on JIS212 text.) And yes, it has all the kosher app.defaults, etc. etc. >> By the way, KTerm 6.2.0 advertises the ability to use JISX0212.1990-0 >> fonts.... I don't have such a font, so I haven't tried it yet. I >> guess I'll go fishing at ftp.monash.... I have the 16x16 bdf there. >> Jim> Next day, to my horror, I found the grotesque fonts were >> Jim> still there as my defaults. >> >> Yipe! >> >> Jim> I've done all the correct things like getting xfontsel to >> Jim> select the (kosher) font, highlighting the _select_ box, and >> Jim> selecting the "default" with Ctrl-Right_Button, but it never >> Jim> works. >> >> Try selecting "selection" in the Fonts menu? Did that. >> The man page is not very >> specific about this, nor is OReilly's Vol. 3 "X Window System User's >> Guide." If you don't have this book, the next best alternative is >> reading the source code, with reading man pages a distant third. Get >> it! But in this case it didn't help much. We have the O'Reilly. It didn't really help. >> As far as I can tell from the documentation, you can't directly change >> your defaults using xfontsel and the Fonts menu in X/KTerm. Are you >> sure that's what you did? It seems to me that you must have edited >> either your .Xresources or /usr/X11R6/lib/X11/app-defaults/KTerm. I didn't touch either. Neither had the time/date changed. The latter was, of course, reset when I originally did the "make install" for the kterm. I suspect there is some other file in an obscure place known to the server. >> Jim> The matter has mystified our sysadmins here, who admit to >> Jim> being not up on Xfont matters. We haven't been able to find >> Jim> where all this scaling info is held. >> >> The information is in the XLFD name (that monstrously long thing with >> lots of hyphens and ending in a registered character set name). A >> scalable-by-design font has zeros in the fields labelled >> "*-pxlsz-ptSz-resx-resy-*-avgWdth-*" in xfontsel. In such a font the >> resx and resy (design resolution) fields are dummies and should be set >> to zero. Setting any one of the others will generate a real font >> internal to the server. A font that is not scalable by design can be >> rescaled by setting pxlsz and avgWdth to zero and specifying ptSz. >> Again this generates a font internal to the server. Correct. It was the details of the XLFD which you can fiddle with interactively from xfontsel. My problem arose from that "font internal to the server" being locked in as the default. >> As far as I know, you have to edit the app-defaults file or the >> .Xresources file (preferably the one that was changed), get rid of the >> offending scaled font, and put in a correct bitmap font. You should >> only need to copy the entry for "*VT100*fontList4" to >> "*VT100*fontList" (be careful about backslash-newline combos at the >> end of the line). In any case doing this should fix things. >> >> The other possibility is that I'm wrong about the font being internal >> (this wouldn't surprise me given that kanji fonts are huge). If a new >> font has been written to a "cache file" *and* it matches an ambiguous >> (or -- horrors! -- unambiguous) XLFD better than the "real" font, then >> you're in TRUH-BULL and can only get out by deleting the server- >> generated font. You'll have to find it first.... Which I was never able to do! I'm pretty sure that the server rebuilt it each time I started X, but I could never find from where. As I mentioned, none of the resource files had been changed. >> Do "xlsfonts -fn '-*-*-*-*-*-*-16-*-*-*-*-*-jisx0208.1983-*'" and send >> me the output; I should be able to make a better guess with that info. Well, being a purist, I use the 1990 sets (those last two jinmeiyoukanji are *SO* important 8-)} Anyway, it's fixed, and this is how it happened. (a) Jason asked me if I still had the problem if I ran X as another user. I tried this, and yes it still occurred. (b) I tried both the old JE kterm and the patched version, noticed that they pick up different fonts, and looked (again) at the app.defaults. The newer kterm has a general XLFD mask and has the older line-by-line font details commented out. That got be wondering about the fact that I had never been able get my 24x24 JIS212 font working. (c) I (re)visited my font.dir file and found that the XLFD of the 24x24 JIS212 font didn't match the mask. 'mkfontdir' extracts this from the header of the .bdf, and I hadn't previously twigged that a mask was operating with the newer kterm. (d) I edited the .bdf header to make the XLFD conform to what kterm wanted ("--misc-fixed-r- etc etc."), ran mkfontdir, restarted X and crossed my fingers. The result: A. The 24x24 font now works correctly, so now I can select "Large" for text containing both JIS X 212 and JIS X 208 characters. B. somewhere along the line the bogus scalings of the 16x16 font fell off. It has reverted to the ones I wanted. So, great sighs of relief, head-shaking at the mysteries of it all, delight that can now use the 24x24 JIS212. Thanks for the suggestions, Stephen. I had pretty well tried them all already. Obviously resting the problem and making a fresh start helped. BTW, I have mentioned a 24x24 bdf for JIS212. This is NOT publicly available. A friend who shall be nameless, but who, er, works in fonts slipped me a copy for personal use. For all sorts of labyrinthine commercial reasons his company cannot release bitmapped versions of this font. One reason I was keen to get the font is that I use (from both Linux and Ultrix) the "jem2tex" printing method, which enable printing of Japanese via ordinary non-Japanese LaTeX, TeX and postscript. The fonts used are special MFs created from the 24x24 bitmapped fonts. I intend to hack into the font generators to extend them to JIS212. (FWIW, at home I use an HP inkjet, and print through gs. Works fine.) Back to work.. Jim Breen jwb@example.com ----------------------------------------------------------------- a word from the sponsor will appear below ----------------------------------------------------------------- The TLUG mailing list is proudly sponsored by TWICS - Japan's First Public-Access Internet System. Now offering 20,000 yen/year flat rate Internet access with no time charges. Full line of corporate Internet and intranet products are available. info@example.com Tel: 03-3351-5977 Fax: 03-3353-6096
- Follow-Ups:
- Re: tlug: Mucked up my kterm fonts
- From: "Stephen J. Turnbull" <turnbull@example.com>
Home | Main Index | Thread Index
- Prev by Date: tlug: X internationalized input (XIM and kinput2)
- Next by Date: Re: tlug: Thashed to death
- Prev by thread: Re: tlug: Mucked up my kterm fonts
- Next by thread: Re: tlug: Mucked up my kterm fonts
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links