Closed JonatanSahar closed 1 year ago
Hello @JonatanSahar!
Please move the cursor over those fixed-size elements and do M-x describe-char
. That will produce a Help buffer. Towards the bottom, it mentions the face that is used. Click on that link to show its details.
Can you then include here the contents of those Help buffers?
sure, for the keywords I get:
Face: org-document-info-keyword (sample) (customize this face)
Documentation: Face for document information keywords. This face applies to the #+TITLE:, #+SUBTITLE:, #+AUTHOR:,
+EMAIL: and #+DATE: keywords.
Defined in ‘org-faces.el’.
Family: unspecified Foundry: unspecified Width: unspecified Height: unspecified Weight: unspecified Slant: unspecified Foreground: #005077
DistantForeground: unspecified Background: unspecified Underline: unspecified Overline: unspecified Strike-through: unspecified Box: unspecified Inverse: unspecified Stipple: unspecified Font: unspecified Fontset: unspecified Extend: unspecified Inherit: unspecified
[back]
while for those that are not fixed, I get:
Face: org-meta-line (sample) (customize this face)
Documentation: Face for meta lines starting with "#+".
Defined in ‘org-faces.el’.
Family: unspecified Foundry: unspecified Width: unspecified Height: unspecified Weight: unspecified Slant: unspecified Foreground: #005077
DistantForeground: unspecified Background: unspecified Underline: unspecified Overline: unspecified Strike-through: unspecified Box: unspecified Inverse: unspecified Stipple: unspecified Font: unspecified Fontset: unspecified Extend: unspecified Inherit: modus-themes-fixed-pitch
This face was introduced, or its default value was changed, in version 22.1 of Emacs.
[back]
So they are different faces indeed.
For the headings, when they behave well, I get:
Face: org-level-1 (sample) (customize this face)
Documentation: Face used for level 1 headlines.
Defined in ‘org-faces.el’.
Family: unspecified Foundry: unspecified Width: unspecified Height: unspecified Weight: unspecified Slant: unspecified Foreground: unspecified
DistantForeground: unspecified Background: unspecified Underline: unspecified Overline: unspecified Strike-through: unspecified Box: unspecified Inverse: unspecified Stipple: unspecified Font: unspecified Fontset: unspecified Extend: t Inherit: modus-themes-heading-1
[back]
and when I set the modus
variable, and the headings become fixed sizes, I get... the same:
Face: org-level-1 (sample) (customize this face)
Documentation: Face used for level 1 headlines.
Defined in ‘org-faces.el’.
Family: unspecified Foundry: unspecified Width: unspecified Height: unspecified Weight: unspecified Slant: unspecified Foreground: unspecified
DistantForeground: unspecified Background: unspecified Underline: unspecified Overline: unspecified Strike-through: unspecified Box: unspecified Inverse: unspecified Stipple: unspecified Font: unspecified Fontset: unspecified Extend: unspecified Inherit: modus-themes-heading-1
[back]
there's also an overlay for the headings, which is also the same between the two conditions:
Face: hl-line (sample) (customize this face)
Documentation: Default face for highlighting the current line in Hl-Line mode.
Defined in ‘hl-line.el’.
Family: unspecified Foundry: unspecified Width: unspecified Height: unspecified Weight: unspecified Slant: unspecified Foreground: unspecified
DistantForeground: unspecified Background: #bfefff Underline: unspecified Overline: unspecified Strike-through: unspecified Box: unspecified Inverse: unspecified Stipple: unspecified Font: unspecified Fontset: unspecified Extend: t Inherit: unspecified
This face was introduced, or its default value was changed, in version 22.1 of Emacs.
[back]
Thanks! Also do M-x describe-face
and check fixed-pitch
. I suspect it has an absolute height
value instead of something like 1.0
.
it does! it's 180:
Face: fixed-pitch (sample) (customize this face)
Documentation: The basic fixed-pitch face.
Defined in ‘faces.el’.
Family: Iosevka Comfy Foundry: outline Width: normal Height: 181 Weight: normal Slant: normal Foreground: unspecified
DistantForeground: unspecified Background: unspecified Underline: unspecified Overline: unspecified Strike-through: unspecified Box: unspecified Inverse: unspecified Stipple: unspecified Font: #<font-object -outline-Iosevka Comfy-normal-normal-normal-mono-24----c--iso8859-1> Fontset: unspecified Extend: unspecified Inherit: unspecified
Okay. Do something like this, while tinkering with the floating point:
(set-face-attribute 'fixed-pitch nil :height 1.15)
Mine is 1.0
that works great for the keywords, but not for headings, and also not for the title text.
Also, if I reload the theme I need to reapply that change to fixed-pitch
.
Can you show me how you define your fonts originally? In general, anything with an absolute :height
value will retain that value. Only the default
face must have an absolute :height
. Everything else should be a floating point, which is a multiple of the default
font :height
.
Hi! I get a strange behavior in org-mode buffers which only happens with
modus
themes: wehn I enarge the text, or headings and some keywords and text remain in a fixed size. for example:when I comment out the
modus-heading
variable, the problem with the headings goes away, but the keywords remain.This is the relevant configuration: