주제: 이지윅 에디터에 기본글꼴 추가하는 법?
1.8.6으로 판올림을 했는데 이지윅에디터에 한글글꼴이 하나도 없네요.
돋움이나 나눔돋움을 추가하고 싶은데 어떻게 해야하나요? ㅜㅜ
아직 로그인하지 않았습니다. 로그인 또는 회원 등록을 해 주시기 바랍니다.
페이지 1
1.8.6으로 판올림을 했는데 이지윅에디터에 한글글꼴이 하나도 없네요.
돋움이나 나눔돋움을 추가하고 싶은데 어떻게 해야하나요? ㅜㅜ
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']
];페이지 1