protesilaos / modus-themes

Highly accessible themes for GNU Emacs, conforming with the highest standard for colour contrast between background and foreground values (WCAG AAA).
https://protesilaos.com/emacs/modus-themes
GNU General Public License v3.0
553 stars 30 forks source link

[Windows] Org indent mode broken? #91

Closed ntrocado closed 11 months ago

ntrocado commented 11 months ago

Steps to reproduce:

  1. emacs.exe -Q
  2. create an org file with the following content: image
  3. M-x org-indent-mode produces: image
  4. After M-x load-theme RET modus-operandi: image

The problem is that text is not horizontally aligned under each subheading.

Emacs version is GNU Emacs 29.1 (build 2, x86_64-w64-mingw32) of 2023-07-30 under Windows10.

(Sorry for the large images)

protesilaos commented 11 months ago

From: Nuno Trocado @.***> Date: Thu, 9 Nov 2023 07:18:20 -0800

Steps to reproduce:

  1. emacs.exe -Q
  2. create an org file with the following content: image
  3. M-x org-indent-mode produces: image
  4. After M-x load-theme RET modus-operandi: image

The problem is that text is not horizontally aligned under each subheading.

What is the font family of the 'fixed-pitch' face? Check it with M-x describe-face.

It seems that it is not monospaced or, anyhow, defaults to an inappropriate value.

-- Protesilaos Stavrou https://protesilaos.com

ntrocado commented 11 months ago

You're right, there seems to be something wrong with my system: image

I don't know how emacs picks the default fonts. Anyway I fixed this by setting the face expressly... Thank you!

protesilaos commented 10 months ago

From: Nuno Trocado @.***> Date: Sat, 11 Nov 2023 06:37:10 -0800

You're right, there seems to be something wrong with my system: image

I don't know how emacs picks the default fonts. Any idea how to fix this?

You can specify your preferred font family with what is described here: https://protesilaos.com/emacs/modus-themes#h:defcf4fc-8fa8-4c29-b12e-7119582cc929.

Excerpt:

;; Main typeface
(set-face-attribute 'default nil :family "DejaVu Sans Mono" :height 110)

;; Proportionately spaced typeface
(set-face-attribute 'variable-pitch nil :family "DejaVu Serif" :height 1.0)

;; Monospaced typeface
(set-face-attribute 'fixed-pitch nil :family "DejaVu Sans Mono" :height 1.5)

Please let me know how it goes.

-- Protesilaos Stavrou https://protesilaos.com

ntrocado commented 10 months ago

Works perfectly, thanks!

On Fri, Nov 17, 2023 at 6:42 AM Protesilaos Stavrou < @.***> wrote:

From: Nuno Trocado @.***> Date: Sat, 11 Nov 2023 06:37:10 -0800

You're right, there seems to be something wrong with my system: image

I don't know how emacs picks the default fonts. Any idea how to fix this?

You can specify your preferred font family with what is described here: < https://protesilaos.com/emacs/modus-themes#h:defcf4fc-8fa8-4c29-b12e-7119582cc929

.

Excerpt:

;; Main typeface (set-face-attribute 'default nil :family "DejaVu Sans Mono" :height 110)

;; Proportionately spaced typeface (set-face-attribute 'variable-pitch nil :family "DejaVu Serif" :height 1.0)

;; Monospaced typeface (set-face-attribute 'fixed-pitch nil :family "DejaVu Sans Mono" :height 1.5)

Please let me know how it goes.

-- Protesilaos Stavrou https://protesilaos.com

— Reply to this email directly, view it on GitHub https://github.com/protesilaos/modus-themes/issues/91#issuecomment-1815824034, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACSH5RRPW35LC3Z37L4LGEDYE4BO3AVCNFSM6AAAAAA7EXQLHOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMJVHAZDIMBTGQ . You are receiving this because you modified the open/close state.Message ID: @.***>

protesilaos commented 10 months ago

From: Nuno Trocado @.***> Date: Fri, 17 Nov 2023 05:44:50 -0800

Works perfectly, thanks!

You are welcome!

-- Protesilaos Stavrou https://protesilaos.com