Skip to main content
Participant
August 13, 2025
Answered

change font

  • August 13, 2025
  • 2 replies
  • 311 views

Hallo, is it possible to change the font used for creating mathematical expressions?

Correct answer m1b

Hi @Enzo28692082pa0i you can specify the font using inline CSS, eg.

<math>
  <mi style="font-family: 'Times New Roman', serif;">x</mi>
  <mo>+</mo>
  <mi style="font-family: 'Arial', sans-serif;">y</mi>
  <mo>=</mo>
  <mn style="font-family: 'Courier New', monospace;">10</mn>
</math>

Also, not strictly changing the font, but just for info, using the mathvariant attribute can be useful sometimes, eg.

<math>
  <mrow>
    <mi>L</mi> <mo>,</mo>
    <mi mathvariant="bold">L</mi> <mo>,</mo>
    <mi mathvariant="script">L</mi> <mo>,</mo>
    <mi mathvariant="double-struck">R</mi> <mo>,</mo>
    <mi mathvariant="fraktur">F</mi> </mrow>
</math>

 

2 replies

m1b
Community Expert
m1bCommunity ExpertCorrect answer
Community Expert
August 15, 2025

Hi @Enzo28692082pa0i you can specify the font using inline CSS, eg.

<math>
  <mi style="font-family: 'Times New Roman', serif;">x</mi>
  <mo>+</mo>
  <mi style="font-family: 'Arial', sans-serif;">y</mi>
  <mo>=</mo>
  <mn style="font-family: 'Courier New', monospace;">10</mn>
</math>

Also, not strictly changing the font, but just for info, using the mathvariant attribute can be useful sometimes, eg.

<math>
  <mrow>
    <mi>L</mi> <mo>,</mo>
    <mi mathvariant="bold">L</mi> <mo>,</mo>
    <mi mathvariant="script">L</mi> <mo>,</mo>
    <mi mathvariant="double-struck">R</mi> <mo>,</mo>
    <mi mathvariant="fraktur">F</mi> </mrow>
</math>

 

Peter Kahrel
Community Expert
Community Expert
August 15, 2025

Very useful, thanks, Mark.

Mike Witherell
Community Expert
Community Expert
August 13, 2025

Hi Enzo,

I haven't used MathML plugin except to examine the new feature.

So far, changing the font is not possible.

However, InDesign is using a typeface called MathJax located here:

C:\Program Files\Adobe\Adobe InDesign 2025\Resources\UXP\com.adobe.indesign.mathexprpanel\mathjax\es5\output\chtml\fonts\woff-v2

Changing that font will likely break the MathML module (but you could always experiment with it if you are brave!)

Mike Witherell