support for the so called "texture healing"? #4490
-
Hello, GH released a pretty cool font face called Monaspace which led me to wonder if Emacs supported such a thing as "texture healing", and thus I ended up here, writing this issue (now discussion). If so what would the correct term in harfbuzz be for "texture healing", how can it be enabled in Emacs? |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 1 reply
-
This seems to be regular OpenType substitution and positioning, but whether it works in Emacs or not is a question for Emacs. |
Beta Was this translation helpful? Give feedback.
-
Emacs will support this as long as the underlying script is passed to HarfBuzz for shaping. Plain ASCII text is generally not passed to HarfBuzz (because that would significantly slow down Emacs redisplay due to how text shaping is integrated into the Emacs display engine). One can force Emacs to pass ASCII text to HarfBuzz by suitable customizations, but then don't come back complaining that redisplay became annoyingly slow. |
Beta Was this translation helpful? Give feedback.
-
Where exactly is the relevance of passing plain ASCII text in the case of Monaspace? Is that what fonts with ligatures are/do? |
Beta Was this translation helpful? Give feedback.
-
Emacs does not use HarfBuzz unless the characters have entries in |
Beta Was this translation helpful? Give feedback.
-
I did get "textural healing" with Monaspace to work as described here, although I tuned it for Commit Mono which uses a similar technique. Eli forewarned me that this sort of thing could cause serious performance problems with redisplay. It's working for me, but be forewarned - it's not a recommended way of using the composition function table. |
Beta Was this translation helpful? Give feedback.
This seems to be regular OpenType substitution and positioning, but whether it works in Emacs or not is a question for Emacs.