Skip to content

Latest commit

 

History

History
31 lines (22 loc) · 923 Bytes

README.md

File metadata and controls

31 lines (22 loc) · 923 Bytes

Table of content

Typetools

A react.js component, context, and hook for parse opentype font.

Usage

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