4
$\begingroup$

I've just noticed that Mathematica renders g in two distinct ways: either with a closed descender or a open descender. Seems it happens only for local variables.

  • g with open descender:
    Single-story g
  • g with closed descender:
    enter image description here

Does anyone know what/why this is happening?


Edit : An example for Manuel --Moe-- G:

example

Both kinds of g are rendered.

  • Mathematica 11.0.1.0 on Windows
$\endgroup$
12
  • $\begingroup$ I'm not sure I've used the correct tag… $\endgroup$
    – Luc
    Dec 2, 2016 at 15:51
  • 1
    $\begingroup$ could you please add a screenshot of the "double-story" g rendering of a local variable? have never seen this before on a local variable $\endgroup$ Dec 2, 2016 at 16:13
  • $\begingroup$ Please post code blocks that produce both forms of g $\endgroup$
    – Bob Hanlon
    Dec 2, 2016 at 16:16
  • 3
    $\begingroup$ The "single story" appears when the font is italic (pattern names). It looks like it isn't using the correct font for italics. Did you change the font? If yes, does your chosen font have an italic version installed? $\endgroup$
    – Szabolcs
    Dec 2, 2016 at 16:19
  • 1
    $\begingroup$ No, it means it's a pattern name or a function argument. $\endgroup$
    – Szabolcs
    Dec 2, 2016 at 16:38

2 Answers 2

6
$\begingroup$

It took me a while to figure out what was happening.

Mathematica 11 uses different fonts on Windows, OS X and Linux. They are Consolas, Source Code Pro and Bitstream Vera Sans Mono, respectively.

Some fonts use different descender styles for the Italic and Roman versions. Source Code Pro doesn't, so people on OS X cannot see this behaviour. But Consolas does.

enter image description here

The difference you are seeing is simply the difference between the Italic and Roman versions of the same font.

Mathematica uses Italics for pattern names and function arguments.

What you see is entirely normal and there is no problem with either your Mathematica installation or the fonts installed on your system. If it bothers you, you can change the default code font like this.

$\endgroup$
1
2
$\begingroup$

This is not an answer. It is a comment that includes an image.

I am running V11.0.1 on OS X. I do not see the problem the OP is having. Suggest that it OS dependent and the question be tagged as Windows specific.

code

$\endgroup$

Your Answer

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

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