[Top][All Lists]

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

RE: A suggestion on `x-select-font'

From: Herbert Euler
Subject: RE: A suggestion on `x-select-font'
Date: Fri, 27 Jun 2008 18:52:59 +0800

>> The attached patch does what I suggested: It makes the font chooser in
>> Emacs more like other X appications by setting the user selected font
>> in the font chooser dialog.  There are several problems in it, though:
> These problems might be avoided by making x-select-font take the default
> selection as an argument. Actually I suggest the following signature:
> (defun x-select-font (&optional frame default-font must-match)
> Where default font is a font-spec/entity/object to use as the initial
> selection, and must-match is a font-spec for filtering the list of
> available fonts (eg by specifiying charset, fixed width fonts only,
> bold, italic etc).

Ah, that's a better idea.  But instead of having to be only a
font-spec, I think it might make sense if must-match can be also a
function, which returns a list of fonts when called with no argument.
Is this worthy implementing?

Guanpeng Xu
Explore the seven wonders of the world

reply via email to

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