[Top][All Lists]
[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).
- Re: A patch for enforcing double-width CJK character display, Kan-Ru Chen, 2012/04/11
- Re: A patch for enforcing double-width CJK character display, 黄建忠, 2012/04/11
- Re: A patch for enforcing double-width CJK character display, 黄建忠, 2012/04/12
- Re: A patch for enforcing double-width CJK character display,
Eli Zaretskii <=
- Re: A patch for enforcing double-width CJK character display, 黄建忠, 2012/04/12
- Re: A patch for enforcing double-width CJK character display, Eli Zaretskii, 2012/04/12
- Re: A patch for enforcing double-width CJK character display, 黄建忠, 2012/04/12
- Re: A patch for enforcing double-width CJK character display, Stefan Monnier, 2012/04/12
- Message not available
- Re: A patch for enforcing double-width CJK character display, 黄建忠, 2012/04/13
- Re: A patch for enforcing double-width CJK character display, 黄建忠, 2012/04/13
- Message not available
- Re: A patch for enforcing double-width CJK character display, Stefan Monnier, 2012/04/13
- Re: A patch for enforcing double-width CJK character display, Miles Bader, 2012/04/15
- Re: A patch for enforcing double-width CJK character display, William Xu, 2012/04/15
- Re: A patch for enforcing double-width CJK character display, Miles Bader, 2012/04/15