rougier / svg-tag-mode

A minor mode for Emacs that replace keywords with nice SVG labels
GNU General Public License v3.0
496 stars 28 forks source link

Need mechanism to adjust layout? #4

Closed MetroWind closed 4 years ago

MetroWind commented 4 years ago

I guess it's probably the font metrics, but on my end it looks like this :-> partial-2020-10-17T12:49:28 Still, I'm surprised it'd be off by this much.

The font I'm using is Rec Mono Duotone @11px.

progfolio commented 4 years ago

Similar issue on my end, though I don't even get the clipped text.

rougier commented 4 years ago

Oh weird. Can you play with the text-y variable (for example using (+ text-y 10)or (- text-y 10) ?

MetroWind commented 4 years ago

Yeah, I subtracted text-y by 10 in svg-tag-make and it was fine. I guess one way to do this is to add a customizable text-vertical-offset, or figure out a way to calculate it correctly, which might be hard; fonts are weird...

rougier commented 4 years ago

Thanks, I'll add offset option.

rougier commented 4 years ago

Done.

yousufinternet commented 2 years ago

Hi, I can't find the right keyword to use for offsetting the text, also is it possible to offset it horizontally? Thanks

rougier commented 2 years ago

Can you open a new issue, this one is closed.