Page tree
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 7 Current »

툴바에 표시되는 글꼴을 설정 할 수 있습니다.

사이냅에디터는 글꼴 목록 설정만 가능하며 별도로 폰트파일을 제공하지 않습니다.

글꼴 설정

'editor.fontFamily'를 이용하여 툴바의 글꼴 메뉴에 표시될 글꼴을 설정합니다. 

일반

텍스트에 적용될 스타일을 string 형태로 작성하여 설정합니다. 

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

객체 형태

릴리즈 2.15.2212 이상

툴바의 메뉴에 보여질 이름과, 텍스트에 적용되어야 할 스타일이 다르다면 객체 형태로 아래와 같이 작성하여 설정합니다.

{ label: '메뉴에 보여질 텍스트', value: '텍스트에 적용될 스타일' }

설정 결과
synapeditor.config.js
{
	'editor.fontFamily': {
    	'ko': [
            '굴림',
            { label: '나눔 고딕', value: 'NanumGothic' },
            { label: '바탕', value: 'Batang' },
            { label: '붓 글씨를 닮은 궁서체', value: 'GungSuh' }
        ]
    }
}

언어별 글꼴 설정

synapeditor.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'
        ]
    }
}
한국어일 때 (ko)영어일 때 (en)




관련정보


  • No labels