unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Protesilaos Stavrou <info@protesilaos.com>
Cc: angelo.g0@libero.it, emacs-devel@gnu.org
Subject: Re: Emacs master: different (ugly) font in org-mode [Windows, macOS]
Date: Tue, 05 Oct 2021 14:47:41 +0300	[thread overview]
Message-ID: <83sfxf4rs2.fsf@gnu.org> (raw)
In-Reply-To: <87sfxgr320.fsf@protesilaos.com> (message from Protesilaos Stavrou on Mon, 04 Oct 2021 22:40:55 +0300)

> From: Protesilaos Stavrou <info@protesilaos.com>
> Date: Mon, 04 Oct 2021 22:40:55 +0300
> 
> On 2021-10-04, 21:11 +0200, Angelo Graziosi <angelo.g0@libero.it> wrote:
> 
> >> Il 02/10/2021 06:47 Protesilaos Stavrou ha scritto:
> >> 
> >>  
> >> On 2021-10-01, 23:40 +0200, Angelo Graziosi wrote:
> >> 
> >> > I use JetBrains Mono font in Emacs and in today build from master, the
> >> > Org documents display a different ugly (in my opinion) font. See the
> >> > fields
> >
> > [... 34 lines elided]
> >
> >> This must be because in Org 9.5 those constructs inherit from the
> >> 'variable-pitch' face.  The idea behind that is to make the buffer
> >> preserve spacing sensitive elements while using M-x variable-pitch-mode.
> >> 
> >> Please try using something like this:
> >> 
> >>     (set-face-attribute 'fixed-pitch nil
> >>                         :family (face-attribute 'default :family)
> >>                         :height (face-attribute 'default :height))
> >> 
> >
> > Just for completeness,
> >
> > It seems I need those settings only on Windows (10 pro 64) and macOS
> > (10.13.6) because on GNU/Linux (with Monospaced font) I do not see the
> > issue: those fields ("#+language:", "#+options:" etc.) are rendered
> > with the same font! On Windows and macOS, instead, they are rendered
> > differently (and ugly!).. On Windows I tried other fonts (Lucida
> > Console, Cascadia Code) but with the same ugly results. On macOS the
> > font is 'Monaco'.
> 
> That may then be due to the default definition of the 'fixed-pitch'
> face, which does not find a decent fallback font on all platforms.
> Perhaps something like the following specification would be better, but
> I have no means of testing it and do not know what the default/generic
> monospaced fonts are on other platforms:
> 
>     (defface fixed-pitch
>       '((((type w32))
>          :family "What is the default on MS-Windows?")
>         (((type ns))
>          :family "What is the default on GNUstep or Macintosh Cocoa?")
>         (t :family "Monospace"))
>       "The basic fixed-pitch face."
>       :group 'basic-faces)

I'd like to understand the problem better before we consider solutions
in this area.  What's the problem with "Monospace" on MS-Windows?
which font does that actually use?  ("C-u C-x =" on the text in
question should report the font Emacs uses to display that text.)

In general, "Monospace" is supposed to be different from the default
face's font, so "What is the default on MS-Windows" doesn't
necessarily have a useful answer for this purpose.



  reply	other threads:[~2021-10-05 11:47 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-01 21:40 Emacs master: different (ugly) font in org-mode Angelo Graziosi
2021-10-02  4:47 ` Protesilaos Stavrou
2021-10-02  9:08   ` Angelo Graziosi
2021-10-04 19:11   ` Emacs master: different (ugly) font in org-mode [Windows, macOS] Angelo Graziosi
2021-10-04 19:40     ` Protesilaos Stavrou
2021-10-05 11:47       ` Eli Zaretskii [this message]
2021-10-05 13:41         ` Angelo Graziosi
2021-10-05 15:46           ` Eli Zaretskii
2021-10-05 19:45             ` Angelo Graziosi
2021-10-06 11:48               ` Eli Zaretskii
2021-10-06 12:09                 ` Protesilaos Stavrou
2021-10-06 21:06                 ` Angelo Graziosi
2021-10-06 21:40                   ` Stefan Kangas
2021-10-07  4:27                     ` Protesilaos Stavrou
2021-10-07  4:57                       ` Ihor Radchenko
2021-10-07  5:04                         ` Protesilaos Stavrou
2021-10-07  5:24                           ` Ihor Radchenko
2022-04-20  5:06                           ` Ihor Radchenko
2022-04-20  6:12                             ` Bastien
2021-10-07  7:32                         ` Eli Zaretskii
2021-10-07  7:31                       ` Eli Zaretskii
2021-10-07  7:05                   ` Eli Zaretskii

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=83sfxf4rs2.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=angelo.g0@libero.it \
    --cc=emacs-devel@gnu.org \
    --cc=info@protesilaos.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).