unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Jason Rumney <jasonr@gnu.org>
To: Juanma Barranquero <lekktu@gmail.com>
Cc: emacs-devel Mailinglist <emacs-devel@gnu.org>
Subject: Re: Emacs choosing a font with no latin characters when passed a bogus	-fn
Date: Sat, 21 Jun 2008 23:48:01 +0100	[thread overview]
Message-ID: <485D8521.4050003@gnu.org> (raw)
In-Reply-To: <f7ccd24b0806190843l324bd9f5qe410c10798c9c4c2@mail.gmail.com>

Juanma Barranquero wrote:
> Until a few weeks ago, Emacs crashed when passed a non-existent
> font/fontset, like
> 
>   emacs -Q -fn "-*-nonexistent"
> 
> Now it does not crash, but I'm still getting a weird effect (as
> witnessed in the font log below, and the attached image).
> 
> AFAICS, Emacs is selecting fonts (Estrangelo Edessa, Gautami, Latha,
> Mangal, etc.) that do not have Latin characters.

In fact, it has filtered the list of fonts down to those that do not
contain support for any recognized Windows "charset", since the registry
you supplied in the xfld pattern was not mapped by
w32-charset-info-alist.  Fonts for languages with poor OS support tend
to be deliberately broken so they can be used with various kludge
solutions on older versions of Windows, so it is not surprising that
they map ASCII codepoints to one or more characters in other scripts
rather than returning the .notdef glyph or including a basic ASCII subset.

I added a script condition to the entry for iso10646-1 fonts for latin
characters in fontset.el, which should result in a random latin font
being selected instead of using these fonts.

> sort-by: -*-unspecified-unspecified-unspecified-*-428567-*-nonexistent

Where did the 428567 come from? This looks like a real bug, though it
does later get reverted to 16, so probably never noticeable.





  parent reply	other threads:[~2008-06-21 22:48 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-19 15:43 Emacs choosing a font with no latin characters when passed a bogus -fn Juanma Barranquero
2008-06-20  6:26 ` Kenichi Handa
2008-06-21 22:48 ` Jason Rumney [this message]
2008-06-22  2:22   ` Juanma Barranquero
2008-06-23 21:27     ` Jason Rumney
2008-06-23 21:59       ` Juanma Barranquero

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=485D8521.4050003@gnu.org \
    --to=jasonr@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=lekktu@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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).