← Back to context

Comment by slotrans

2 years ago

Is there a trick to getting these to work in Sublime Text? I normally use Source Code Pro, which also comes in a bunch of variations, and I can set font_face to "Source Code Pro Medium" or "Source Code Pro Semibold Italic" and I get the right result. But setting it to "Monataype Krypton Medium" doesn't work at all. "Monatype Krypton" does, but the Regular variants are too skinny.

Font selection is always a bit wonky on OSX in my experience. Sublime doesn't offer a separate font weight knob but does offer "font_options" which takes an array of string values – specifying bold will get you a bold by default font. For an arbitrary weight what worked for me was to use the PostScript name e.g. "MonaspaceArgonVar-ExtraLightItalic". There are plenty of ways to find the PS name but on OSX (on Sonoma at least) you can go into the Font Book app and find it under identifiers after you've selected a specific variant.

  • Thanks, this works!

    So tl;dr it's: "MonaspaceVARIANT-WEIGHT", no spaces.

    • In this case yes, but I would double check the PostScript name because I believe that naming convention is not a hard requirement.

The name format is "Monaspace <variant>", and to use weight in Sublime Text "Monaspace <variant> <weight>".

  • Confirmed, other resposne is wrong.

    Format that worked for me is :

    "font_face": "Monaspace Neon Light",