Wiris

Documentation / MathType

  • Demos
  • Visit our website
  • Downloads
  • Contact us
  • MathType

    • WirisQuizzes

      • Nubric

        • CalcMe

          • MathPlayer

            • Store FAQ

              • MathFlow

                • BF FAQ

                  • Miscellaneous

                    • Wiris Integrations

                      • Home
                      • MathType
                      • Technical documentation
                      • MathType for HTML editors
                      • Configuration
                      • MathType editor parameters configuration

                      Configure custom fonts

                      Reading time: 2min

                      Configure the fonts available in the MathType editor and understand how they affect rendered formulas. The fonts displayed while editing formulas are configured independently from the fonts used by MathType Integration Services when rendering formulas as images.

                      After completing this guide, you will be able to customize the fonts available to users and understand how those fonts affect the final output.

                      fontlist.png

                      Before you begin

                      Requirements

                      Make sure you have:

                      • A working MathType frontend integration.
                      • Access to the frontend configuration.
                      • Any custom fonts you want to use available to the browser.

                      Applies to

                      All MathType frontend integrations

                      Steps

                      Configure the editor font list

                      The font selector displayed in the MathType editor is configured through the fonts editor parameter. Each font definition specifies:

                      • The font identifier stored in the MathML.
                      • The label displayed in the font selector.
                      • The browser font family used while editing.

                      For example:

                      mathTypeParameters: {
                        editorParameters: {
                          fonts: [
                            {
                              id: "Calibri",
                              label: "Calibri",
                              fontFamily: "Calibri, Helvetica, Arial, sans-serif"
                            },
                            {
                              id: "inherit",
                              label: "Default font"
                            }
                          ]
                        }
                      }

                      The order of the array determines the order of the font selector.

                      For the complete parameter definition, see MathType Editor parameters.

                       

                      Make custom fonts available to the browser

                      Adding a font to the editor configuration does not install that font in the user's browser. If a font is not already available on the user's system, make it available using standard web font techniques such as @font-face. For example:

                      @font-face {
                        font-family: "custom_font";
                        src: url("fonts/custom_font.ttf") format("truetype");
                      }

                      Once the browser can load the font, it can be referenced in the fontFamily property.

                      Understand rendering limitations

                      When formulas are rendered as images, MathType Integration Services use the fonts available on the rendering server. Custom browser fonts are not automatically available to MathType Integration Services.

                      If the rendering server does not have a required font installed, it will use the closest available alternative. This means that the appearance of formulas while editing may differ slightly from the rendered images.

                      Apply the configuration

                      Save the frontend configuration and reload the page where MathType is loaded. If you added custom web fonts, verify that they are successfully loaded by the browser.

                      Verify the configuration

                      Open the MathType editor. Verify that:

                      • The expected fonts appear in the font selector.
                      • Selecting a font changes the appearance of the formula while editing.

                      Verify it worked

                      Insert a formula using one of the configured fonts. Then:

                      • Save the content.
                      • Reopen the formula.
                      • Verify that the selected font is preserved in the MathML.

                      If your deployment renders image formulas, verify that the rendered output uses the expected font or an appropriate fallback.

                      Common issues

                      A font does not appear in the editor

                      Verify that:

                      • The font has been added to the fonts parameter.
                      • The configuration has been reloaded.
                      • The parameter syntax is valid.

                      The editor displays a fallback font

                      Verify that:

                      • The font is installed on the user's system.
                      • The font is loaded using @font-face.
                      • The fontFamily property specifies valid fallback fonts.

                      Rendered formulas use a different font

                      Verify that:

                      • The required font is installed on the rendering server.
                      • MathType Integration Services support the requested font.
                      • A suitable fallback font is available if the font cannot be loaded.

                      Related articles

                      • Configure MathType editor parameters.
                      • MathType Editor parameters.
                      • Configure rendering output.

                      Was this article helpful?

                      Give feedback about this article

                      Related Articles

                      • Customizing the Editor
                      • Style Editor: keyboard input, fonts, and Insert menu
                      • Style Editor

                      Configure custom fonts

                      Before you begin Requirements Applies to Steps Configure the editor font list Make custom fonts available to the browser Understand rendering limitations Apply the configuration Verify the configuration Verify it worked Common issues A font does not appear in the editor The editor displays a fallback font Rendered formulas use a different font Related articles

                      Empowering STEM education

                      MathType

                      • Office Tools
                      • LMS
                      • XML
                      • HTML

                      WirisQuizzes

                      Nubric

                      Integrations

                      Solutions

                      • Education
                      • Publishing houses – platforms and interactive
                      • Publishing houses – Print and digital
                      • Technical writers

                      Pricing

                      Downloads

                      Blog

                      • Success stories

                      About us

                      • Careers
                      • Partnership

                      Contact Us

                      Contact Sales

                      European union (European Regional Development Fund) and 1EdTech (TrustEd Apps Certified)
                      • Cookie Policy
                      • Terms of Use
                      • Privacy Policy / GDPR
                      • Student Data Privacy
                      • Compliance
                      • Cookie Settings

                      © Wiris 2026

                      Expand