[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)
- `font-spec` unable to retrieve :name of font, Alexis, 2015/10/12
- Ping! Re: `font-spec` unable to retrieve :name of font, Alexis, 2015/10/22
- Re: Ping! Re: `font-spec` unable to retrieve :name of font, Eli Zaretskii, 2015/10/22
- Re: Ping! Re: `font-spec` unable to retrieve :name of font, Alexis, 2015/10/23
- Re: Ping! Re: `font-spec` unable to retrieve :name of font,
Nix <=
- Re: Ping! Re: `font-spec` unable to retrieve :name of font, Eli Zaretskii, 2015/10/24
- RE: Ping! Re: `font-spec` unable to retrieve :name of font, Drew Adams, 2015/10/24
- Re: Ping! Re: `font-spec` unable to retrieve :name of font, Nix, 2015/10/26
- Re: Ping! Re: `font-spec` unable to retrieve :name of font, Stephen J. Turnbull, 2015/10/26