문서
API
Types
Types FontStore

Type: FontStore

FontStore

뷰어에서 사용할 폰트를 전역적으로 관리하는 객체입니다.

UserFontSource

폰트를 등록할 때 사용되는 인터페이스

type UserFontSource = {
    /**
     * 폰트 명
    */
    name: string;
    /**
     * 폰트 소스 (경로 or Blob)
    */
    source: string | Blob;
    /**
     * 폰트 굵기
    */
    weight: FontWeight;
};
type FontWeight = 'normal' | 'bold' | '100' | '200' | '300' | '400' | '500' | '600' | '700' | '800' | '900';