[Top][All Lists]

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

Re: [Emacs-diffs] emacs/src fontset.c

From: Jason Rumney
Subject: Re: [Emacs-diffs] emacs/src fontset.c
Date: Thu, 12 Mar 2009 21:02:23 +0800
User-agent: Thunderbird (Windows/20081209)

Kenichi Handa wrote:
By the way, after the following change, (frame-parameter nil
'font) doesn't return a fontset of the current frame.

2009-01-14  Jason Rumney  <address@hidden>

        * frame.c (x_set_font): Always store a font to the font parameter,
        never a fontset.  (Bug#1562)

Now the right way to get a fontset is:
   (face-attribute 'default :fontset)

Perhaps (frame-parameter nil 'fontset) could be made to work also. I made that change because it seemed the most obvious way to fix Bug#1562, and since we have both FRAME_FONTSET (f) and FRAME_FONT (f), which in the previous code both returned fontsets under some circumstances. It seemed cleaner to have FRAME_FONTSET always return a fontset, and FRAME_FONT always return a font.

reply via email to

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