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

TODO and TAG character not at center when fontsize is changed #140

Closed
Fmajor opened this issue Jun 24, 2023 · 3 comments
Closed

TODO and TAG character not at center when fontsize is changed #140

Fmajor opened this issue Jun 24, 2023 · 3 comments

Comments

@Fmajor
Copy link

Fmajor commented Jun 24, 2023

I try to set different font-size for different org-level, e.g. like below

  (dolist
      (face
       '((org-level-1 1.7 "#81a2be" ultra-bold)
         (org-level-2 1.6 "#b294bb" extra-bold)
         (org-level-3 1.5 "#b5bd68" bold)
         (org-level-4 1.4 "#e6c547" semi-bold)
         (org-level-5 1.3 "#cc6666" normal)
         (org-level-6 1.2 "#70c0ba" normal)
         (org-level-7 1.1 "#b77ee0" normal)
         (org-level-8 1.0 "#9ec400" normal)))

Then i find that the font size of TODO, priority, timestamp and tags are unchanged and their background color height become larger and the font do not center in the background, which is kind of ugly. How can we handle this?

image

@minad
Copy link
Owner

minad commented Jun 24, 2023

The vertical alignment of the labels depends on your font and sizes. We don't have a way to adjust the alignment. I recommend to avoid font sizes which differ so much. Furthermore you can try different fonts, which are better balanced. I use the Iosevka set of fonts.

@minad minad closed this as completed Jun 24, 2023
@Stebalien
Copy link

Is it not possible to use the raise display property for this?

@minad
Copy link
Owner

minad commented Jun 28, 2023

@Stebalien Indeed, that could work. If someone is interested in experimenting with this I am happy to consider a PR. The main complication here is that we would have to adjust the box borders and the raise property per label depending on the surrounding face 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

3 participants