emacs-devel
[Top][All Lists]
Advanced

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

Re: Ping! Re: `font-spec` unable to retrieve :name of font


From: Nix
Subject: Re: Ping! Re: `font-spec` unable to retrieve :name of font
Date: Sat, 24 Oct 2015 18:45:24 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

On 23 Oct 2015, Alexis told this:

> Eli Zaretskii <address@hidden> writes:
>
>> That said, I had a similar problem with fonts named like Foobar-12, see 
>> commit 7d5a7a4 which solved that.  (The original problem
>> is described in the discussion that started in 
>> http://lists.gnu.org/archive/html/help-emacs-windows/2015-06/msg00001.html.) 
>> That
>> problem could be solved because the part after the dash was a number, and a 
>> font's family cannot be a number.  I don't know if we
>> can do the same with this case. Which "family" names are we allowed to 
>> reject, exactly?  Don't forget that the weight field of the
>> XLFD spec, which follows the family, uses single-letter codes (although 
>> AFAIK "g" is not one of them); we ought not to trick
>> ourselves into accidentally treating weight as part of the font name.
>
> Yes, i gave some thought to possible heuristics that could be used in 
> instances such as this, but didn't come up with anything
> practical .... i might see if i can use FontForge to change the name to 
> something XLFD-friendly (e.g. 'InconsolataG').

This seems like a transformation Emacs should be doing itself. It
doesn't need to be a *pretty* transformation: after all, the XLFD
variant is never going to be displayed to the user, nor passed to
Fontconfig: it's just an internal thing for parts of Emacs expecting
XLFDs.

-- 
NULL && (void)



reply via email to

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