On Fri, Oct 05, 2012 at 10:47:48AM +0200, Christoph Lohmann wrote: > Greetings. > > While adding more font support to st I was thinking about how to add for > example the big Chinese or Japanese gylphs to st. > > If you are regularly using non‐Latin gylphs in your terminals, please > tell me what terminal you are using for this and how you prefer to dis‐ > play them inline between the latin characters. What pixel size are you > using to properly be able to read those non‐Latin characters?
I use xterm with 'font' and 'wideFont' options, both using 18px 'misc-fixed' font so it's all rather simple. The 'wideFont' characters just use two columns. I have no idea how this is done in the Xft world... My case: xterm*font: -misc-fixed-medium-r-normal--18-120-100-100-c-90-iso10646-1 xterm*boldFont: -misc-fixed-bold-r-normal--18-120-100-100-c-90-iso10646-1 xterm*wideFont: -misc-fixed-medium-*-*-ko-18-*-*-*-*-*-iso10646-1 xterm*wideBoldFont: -misc-fixed-medium-*-*-ko-18-*-*-*-*-*-iso10646-1 xterm*ximFont: -misc-fixed-medium-*-*-ko-18-*-*-*-*-*-iso10646-1 한글, 漢字 1234567890 http://imgur.com/oMFRO Having something like this in dwm too would be wonderful (for window titles at least). I've never really looked into that, though. > There are two ways to add non-Latin support to st: > > 1. Adopt wide chars or variable chars and allow those characters to not > really work, but display right, like urxvt does it. > > 2. First rely on the pixelsize of the given font and cut or scale the > bigger font down. Then allow the user to dynamically scale up the pixel‐ > size, so it is possible to scale up, if such a character appears. This > will lead to bigger latin fonts too. Not scaling them is possible too, > but would create big gaps between them. > > Anyone has some comments on this? > > > Sincerely, > > Christoph Lohmann Thanks for the effort here, Petr
pgpT1Pi2qTx3h.pgp
Description: PGP signature
