FiraCode icon indicating copy to clipboard operation
FiraCode copied to clipboard

Document complete list of stylistic sets and character variants

Open thaliaarchi opened this issue 4 years ago • 10 comments

Ever since the first stylistic sets were introduced in 2.0, I've maintained a table stylistic sets in my editor settings so I can preview font differences when selecting stylistic sets. With the upcoming 6.0 release, there's two additional stylistic sets and 30 character variants. It would help if the new ones were documented in the README with "on" and "off" variants.

I had issues describing i, l, and the various less than/greater than combinations. I also don't know the name of the Prolog :- and Clojure .- operators.

I have also wanted to see a specimen sheet of all characters in the font. Trivially, a-zA-Z0-9 are not pictured. Are other characters not pictured?

"editor.fontFamily": "'Fira Code', JuliaMono, 'Cascadia Code PL', 'SF Mono', Monaco, Menlo, Consolas, 'Courier New', Courier, monospace",
"editor.fontLigatures": "'ss06', 'ss07', 'ss09', 'ss10', 'cv14', 'cv26', 'cv27', 'cv28', 'cv30'",
// Fira Code stylistic sets:
//   ss01  r                  Sans-serif r
//   ss02  <= >=              Less than/greater than with horizontal bar
//   ss03  &                  Traditional ampersand
//   ss04  $                  Lightweight dollar sign
//   ss05  @                  Traditional at sign
//   ss06  \\                 Thin backslash
//   ss07  =~ !~              Regexp matching operator
//   ss08  == === != !==      Gaps in double/triple equals
//   ss09  >>= <<= ||= |=     Compound assignments
//   ss10  Fl Tl fi fj fl ft  Full ligatures
//   zero  0                  Dotted zero
//   onum  0123456789         Old-style figures
// Variants:
//   cv01  a      Single-storey a
//   cv02  g      Single-storey g
//   cv03  i      Sans-serif i
//   cv04  i      i without base
//   cv05  i      i with flat tail
//   cv06  i      i with curved tail
//   cv07  l      Sans-serif l
//   cv08  l      l without base
//   cv09  l      l with flat tail
//   cv10  l      l with curved tail (same as default?)
//   cv11  0      Plain zero
//   cv12  0      Slashed zero
//   cv13  0      Dotted zero
//   cv14  3      3 with flat top
//   cv15  *      Top-aligned asterisk
//   cv16  *      Hexagonal asterisk
//   cv17  ~      Top-aligned tilde
//   cv18  %      Percent with filled dots
//   cv19  <=     Lte with horizontal bar (< =)
//   cv20  <=     Left arrow              (< =)
//   cv21  =<     Lte                     (= <)
//   cv22  =<     Lte with horizontal bar (= <)
//   cv23  >=     Gte with horizontal bar (> =)
//   cv24  /=     Not equal               (/ =)
//   cv25  .-     Clojure .-
//   cv26  :-     Prolog :-
//   cv27  []     Box square brackets
//   cv28  {. .}  Nim pragma
//   cv29  {}     Rounded curly braces
//   cv30  |      Long vertical bar

thaliaarchi avatar Feb 16 '21 00:02 thaliaarchi

Where are you getting all these Character Variants? I only see cv15, cv16, and cv19-cv28 in the source code /features/ folder.

Tough to document this before the fonts which actually include the features are generated.

kenmcd avatar Feb 18 '21 18:02 kenmcd

You can see all the character variants with grep -Eo '(ss|cv)\d\d' FiraCode.glyphs | sort | uniq. It lists ss01-10 and cv01-30. They are also mentioned in the changelog.

I pulled my descriptions from the changelog and extras/stylistic_sets.png and filled in the gaps by building the fonts with Docker via make and examining each variant myself. I wanted to use the font before the release, so I built it myself.

thaliaarchi avatar Feb 18 '21 18:02 thaliaarchi

Ahhh, I did not even look in the .glyphs file. Exported the fonts from there and now all can see all the variants. Thanks.

Here is the Character Set in its current state: Fira.Code.Regular.Character.Set.v6-pre-release.2021-02-18.pdf

kenmcd avatar Feb 18 '21 19:02 kenmcd

How'd you export the character set? I notice that it's missing all ligatures.

thaliaarchi avatar Feb 18 '21 19:02 thaliaarchi

That’s probably because ligatures have no Unicode codepoint. There were some plans to assign reserved codepoints to them (see #211), but I didn’t get to it yet. Presumably it should help with Emacs compatibilty too.

As for documenting all variants, all will be there for 6.0 release.

tonsky avatar Feb 18 '21 23:02 tonsky

If the ligatures had assigned codepoints, wouldn't there potentially be infinite codepoints for the infinite arrows?

thaliaarchi avatar Feb 18 '21 23:02 thaliaarchi

I notice that it's missing all ligatures.

Character Set = Unicode character code points. Most ligatures have no code points.

Sounds like you expected a Glyph Set. I may be able to print that tomorrow (setting-up a new laptop so kinda in flux right now).

kenmcd avatar Feb 19 '21 03:02 kenmcd

@andrewarchi no :) each different segment would, though

tonsky avatar Feb 19 '21 16:02 tonsky

OK, here is the Glyph List. Too big for GitHub 10MB limit.
Fira.Code.Glyph.List.v6-pre-release.2021-02-18.pdf (31MB, PDF)
https://workupload.com/file/2YxjzsmmA7s

kenmcd avatar Feb 20 '21 00:02 kenmcd

Thanks!

thaliaarchi avatar Feb 20 '21 00:02 thaliaarchi