Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

variable-pitch-family nil doesn't inherit default-family. Intentional? #11

Open
Icy-Thought opened this issue Oct 19, 2024 · 2 comments

Comments

@Icy-Thought
Copy link

Icy-Thought commented Oct 19, 2024

Is the intended behavior of variable-pitch-family when set to nil to ignore the default-family value or is this an accidental issue that I happen to run across? I noticed that when I refrain from setting the values of neither fixed-pitch-family nor variable-pitch-family Emacs would fallback to my system "Sans" font instead of using the default-family value.

Fontaine snippet:

(use-package fontaine
  :demand t
  :config (fontaine-set-preset 'default)
  :custom
  (fontaine-presets
   `((default)
     (reading
      :variable-pitch-family "Cardo"
      :variable-pitch-height 185
      :variable-pitch-slant normal
      :variable-pitch-weight regular)
     (presentation
      :default-height 175
      :default-weight semibold)
     (t
      :default-family "VictorMono Nerd Font"
      :default-height 145
      :default-weight semibold
      :fixed-pitch-family "VictorMono Nerd Font"
      :fixed-pitch-height 145
      :fixed-pitch-slant normal
      :variable-pitch-family "VictorMono Nerd Font"
      :variable-pitch-height 1.00
      :variable-pitch-slant italic))))

Emacs Info:

@protesilaos
Copy link
Owner

protesilaos commented Oct 20, 2024 via email

@Icy-Thought
Copy link
Author

Oh interesting! I thought it would've picked the default-family instead of setting the value to nil.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants