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

Support proportional variable-width fonts for correct column alignment #404

Open
Dima-369 opened this issue Nov 12, 2021 · 0 comments
Open

Comments

@Dima-369
Copy link

Dima-369 commented Nov 12, 2021

If the 'default face is set to a non-monospace font, the hint columns are not aligned properly:

image

This was requested and implemented in transient (requested in magit/transient#67 where the screenshot above is taken from), so I wondered if it is also possible for hydra.

transient uses this function:

(defun transient--force-fixed-pitch ()
  (require 'face-remap)
  (face-remap-reset-base 'default)
  (face-remap-add-relative 'default 'fixed-pitch))

I tried to integrate it into the hydra code myself but I had no luck with it :(

Is it possible to use transient--force-fixed-pitch in hydras or does anyone know of a solution to this?

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

1 participant