I've searched without finding an exact solution for this... Does anyone know how to override Mathematica's default Monospaced font so all StandardForm Input/Output, including in the help browser, render in 'Consolas'?
The option inspector isn't helping much (probably because I don't know what I'm looking for?). There is also a 'font substitutions' list --- which I find confusing because of what appear to be circular references (i.e., includes things like: Courier -> New Courier and New Courier -> Courier)
Here's a screenshot comparing the two fonts at 125%.
The Input
and Output
cell types get their font from the StandardForm
cell style (in Core.nb
, inherited by Default.nb
), so you'd need to make or edit that style cell in the desired stylesheet, for example:
Cell[StyleData["StandardForm"],
FontFamily->"Consolas",
FontSize->12,
FontWeight->"Plain",
FontSlant->"Plain"]
Example:
You don't have to paste in the Cell
expression, you can insert the desired type with the dropdown menu or enter the name in the "Enter a style name" box and then style the select the resulting cell and use the Format menu to adjust the style to your whims.
Open the notebook you want to change.
Go to Format > Edit Stylesheet...
Paste this into the bottom of that window (change Verdana to whatever you want):
Cell[
StyleData["Input"],
PrivateFontOptions -> {"FontPostScriptName" -> "Verdana"}
]
You should get a pop-up asking if you want to "interpret the text." Click yes.
Save and reload your notebook.
If you want to do this for all notebooks, then you should edit the Default.nb style sheet.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With