bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#2994: Recent change to font.c:font_load_for_lface affects variable-p


From: Juanma Barranquero
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

On Thu, Apr 16, 2009 at 08:24, Kenichi Handa <address@hidden> 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 via email to

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