>>>> "Kyle" == Kyle Jones
Kyle> Martin Buchholz writes:
> >>>>> "Glynn" == Glynn Clements
Glynn> Andy Piper wrote:
> >> 1a) Pixel based tab stops. We have to have these to
> >> width fonts properly. I petitioned Chuck to do it but I think he got pulled
> >> onto other things before he could look at it.
Glynn> I've also advocated this in the past. In a Mule XEmacs,
Glynn> such thing as a monospaced font (consider VM's summary buffer when a
Glynn> name contains Japanese characters).
> That's not completely true. If the Kanji characters are in a font
> exactly twice as wide as the ASCII characters, and lisp code uses
> (char-width) properly, then display of column-oriented buffers should
> be correct. So perhaps VM's lisp code could be more careful. The key
> thing is that it is wrong to assume that inserting one character
> increases the current column by one.
Kyle> I tried it a while ago. It didn't work because the pixel width
Kyle> of wide chars (such as the Kanji glyphs) were not even multiples
Kyle> of the default face's font width. So the text was truncated
Kyle> incorrectly and the columns were messed up. I didn't know about
Kyle> glyph-width at the time. Using that would probably work better.
Since the 2:1 ratio is REALLY important to many Japanese users (with
any application), they tend to use *jis0201 fonts for ASCII, and the
equivalent *jis0208 fonts for Kanji. These fonts seem to always come
in pairs which have a 2:1 width ratio. Implementing the following was
a condition of my continued employment at Sun.
`x-use-halfwidth-roman-font' is a compiled Lisp function
-- loaded from "/home/martin/x/mule-packages/lisp/mule-base/mule-x-init.elc"
(x-use-halfwidth-roman-font FULLWIDTH-CHARSET ROMAN-REGISTRY)
Maybe set charset registry of the 'ascii charset to ROMAN-REGISTRY.
Do this only if:
- the current display is an X device
- the displayed width of FULLWIDTH-CHARSET is twice the displayed
width of the 'ascii charset, but only when using ROMAN-REGISTRY.
Traditionally, Asian characters have been displayed so that they
occupy exactly twice the screen space of ASCII (`halfwidth')
characters. On many systems, e.g. Sun CDE systems, this can only be
achieved by using a national variant roman font to display ASCII.