Table of content
import { ProviderTypetools } from "typetools";
const defaultFonts: string[] = [
"/path/to/font.ttf",
];
<ProviderTypetools fonts={defaultFonts}>
{children}
</ProviderTypetools>
- The font urls above can be url from your static site or for outside origin
- If you use urls from outside origin, make sure the url provider allowed
- e.g. https://example.com/assets/example.otf