Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

change font

New Here ,
Aug 13, 2025 Aug 13, 2025

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

TOPICS
EPUB , Scripting
182
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Aug 14, 2025 Aug 14, 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>

Screenshot 2025-08-15 at 14.16.44.png

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 m
...
Translate
Community Expert ,
Aug 13, 2025 Aug 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
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 14, 2025 Aug 14, 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>

Screenshot 2025-08-15 at 14.16.44.png

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>

Screenshot 2025-08-15 at 14.13.23.png 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 15, 2025 Aug 15, 2025
LATEST

Very useful, thanks, Mark.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines