Harfbuzz: Recognise some common text ligatures
This commit is contained in:
parent
9c5c21b8e4
commit
09ece2a303
15
config.org
15
config.org
|
@ -1902,6 +1902,21 @@ into later.
|
|||
(let ((mixed-pitch-face 'variable-pitch-serif))
|
||||
(mixed-pitch-mode (or arg 'toggle)))))
|
||||
#+end_src
|
||||
|
||||
Now, as Harfbuzz is currently used in Emacs, we'll be missing out on the
|
||||
following Alegreya ligatures:
|
||||
#+begin_center
|
||||
ff /ff/ ffi /ffi/ ffj /ffj/ ffl /ffl/
|
||||
fft /fft/ fi /fi/ fj /fj/ ft /ft/
|
||||
Th /Th/
|
||||
#+end_center
|
||||
|
||||
Thankfully, it isn't to hard to add these to the ~composition-function-table~.
|
||||
#+begin_src emacs-lisp
|
||||
(set-char-table-range composition-function-table ?f '(["\\(?:ff?[fijlt]\\)" 0 font-shape-gstring]))
|
||||
(set-char-table-range composition-function-table ?T '(["\\(?:Th\\)" 0 font-shape-gstring]))
|
||||
#+end_src
|
||||
|
||||
** Org Chef
|
||||
Loading after org seems a bit premature. Let's just load it when we try to use
|
||||
it, either by command or in a capture template.
|
||||
|
|
Loading…
Reference in New Issue