4

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
Luc
  • 143
  • 5
  • I'm not sure I've used the correct tag… – Luc Dec 02 '16 at 15:51
  • 1
    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 – Manuel --Moe-- G Dec 02 '16 at 16:13
  • Please post code blocks that produce both forms of g – Bob Hanlon Dec 02 '16 at 16:16
  • It depends on the font. v10 and v11 use different fonts. Do you have a screenshot where you see both in the same notebook in cells of the same style? – Szabolcs Dec 02 '16 at 16:17
  • Ok, I've just added an example. – Luc Dec 02 '16 at 16:17
  • 3
    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? – Szabolcs Dec 02 '16 at 16:19
  • @Szabolcs Oh you're right it just seems to be the italic g that is different. I haven't changed the fond yet… – Luc Dec 02 '16 at 16:21
  • By the way, I suppose italic means it 's a local variable of the function totV? – Luc Dec 02 '16 at 16:22
  • 1
    No, it means it's a pattern name or a function argument. – Szabolcs Dec 02 '16 at 16:38
  • @Szabolcs Thanks! – Luc Dec 02 '16 at 17:02
  • I have confirmed that on Windows, Mathematica 11.0.1, renders g in two different ways depending on italic or regular. Would you kindly check if a is also rendered in two different ways? – QuantumDot Dec 03 '16 at 20:25
  • @QuantumDot You're right, there is the same behaviour for a... – Luc Dec 05 '16 at 15:07

2 Answers2

6

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.

Szabolcs
  • 234,956
  • 30
  • 623
  • 1,263
2

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

m_goldberg
  • 107,779
  • 16
  • 103
  • 257