all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Juanma Barranquero <lekktu@gmail.com>
To: Kenichi Handa <handa@m17n.org>
Cc: 2994@emacsbugs.donarmstrong.com, miles@gnu.org
Subject: bug#2994: Recent change to font.c:font_load_for_lface affects variable-pitch face in the modeline
Date: Thu, 16 Apr 2009 13:14:38 +0200	[thread overview]
Message-ID: <f7ccd24b0904160414h1482a99bid0afcccd7043d213@mail.gmail.com> (raw)
In-Reply-To: <E1LuL1K-0003sW-LY@etlken>

On Thu, Apr 16, 2009 at 08:24, Kenichi Handa <handa@m17n.org> wrote:

> As the family of your variable-pitch is "Sans Serif", if you
> don't have a font of the exactly same family, what font is
> actually selected for it depends on a font backend.  As my
> change caused an extra font-sorting, perhaps it changed the
> order of fonts that have the same score.

There's something more going on, I think.

I'm setting variable-pitch to use a family of "DejaVu Serif":

Face: variable-pitch (sample) (customize this face)
Documentation: The basic variable-pitch face.
Defined in `faces.el'.

        Family: DejaVu Serif
       Foundry: unspecified
         Width: unspecified
        Height: unspecified
        Weight: unspecified
         Slant: unspecified
    Foreground: unspecified
    Background: unspecified
     Underline: unspecified
      Overline: unspecified
Strike-through: unspecified
           Box: unspecified
       Inverse: unspecified
       Stipple: unspecified
          Font: unspecified
       Fontset: unspecified
       Inherit: unspecified

and I *have* a DejaVu Serif face:

ELISP> (x-list-fonts "DejaVu Serif")
("-outline-DejaVu
Serif-normal-italic-normal-serif-*-*-*-*-p-*-iso10646-1"
"-outline-DejaVu
Serif-bold-italic-normal-serif-*-*-*-*-p-*-iso10646-1"
"-outline-DejaVu
Serif-bold-normal-normal-serif-*-*-*-*-p-*-iso10646-1"
"-outline-DejaVu
Serif-normal-normal-normal-serif-*-*-*-*-p-*-iso10646-1"
"-outline-DejaVu
Serif-normal-italic-normal-serif-*-*-*-*-p-*-iso8859-5"
"-outline-DejaVu
Serif-normal-italic-normal-serif-*-*-*-*-p-*-iso8859-2"
"-outline-DejaVu
Serif-normal-italic-normal-serif-*-*-*-*-p-*-iso8859-4"
"-outline-DejaVu
Serif-normal-italic-normal-serif-*-*-*-*-p-*-iso8859-9"
"-outline-DejaVu
Serif-normal-italic-normal-serif-*-*-*-*-p-*-iso8859-7"
"-outline-DejaVu
Serif-normal-italic-normal-serif-*-*-*-*-p-*-iso8859-1"
"-outline-DejaVu Serif-bold-italic-normal-serif-*-*-*-*-p-*-iso8859-5"
"-outline-DejaVu Serif-bold-italic-normal-serif-*-*-*-*-p-*-iso8859-2"
"-outline-DejaVu Serif-bold-italic-normal-serif-*-*-*-*-p-*-iso8859-4"
"-outline-DejaVu Serif-bold-italic-normal-serif-*-*-*-*-p-*-iso8859-9"
"-outline-DejaVu Serif-bold-italic-normal-serif-*-*-*-*-p-*-iso8859-7"
"-outline-DejaVu Serif-bold-italic-normal-serif-*-*-*-*-p-*-iso8859-1"
"-outline-DejaVu Serif-bold-normal-normal-serif-*-*-*-*-p-*-iso8859-5"
"-outline-DejaVu Serif-bold-normal-normal-serif-*-*-*-*-p-*-iso8859-2"
"-outline-DejaVu Serif-bold-normal-normal-serif-*-*-*-*-p-*-iso8859-4"
"-outline-DejaVu Serif-bold-normal-normal-serif-*-*-*-*-p-*-iso8859-9"
"-outline-DejaVu Serif-bold-normal-normal-serif-*-*-*-*-p-*-iso8859-7"
"-outline-DejaVu Serif-bold-normal-normal-serif-*-*-*-*-p-*-iso8859-1"
"-outline-DejaVu
Serif-normal-normal-normal-serif-*-*-*-*-p-*-iso8859-5"
"-outline-DejaVu
Serif-normal-normal-normal-serif-*-*-*-*-p-*-iso8859-2"
"-outline-DejaVu
Serif-normal-normal-normal-serif-*-*-*-*-p-*-iso8859-4"
"-outline-DejaVu
Serif-normal-normal-normal-serif-*-*-*-*-p-*-iso8859-9"
"-outline-DejaVu
Serif-normal-normal-normal-serif-*-*-*-*-p-*-iso8859-7"
"-outline-DejaVu
Serif-normal-normal-normal-serif-*-*-*-*-p-*-iso8859-1")

but still, when I insert (propertize " " 'face 'variable-pitch), I get
FreeIdgSerif:

        character: SPC (32, #o40, #x20)
preferred charset: ascii (ASCII (ISO646 IRV))
       code point: 0x20
           syntax:   	which means: whitespace
         category: .:Base, a:ASCII, l:Latin
      buffer code: #x20
        file code: #x20 (encoded by coding system utf-8-dos)
          display: by this font (glyph code)
    uniscribe:-outline-FreeIdgSerif-normal-normal-normal-serif-13-*-*-*-p-*-iso10646-1
(#x02)

Character code properties: customize what to show
  name: SPACE
  general-category: Zs (Separator, Space)
  canonical-combining-class: 0 (Spacing, split, enclosing, reordrant,
and Tibetan subjoined)
  bidi-class: WS (Whitespace)
  mirrored: N

There are text properties here:
  face                 variable-pitch

> But, I installed a new change that avoid that extra
> font-sorting.  Please try again.

It still fails, as shown above.

    Juanma






  reply	other threads:[~2009-04-16 11:14 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.5312.1239711841.31690.bug-gnu-emacs@gnu.org>
2009-04-14 14:21 ` bug#2994: Recent change to font.c:font_load_for_lface affects variable-pitch face in the modeline Miles Bader
2009-04-14 16:07   ` Juanma Barranquero
2009-04-14 16:40     ` Juanma Barranquero
2009-04-16  6:24     ` Kenichi Handa
2009-04-16 11:14       ` Juanma Barranquero [this message]
2009-04-16 12:14         ` Kenichi Handa
2009-04-16 14:05           ` Juanma Barranquero
2009-04-20 11:21             ` Kenichi Handa
2009-04-14 11:57 Juanma Barranquero
2009-04-21  7:40 ` Kenichi Handa
2009-04-21 12:06   ` Juanma Barranquero
2009-04-22 12:10   ` Taylor Venable

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=f7ccd24b0904160414h1482a99bid0afcccd7043d213@mail.gmail.com \
    --to=lekktu@gmail.com \
    --cc=2994@emacsbugs.donarmstrong.com \
    --cc=handa@m17n.org \
    --cc=miles@gnu.org \
    /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.