Mobile-safe rendering
Mobile-safe rendering embeds small stand-in fonts in an SVG so that it renders the same on a phone or tablet as on a desktop. To turn it on, select Mobile-safe rendering in the Export SVG dialog before you click Export SVG. The option is also in the Export Animated SVG dialog.
Phones and tablets often lack Arial, Helvetica, Times, and Courier. A mobile browser or messaging app then substitutes its own default font, such as San Francisco, Roboto, or Noto, whose letters have different widths, so atom labels shift and subscripts drift away from their symbols. Mobile-safe rendering embeds a stand-in with the same letter widths for each of those fonts that your drawing uses, and the device falls back to it.
What gets embedded
Section titled “What gets embedded”Each system font maps to a Liberation font with the same letter widths, so a serif font stays serif and a monospace font stays monospace:
| System font | Embedded fallback |
|---|---|
| Arial, Helvetica | Liberation Sans |
| Times, Times New Roman | Liberation Serif |
| Courier, Courier New | Liberation Mono |
Only the fonts in use are embedded, and each one holds only the characters your text contains, so each font typically adds a few KB. A drawing with Arial atom labels and a Times annotation gets both Liberation Sans and Liberation Serif. The text stays selectable; nothing is converted to outlines.
Each fallback is added as a base64 @font-face rule at the top of the SVG and listed right after its system font in each font-family declaration. A device that has Arial still uses Arial.
The note under the checkbox
Section titled “The note under the checkbox”A note under the checkbox lists the fallbacks for the current document, for example “Embeds Liberation Sans (Arial), Liberation Serif (Times).” While the checkbox is clear, the note starts with “Would embed” instead, and a warning triangle appears next to the checkbox.
If the document uses none of these system fonts (for example, every label is in a Google font), the checkbox is unavailable and the note says that no system fonts are in use, so the option is not needed for this export.
Molkit remembers the choice for later SVG exports, after a reload too; a document saved with its own export settings uses those.
When to use it
Section titled “When to use it”Turn it on when the SVG will travel by text message, email, or chat, or will be viewed on phones and tablets. For a file opened only in desktop browsers, the option does no harm but is not needed.
PNG and PDF exports do not need it. A PNG is already pixels, so the viewer’s fonts never matter. A PDF sets Arial, Times, and Courier text in Liberation Sans, Serif, and Mono and embeds them, with Embed fonts on (the default); see PNG, PDF, and copy as image.
The option changes fonts only. For a static file for PowerPoint, Word, or Keynote, use Maximum compatibility in the SVG export dialog, which outlines the labels and fixes the colors in the file.