emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: A patch for enforcing double-width CJK character display


From: Eli Zaretskii
Subject: Re: A patch for enforcing double-width CJK character display
Date: Thu, 12 Apr 2012 12:53:24 +0300

> Date: Thu, 12 Apr 2012 16:56:16 +0800
> From: 黄建忠 <address@hidden>
> Cc: address@hidden
> 
> FRAME_COLUMN_WIDTH and FRAME_SPACE_WIDTH never changed, it only be 
> initialized when first font loaded.

Right, and that's by design.

> Can anybody provide a clue how to catch the new width of default font 
> via FRAME_PTR when scale happened?

I don't think there is a way to do that, if all you have is the frame
pointer.  text-scale-mode does not modify the frame's default font, it
remaps the 'default' face to another face which specifies a larger or
a smaller font.  So the way to find the width of the font after
scaling is to get hold of the font itself, or of the face to which
'default' was remapped.  Then you can use FONT_WIDTH, I think (but I
didn't test this).




reply via email to

[Prev in Thread] Current Thread [Next in Thread]