14
$\begingroup$

There are a few user interface changes in Mathematica 11, and the new font is what I'm interested in. Unfortunately, the official document doesn't say what the font's name is.

I attempted to find the answer using this command:

In[1]:= System`$DefaultFont 

Out[1]:= {"Courier", 10.}

which is obviously the same result as in version 10 (see here). I don't think Courier is the right answer.

Some comments below suggest the answer varies from one platform to another. My system is Linux Mint 17.3 KDE. I'm sure the font isn't Source Code Pro, although it does exist in my font folder. It should be one of DejaVu Sans Mono Bold and Bitstream Vera Sans Mono Bold, but I can't tell exactly which one is correct, because they look identical:

enter image description here

Comments are welcomed and if you have a different font, please attach a sample screenshot in your answer.

$\endgroup$
14
  • 6
    $\begingroup$ Isn't it Source Code Pro? I like it because it reminds me of the default Ubuntu font $\endgroup$
    – Jason B.
    Commented Aug 12, 2016 at 0:25
  • 3
    $\begingroup$ Try CurrentValue[{StyleHints, "CodeFont"}] $\endgroup$
    – Michael E2
    Commented Aug 12, 2016 at 0:41
  • 1
    $\begingroup$ If anyone was in their prerelease program I believe these new 11 fonts were mentioned in some of the materials that were sent out. Unfortunately I am traveling currently so I cannot access the information at the moment. $\endgroup$
    – ktm
    Commented Aug 12, 2016 at 4:30
  • 1
    $\begingroup$ @JasonB I knew that I recognized it when I installed it last night, and was thinking the exact same thing! $\endgroup$ Commented Aug 12, 2016 at 17:52
  • 2
    $\begingroup$ @user6014 Quoteth: Default font changed to Source Code Pro on Mac, Consolas on Windows, and Bitstream Vera Sans Mono on Linux. $\endgroup$
    – kale
    Commented Aug 13, 2016 at 2:51

2 Answers 2

15
$\begingroup$

Straight from the proverbial horse's mouth:

Default font changed to Source Code Pro on Mac, Consolas on Windows, and Bitstream Vera Sans Mono on Linux.

$\endgroup$
10
$\begingroup$

On my Windows 7 system, CurrentValue[{StyleHints, "CodeFont"}] gives Consolas. A perhaps more intuitive way to find it is to simply highlight a piece of text/output/input/etc. the font of which you're interested in, then go to Format->Font..., and you'll see the font highlighted.

Having said that, I am a bit surprised, too, that they use the somewhat dated Consolas as the default, given that they do have Source Sans Pro, a much nicer font IMHO, in their installation folder (Wolfram Research\Mathematica\11.0\SystemFiles\Fonts\TrueType on Windows). Of course, it's easy to change your style so you get that font.

$\endgroup$
9
  • 1
    $\begingroup$ @navigaid: Yep, and I'm getting really curious now as to where those fonts that Mathematica uses are coming from. Is it possible they scan the system for pre-existing fonts, and pick one of these in some order of preference if possible? $\endgroup$
    – Pirx
    Commented Aug 12, 2016 at 1:29
  • 1
    $\begingroup$ Is it possible to change the default code font of Mathematica 11 (back to Courier, for example) by changing the value of {StyleHints, "CodeFont"}? $\endgroup$
    – User18
    Commented Aug 12, 2016 at 18:00
  • 5
    $\begingroup$ @User18 Yes, you can change it: {"CodeFont" -> "Courier"}. Then it looks like Mathematica 10 and older. But to be honest, the "Source Code Pro" font looks nice too. $\endgroup$
    – QuantumDot
    Commented Aug 12, 2016 at 19:14
  • 1
    $\begingroup$ @navigaid, I just checked on my Xubuntu machine, and 11 does use that font. I wonder if this is indeed used for all *nix distributions… $\endgroup$ Commented Aug 13, 2016 at 0:21
  • 4
    $\begingroup$ @User18 I'm using a Mac. And I changed it simply by navigating in the Options Inspector: Formatting Options -> Font Options, and changing the field StyleHints to {"CodeFont" -> "Courier"} $\endgroup$
    – QuantumDot
    Commented Aug 13, 2016 at 5:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.