13
$\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$
  • 5
    $\begingroup$ Isn't it Source Code Pro? I like it because it reminds me of the default Ubuntu font $\endgroup$ – Jason B. Aug 12 '16 at 0:25
  • 3
    $\begingroup$ Try CurrentValue[{StyleHints, "CodeFont"}] $\endgroup$ – Michael E2 Aug 12 '16 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$ – user6014 Aug 12 '16 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$ – Ben Kalziqi Aug 12 '16 at 17:52
  • 1
    $\begingroup$ @user6014 Quoteth: Default font changed to Source Code Pro on Mac, Consolas on Windows, and Bitstream Vera Sans Mono on Linux. $\endgroup$ – kale Aug 13 '16 at 2:51
13
$\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$
9
$\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$
  • 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 Aug 12 '16 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 Aug 12 '16 at 18:00
  • 4
    $\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 Aug 12 '16 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$ – J. M. is away Aug 13 '16 at 0:21
  • 3
    $\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 Aug 13 '16 at 5:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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