What techniques exist to render rotated text in emacs? By this I mean physical rotation of text by an arbitrary angle and shown inline in a buffer as shown here:

two examples of rotated text

(alignment of text in my sample is not significant)

Inserting an SVG image containing the rotated text comes to mind, but that is subject to emacs being built with SVG and naturally it wouldn't enable text selection. Maybe it could still accommodate search if shown as an overlay.

I'm open to any suggestions. Even limited solutions are highly relevant. For example: if emacs could rotate individual glyphs/characters, but only rotated by 90 degrees or mirrored that would still be plenty useful!

  • Out of curiosity, what's the use case you have in mind? – Dan Jan 16 '17 at 22:40
  • @Dan Labels for rendering an axis of dense two-dimensional content (charts and tabular data). It would prescribe overlapping of rectangular bounding boxes, but: baby steps :-) The question stands on its own and is purely exploratory. – ebpa Jan 16 '17 at 22:47
  • @ebpa, have you explored this question more? Did you find anything interesting? – Slackware Jul 10 '17 at 13:50
  • @Slackware it's been in the back of my mind, but svg is the best solution I have come up with. – ebpa Jul 10 '17 at 14:17

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.