Path: utzoo!attcan!uunet!dev8n.mdcbbs.com!marr From: marr@dev8n.mdcbbs.com (Jack Marr) Newsgroups: comp.sys.hp Subject: Display of mixed ASCII/Kanji strings in X11 Keywords: kanji X11 wfgo Message-ID: <1990Sep24.085539.1@dev8n.mdcbbs.com> Date: 24 Sep 90 08:55:39 GMT Organization: McDonnell Douglas M&E, Cypress CA Lines: 25 We are trying to display mixed ASCII/Kanji strings using the HP X11 system and the fonts from the Japanese NLIO 98861A. Our method of displaying these mixed strings on DECwindows and Sun's X implementation is to parse through the string and direct characters or sub-strings to XDrawImageString (ASCII) or XDrawImageString16 (Kanji) as appropriate. In HP X11 this doesn't work. In fact the only way we can get these strings to display is to direct them to XDrawImageString exclusively. Since we haven't loaded the Kanji font (j16.16x32), and the ASCII/Kana font (jpn.8x32) definitely doesn't contain any Kanji characters (if xfd is to be believed), we are a bit confused. How is mixed ASCII/Kanji display supposed to work, and how can we tell that Kanji characters are available? Additional info: I note in the example in HP-UX "A Guide to Internationalization of Software", on the X11 Window System (section 8.2) that only the jpn.12x24 font is loaded, but that Kanji characters are displayed. So I guess this is working as designed, but we're still mystified as to the mechanism. BTW, this is the only FM we have on the Japanese NLIO. -- Jack Marr | Voice: (714) 952-6526 McDonnell Douglas M&E | Internet: marr@mdcbbs.com Cypress, CA 90630 | FAX: (714) 952-5734