Closed rainDiX closed 3 years ago
I can't enable ligatures on X-build.
./src/emacs -Q
(set-fontset-font nil nil "Fira Code")
.ligature.el
and evaluate it.What's wrong?
To enable ligatures I do as follows ( Keep steps 0, 1 and 2):
(set-face-attribute 'default nil :font "Fira Code")
.ligature.el
and evaluate it.(ligature-set-ligatures 't '("www"))
(ligature-mode 1)
Or alternatively, without needing ligature.el at all :
(set-face-attribute 'default nil :font "Fira Code")
(let ((ligatures `((?w . ,(regexp-opt '("www")))
(?& . ,(regexp-opt '("&&&" "&&"))))))
(dolist (char-regexp ligatures)
(set-char-table-range composition-function-table (car char-regexp)
`([,(cdr char-regexp) 0 font-shape-gstring]))))
4. "www" "&&" and "&&&" should be ligatured
thank you. confirmed.
I forgot to register harfbuzz font driver. I registered it, and now ligatures work.
Try latest feature/pgtk on savannah.
Tested the newer commit, that fixed it. Thanks.
Ligatures do not render when using emacs pgtk
How to reproduce
My environment
archlinux gtk3 3.24.23 cairo 1.17.2 harfbuzz 2.7.2 sway 1.5.1