Font Size Settings

Release 2.8.0 and above.

You can set the font sizes that appear in the toolbar.

Font Size Settings

Use editor.fontSize to set the font sizes displayed in the toolbar.

// synapeditor.config.js
{
  'editor.fontSize': [8, 9, 10, 11, 12, 14, 16, 18, 20, 24, 28, 32, 36, 40, 44, 48, 54, 60, 72, 80, 88, 96]
}
<table> <thead> <tr><th><code>editor.fontSize: [10, 20, 40, 80]</code></th></tr> </thead> <tbody> <tr> <td>

Font size dropdown

</td> </tr> </tbody> </table>

Font Size Unit Settings

Release 2.15.0 and above.

Use editor.fontSize.unit to set the font size unit.

// synapeditor.config.js
{
  'editor.fontSize.unit': 'pt' // 2.15.0+ 'pt' (default) | 'px'
}
<table> <thead> <tr><th><code>editor.fontSize.unit: 'pt'</code> (default)</th><th><code>editor.fontSize.unit: 'px'</code></th></tr> </thead> <tbody> <tr> <td>

pt unit

</td> <td>

px unit

</td> </tr> </tbody> </table>

Related Information