"Samuel Teng" <samuel.teng@xxxxxxxxx> writes: > HI, > > I have little knowledge about fonts and locales. > > I found there is a gb2312.1980-0.enc.gz under > /usr/X11R6/lib/X11/fonts/large/. Is that a chinese font? The name rather suggests that it contains some encoding information. Font files usually have a .pcf or .ttf suffix, possibly gzipped. > I test my TinyX11 in this way: > (1) Cross compiled XFree86-4.2.0 with MIPS gcc; > (2) Copy the required libs to my NFS target directory; > (3) Booting my MIPS target board; > (4) After target board running up, then execute: > # xinit /usr/X11R6/bin/xinitrc > And the LCD will display a X log! > # export DISPLAY=:0 > # xmessage -g 192x64-0-0 -button OKAY " 中国 " > It will dump out the following messages: > > Warning: locale not supported by Xlib, locale set to C Apparently you have set the LANG and/or LC_* environment variables to something not supported by Xlib. I don't know whether this makes a difference to the font selection. > > Warning: X locale modifiers not supported, using default > > Warning: Input Method Open Failed This is only relevant for typing. > > Warning: Unable to load any usable fontset This looks worse, but I don't know exactly what it means. I've never had that message myself. I pasted the above command into an xterm here, and in the terminal it looked fine (well, Chinese characters at least, I don't know what they mean), but the xmessage window displayed garbage. Apparently it didn't choose the proper font. I'm afraid I'm out of clues now.
-- Måns Rullgård mru@xxxxxx