훅(hook)으로 웹폰트 적용시키는 방법

· 조회수 5

sir.kr의 비타주리 회원님이 만드신 웹폰트용 적용 훅(hook)입니다. 그누보드 5.5.8.3.2이상 버전부터 사용가능합니다. 적당한 이름의 php로 만들어 extend디렉토리에 올려주시면 됩니다.

<?php
if (!defined('_GNUBOARD_')) exit;
add_event('tail_sub', function() {
    echo "
        <style>
        @font-face { font-family:'NEXON Lv1 Gothic OTF'; src:url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_20-04@2.1/NEXON Lv1 Gothic OTF.woff') format('woff'); }
        div, span, table, p, input, textarea, button, select, code, h1, h2, h3 { font-family:'NEXON Lv1 Gothic OTF' !important; }
        </style>
    ";
});

"스스로 돌아봐서 잘못이 없다면 천만인이 가로막아도 나는 가리라. - 맹자"

- 떳떳함, 행동 -

북마크목록