Fonts
Built-in Nanum Gothic and Nanum Myeongjo, registering your own fonts with registerFont, and hosting font files on an intranet.
Nanum Gothic and Nanum Myeongjo are built in (SIL Open Font License): a web stylesheet for screen and print, TrueType files for PDF, loaded from the jsDelivr CDN when first needed. registerFont adds your own family; host the files yourself on an intranet.
import { registerFont } from '@freereportjs/core';
registerFont('Malgun Gothic', {
css: '/fonts/malgun.css', // @font-face rules for screen and print (optional)
normal: '/fonts/malgun.ttf', // TrueType for the PDF (URL or Uint8Array)
bold: '/fonts/malgunbd.ttf',
});
// then: "font": { "family": "Malgun Gothic" } or "style": { "fontFamily": "Malgun Gothic" }