1

주제: 이지윅 에디터에 기본글꼴 추가하는 법?

1.8.6으로 판올림을 했는데 이지윅에디터에 한글글꼴이 하나도 없네요.
돋움이나 나눔돋움을 추가하고 싶은데 어떻게 해야하나요? ㅜㅜ

2

답글: 이지윅 에디터에 기본글꼴 추가하는 법?

Textcube 1.8 기준
plugins/FM_Modern/editor.js
Line 39~58 쯔음..

TTModernEditor.prototype.buildFontMap = function() {
    var fontset = _t('fontDisplayName:fontCode:fontFamily').split('|');
    var defaultfonts = [
        ['Andale Mono', 'times'],
        ['Arial', 'helvetica', 'sans-serif'],
        ['Arial Black', 'avant garde'],
        ['Book Antiqua', 'palatino'],
        ['Comic Sans MS', 'sand'],
        ['Courier New', 'courier', 'monospace'],
        ['Georgia', 'times new roman', 'times', 'serif'],
        ['Helvetica'],
        ['Impact', 'chicago'],
        ['Symbol'],
        ['Tahoma', 'arial', 'helvetica', 'sans-serif'],
        ['Terminal', 'monaco'],
        ['Times New Roman', 'times', 'serif'],
        ['Trebuchet MS', 'geneva'],
        ['Verdana', 'arial', 'helvetica', 'sans-serif'],
        ['Webdings'],
        ['Wingdings', 'zapf dingbats']
    ];

아래는 추가 폰트를 설정한 예제 입니다.
추가시 콤마(,) 누락 되지 않게 해주시고, 사용자 환경에 따라 브라우져 캐쉬를 지워주셔야 적용이 될 수도 있습니다.

TTModernEditor.prototype.buildFontMap = function() {
    var fontset = _t('fontDisplayName:fontCode:fontFamily').split('|');
    var defaultfonts = [
        ['Andale Mono', 'times'],
        ['Arial', 'helvetica', 'sans-serif'],
        ['Arial Black', 'avant garde'],
        ['Book Antiqua', 'palatino'],
        ['Comic Sans MS', 'sand'],
        ['Courier New', 'courier', 'monospace'],
        ['Georgia', 'times new roman', 'times', 'serif'],
        ['Helvetica'],
        ['Impact', 'chicago'],
        ['Symbol'],
        ['Tahoma', 'arial', 'helvetica', 'sans-serif'],
        ['Terminal', 'monaco'],
        ['Times New Roman', 'times', 'serif'],
        ['Trebuchet MS', 'geneva'],
        ['Verdana', 'arial', 'helvetica', 'sans-serif'],
        ['Webdings'],
        ['Wingdings', 'zapf dingbats'],
        ['굴림', 'gulim'],
        ['바탕', 'batang']
    ];
텍스트큐브를 이용하시다 불편하신 점 있으시면 아래로 연락주세요.
Needlworks/TNF - LonnieNa
nateon : y12x2 (a.t) nate.com / mail : lonniena (a.t) needlworks.org
http://twitter.com/@textcube