[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: `set-frame-font' doesn't support font aliases
From: |
Stefan Monnier |
Subject: |
Re: `set-frame-font' doesn't support font aliases |
Date: |
Tue, 03 Jun 2008 03:29:16 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) |
>> The current code for `set-frame-font' doesn't support font
>> aliases - for example, these sexps don't work:
>> (set-frame-font "5x7") ;; error: "Font `5x7' is not defined"
>> (set-frame-font "fixed") ;; uses some unexpected font
> I've just installed a fix to check also an alias name in X
> font-backend. But, as Emacs accepts a fontconfig-style font
> name too, for instance, "fixed" is parsed as a font of
> family "fixed" which may match with many fonts.
> Is keeping backward compatibility of (set-frame-font
> "fixed") important enough to drop the support of
> fontconfig-style name?
Can you recover the Emacs-22 behavior by restricting the backends to
just `x'? If so, I think it's OK.
Stefan