about summary refs log tree commit diff
path: root/web/atward
diff options
context:
space:
mode:
authorsterni <sternenseemann@systemli.org>2024-12-20T23·09+0100
committerclbot <clbot@tvl.fyi>2024-12-20T23·38+0000
commit7069de785750e901e7ff8733922f4e039e333ea7 (patch)
treed587d840b13ba312567c9ed09e3614b5707c09b5 /web/atward
parent756e96499c7ab747a1fb967369d661a725071f24 (diff)
fix(sterni/emacs): get emacs to use default monospace for unicode HEAD r/9012 canon
I've recently set JetBrains Mono to be my default monospace font because
it has better Unicode coverage than Bitstream Vera Mono and should
consequently include all BQN symbols.

However when investigating why 𝕊 was weirdly small, I discovered that it
was using GNU FreeSerif for some reason. As it turns out, Emacs uses the
default font (or the system wide default monospace font if unset) for
ASCII only. Beyond ASCII emacs falls back to the random assortment that
is fontset-default. Using (set-fontset-font <fontset> NIL …) doesn't
work – neither for preventing a fallback to fontset-default from
fontset-startup nor for prepending a font to all ranges of
fontset-default. Especially the former seems to contradict the Emacs
documentation.

The only solution I could come up with, is to set the relevant charsets
explicitly in fontset-startup and to never touch the default font face.

Change-Id: I640b3207e3cc3449ecd422db0e2ed93fb7d3521f
Reviewed-on: https://cl.tvl.fyi/c/depot/+/12899
Autosubmit: sterni <sternenseemann@systemli.org>
Reviewed-by: sterni <sternenseemann@systemli.org>
Tested-by: BuildkiteCI
Diffstat (limited to 'web/atward')
0 files changed, 0 insertions, 0 deletions