all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Nix <nix@esperi.org.uk>
To: Alexis <flexibeast@gmail.com>
Cc: Eli Zaretskii <eliz@gnu.org>, emacs-devel@gnu.org
Subject: Re: Ping! Re: `font-spec` unable to retrieve :name of font
Date: Sat, 24 Oct 2015 18:45:24 +0100	[thread overview]
Message-ID: <87611wcg97.fsf@esperi.org.uk> (raw)
In-Reply-To: <87h9lhucxx.fsf@gmail.com> (Alexis's message of "Fri, 23 Oct 2015 20:55:06 +1100")

On 23 Oct 2015, Alexis told this:

> Eli Zaretskii <eliz@gnu.org> 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	other threads:[~2015-10-24 17:45 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-13  2:13 `font-spec` unable to retrieve :name of font Alexis
2015-10-22  8:48 ` Ping! " Alexis
2015-10-22 14:59   ` Eli Zaretskii
2015-10-23  9:55     ` Alexis
2015-10-24 17:45       ` Nix [this message]
2015-10-24 17:57         ` Eli Zaretskii
2015-10-24 18:04         ` Drew Adams
2015-10-26 14:10           ` Nix
2015-10-27  2:32             ` Stephen J. Turnbull

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87611wcg97.fsf@esperi.org.uk \
    --to=nix@esperi.org.uk \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=flexibeast@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.