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 | ||||||
---|---|---|---|---|---|---|
| ||||||
{ 'editor.fontFamily': { 'en': [ 'Arial', 'Comic Sans MS', 'Courier New', 'Georgia', 'Lucida Sans Unicode', 'Tahoma', 'Times New Roman', 'Trebuchet MS', 'Verdana' ] } } |
Object shape
Status | ||||
---|---|---|---|---|
|
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' }
설정 | 결과 | |||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
Setting Fonts by Language
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
{ '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) |