FiraCode icon indicating copy to clipboard operation
FiraCode copied to clipboard

Add more double-struck letters

Open MithicSpirit opened this issue 4 years ago • 8 comments

From what I can tell from https://github.com/tonsky/FiraCode/blob/master/FiraCode.glyphs, the only currently available double-struck letters are B, C, H, N, P, Q, R, and Z. It would be nice if this was extended to the entire (uppercase) alphabet as some additional ligatures programs use them (e.g. 𝕊 for string).

MithicSpirit avatar Oct 25 '20 01:10 MithicSpirit

Which programs use those?

tonsky avatar Oct 25 '20 09:10 tonsky

Julia does, for one (as well as some numbers and punctuation marks). Here's the full list of double-struck (or "blackboard-bold") letters the internal REPL supports for auto-replacement:

\bbA      \bbH       \bbP       \bbW       \bbe       \bbi       \bbl       \bbq       \bbt       \bbz
\bbB      \bbI       \bbPi      \bbX       \bbeight   \bbiD      \bbm       \bbr       \bbthree   \bbzero
\bbC      \bbJ       \bbQ       \bbY       \bbf       \bbid      \bbn       \bbrktbrk  \bbtwo
\bbD      \bbK       \bbR       \bbZ       \bbfive    \bbie      \bbnine    \bbs       \bbu
\bbE      \bbL       \bbS       \bba       \bbfour    \bbii      \bbo       \bbsemi    \bbv
\bbF      \bbM       \bbT       \bbb       \bbg       \bbij      \bbone     \bbseven   \bbw
\bbG      \bbN       \bbU       \bbc       \bbgamma   \bbj       \bbp       \bbsix     \bbx
\bbGamma  \bbO       \bbV       \bbd       \bbh       \bbk       \bbpi      \bbsum     \bby

\bbiD through \bbij are italic versions, \bbsemi is a semicolon, \bbSum is a Greek Sigma (mathematical sum symbol), and \bbrktbrk is (no idea what that is supposed to be). I personally use \bbone quite often for characteristic functions (i.e., either 1 or 0, depending on conditions), and \bbzero can be useful for a similar purpose.

clason avatar Oct 25 '20 13:10 clason

Here's a picture of all of them from within vim (using Fira Code Retina, with apparently a fallback font for the missing ones -- note that the Fira Code versions are (too?) thick compared to the fallback ones): Screenshot 2020-10-25 at 14 18 44Screenshot 2020-10-25 at 14 18 59Screenshot 2020-10-25 at 14 19 49

clason avatar Oct 25 '20 13:10 clason

Personally I've been using doom emacs with the (ligatures +extra) module enabled.

MithicSpirit avatar Oct 25 '20 15:10 MithicSpirit

Ok thanks I will see what I can do

tonsky avatar Oct 25 '20 20:10 tonsky

Doom Emacs with (ligatures +extra) enabled uses 𝕋, 𝔽, ℤ, ℝ, 𝕊, 𝔹, and 𝕃 by default.

Lord-Valen avatar Sep 04 '22 03:09 Lord-Valen

I just ran into this as well. I use Doom Emacs and used the following configuration as a workaround for now. It's not perfect, but hopefully it will help some people as a temporary workaround.

In my config.el:

(after! unicode-fonts
  (push "Symbola" (cadr (assoc "Miscellaneous Symbols" unicode-fonts-block-font-mapping))))

dconnett-splunk avatar Oct 28 '22 15:10 dconnett-splunk

@tonsky Any updates on this?

Lord-Valen avatar Oct 28 '22 17:10 Lord-Valen