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

Text-scale-increase and headings #19

Open
trmd opened this issue May 6, 2020 · 1 comment
Open

Text-scale-increase and headings #19

trmd opened this issue May 6, 2020 · 1 comment

Comments

@trmd
Copy link

trmd commented May 6, 2020

Hi, saw that this was mentioned in #8 already.

Is it possible or will it be possible to use text-scale-increase and get headings to also increase?

@kunalb
Copy link
Owner

kunalb commented May 31, 2020

Note to self:
I need to figure out a way to derive all heights from 'default but also allow poet to modify it temporarily while it is active.

Broken code for reference later:

(defun poet-theme--height (multiplier)
  "Returns the height as MULTIPLIER * variable-pitch height."
  (let ((multiplier (* poet-theme-variable-pitch-multiplier
                       (if text-scale-mode
                           (expt text-scale-mode-step
                                 text-scale-mode-amount)
                         1))))
    (if poet-theme-variable-headers
        (truncate (* multiplier (* poet-theme-monospace-height multiplier)))
      (truncate (* multiplier poet-theme-monospace-height)))))

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