답변 3개
채택된 답변
+20 포인트
녹두탐
Expert
1년 전
1. 글꼴 다운로드 및 임의의 경로에 글꼴을 업로드합니다.
- 아래에서는 `static/font/...` 경로에 위치했습니다.
2. ckeditor 글꼴 설정에 원하는 글꼴을 추가합니다.
`static\plugin\editor\ckeditor4\config.js`
</p>
<p>CKEDITOR.editorConfig = function( config ) {</p>
<p> ...</p>
<p> // 글꼴관련</p>
<p> config.font_names = '맑은 고딕;굴림;굴림체;궁서;궁서체;돋움;돋움체;바탕;바탕체;안성탕면체/Ansungtangmyun-Bold;'; // + CKEDITOR.config.font_names;</p>
<p> ...</p>
<p>
3. `static\plugin\editor\ckeditor4\contents.css`, `templates\basic\static\css\default.css`
두개 파일의 최하단에 아래 코드를 추가합니다.
</p>
<p>@font-face {</p>
<p> font-family: "Ansungtangmyun-Bold";</p>
<p> font-display: block;</p>
<p> font-weight: normal;</p>
<p> font-style: normal;</p>
<p> src: url(/static/font/Ansungtangmyun-Bold.ttf) format('truetype');</p>
<p>}</p>
<p>

로그인 후 평가할 수 있습니다
댓글을 작성하려면 로그인이 필요합니다.
1년 전
https://eyoom.net/eb3_tip/452?sfl=wr_subject&stx=t&sop=and&page=1
https://xe1.xpressengine.com/tip/23082758
https://d2d2.kr/xe_tip/131267
보시고 상황에 맞는걸 사용해보세요^^
로그인 후 평가할 수 있습니다
댓글을 작성하려면 로그인이 필요합니다.
답변을 작성하려면 로그인이 필요합니다.
로그인