all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Re: [Emacs-diffs] emacs-25 1c58fa1: Fix variable-pitch font on MS-Windows
       [not found] ` <E1awRdn-00031p-5c@vcs.savannah.gnu.org>
@ 2016-04-30 13:48   ` Stefan Monnier
  2016-04-30 14:03     ` Eli Zaretskii
  0 siblings, 1 reply; 3+ messages in thread
From: Stefan Monnier @ 2016-04-30 13:48 UTC (permalink / raw
  To: emacs-devel; +Cc: Eli Zaretskii

> -  '((t :family "Sans Serif"))
> +  '((((type w32))
> +     ;; This is a kludgey workaround for an issue discussed in
> +     ;; http://lists.gnu.org/archive/html/emacs-devel/2016-04/msg00746.html.
> +     :font "-outline-Arial-normal-normal-normal-sans-*-*-*-*-p-*-iso8859-1")
> +    (t :family "Sans Serif"))

This is really curious.  Why does Emacs pick a bold-italic face when we
don't specify bold (nor italic)?

I understand that the above defface doesn't explicitly specify ":slanted
nil", but it's still very puzzling.


        Stefan



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Emacs-diffs] emacs-25 1c58fa1: Fix variable-pitch font on MS-Windows
  2016-04-30 13:48   ` [Emacs-diffs] emacs-25 1c58fa1: Fix variable-pitch font on MS-Windows Stefan Monnier
@ 2016-04-30 14:03     ` Eli Zaretskii
  2016-04-30 14:33       ` Stefan Monnier
  0 siblings, 1 reply; 3+ messages in thread
From: Eli Zaretskii @ 2016-04-30 14:03 UTC (permalink / raw
  To: Stefan Monnier; +Cc: emacs-devel

> From: Stefan Monnier <monnier@IRO.UMontreal.CA>
> Cc: Eli Zaretskii <eliz@gnu.org>
> Date: Sat, 30 Apr 2016 09:48:32 -0400
> 
> > -  '((t :family "Sans Serif"))
> > +  '((((type w32))
> > +     ;; This is a kludgey workaround for an issue discussed in
> > +     ;; http://lists.gnu.org/archive/html/emacs-devel/2016-04/msg00746.html.
> > +     :font "-outline-Arial-normal-normal-normal-sans-*-*-*-*-p-*-iso8859-1")
> > +    (t :family "Sans Serif"))
> 
> This is really curious.  Why does Emacs pick a bold-italic face when we
> don't specify bold (nor italic)?

I have no idea.  My best guess is that bold-italic font variant is the
first one that Emacs finds, but I have no evidence to support that
guess.

One thing is clear: Emacs doesn't know that the resulting face is
bold-italic, because manually forcing the corresponding attributes to
be "normal"/"roman" doesn't fix this.  (Specifying those attributes
explicitly was a solution I tried first, because it seems like less
ugly.)

> I understand that the above defface doesn't explicitly specify ":slanted
> nil", but it's still very puzzling.

I very much agree.  Unfortunately, font selection logic is something I
have only a very vague idea about.  The change which apparently caused
this as side effect was for a similar (and more serious) problem, and
the solution I found was just a heuristic, by watching the fonts that
were examined and rejected.



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Emacs-diffs] emacs-25 1c58fa1: Fix variable-pitch font on MS-Windows
  2016-04-30 14:03     ` Eli Zaretskii
@ 2016-04-30 14:33       ` Stefan Monnier
  0 siblings, 0 replies; 3+ messages in thread
From: Stefan Monnier @ 2016-04-30 14:33 UTC (permalink / raw
  To: Eli Zaretskii; +Cc: emacs-devel

> One thing is clear: Emacs doesn't know that the resulting face is
> bold-italic, because manually forcing the corresponding attributes to
> be "normal"/"roman" doesn't fix this.  (Specifying those attributes
> explicitly was a solution I tried first, because it seems like
> less ugly.)

Even more puzzling.

> I very much agree.  Unfortunately, font selection logic is something I
> have only a very vague idea about.

It's non-trivial, indeed.  Someone™ will have to step through that code
at some point to figure out what's going on.


        Stefan



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-04-30 14:33 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20160430095647.11601.56460@vcs.savannah.gnu.org>
     [not found] ` <E1awRdn-00031p-5c@vcs.savannah.gnu.org>
2016-04-30 13:48   ` [Emacs-diffs] emacs-25 1c58fa1: Fix variable-pitch font on MS-Windows Stefan Monnier
2016-04-30 14:03     ` Eli Zaretskii
2016-04-30 14:33       ` Stefan Monnier

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.