Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Set the font families to be displayed on the toolbar.

Warning

SynapEditor can only set the font list and does not provide any font file.

Font Configuration

Set the font families to be displayed on the toolbar with 'editor.fontFamily'

General

Sets the style to be applied to the text in the form of a string.

Code Block
languagejs
themeEmacs
titlesynapeditor.config.js
{
	'editor.fontFamily': {
    	'koen': [
            '돋움Arial', '굴림Comic Sans MS', '바탕Courier New', '궁서Georgia',
'맑은고딕',            'Lucida Sans Unicode', 'ArialTahoma', 'Times New Roman'Comic, Sans'Trebuchet MS', 'Courier New', 'GeorgiaVerdana'
        ]
    }
}


Object shape

Status
colourYellow
titleRelease 2.15.2212 or avobe

If the name to be displayed in the toolbar menu and the style to be applied to the text are different, create and set it in the form of an object as shown below.

{ label: 'Text to be displayed in the menu', value: 'Style to be applied to the text' }

설정 결과


Code Block
languagejs
themeEmacs
titlesynapeditor.config.js
{
    'editor.fontFamily': {
        'en': [
            'Arial',
            
'Lucida Sans Unicode', 'Tahoma',
{ label: 'Monospaced typeface', value: 'Courier New' },
            { label: 'Serif typeface', value: 'Times New Roman' },
            { label: '
Trebuchet
Sans-serif 
MS
typeface', 
'Verdana
value: 'Comic Sans MS' }
        ]
    }
}


Image Added



Setting Fonts by Language

Code Block
languagejs
themeEmacs
titlesynapeditor.config.js
{
	'editor.fontFamily': {
    	'ko': [
            '돋움', '굴림', '바탕', '궁서', '맑은고딕',
            'Arial', 'Comic Sans MS', 'Courier New', 'Georgia',
            'Lucida Sans Unicode', 'Tahoma', 'Times New Roman', 'Trebuchet MS', 'Verdana'
        ],
        'en': [
            'Arial', 'Comic Sans MS', 'Courier New', 'Georgia',
            'Lucida Sans Unicode', 'Tahoma', 'Times New Roman', 'Trebuchet MS', 'Verdana'
        ]
    }
}


en (English)

ko (Korean)