Suggestions and contributions are always welcome! Please discuss larger changes via issue before submitting a pull request. View the rendered component on localhost:3000.Generate the library bundle: yarn start.Clone this repository: git clone REPO_URL.setOnChange(onChange: (font: Font) => void): Update the onChange function after the font picker has been initialized.setActiveFont(fontFamily: string): Sets the provided font as the active font.getActiveFont(): Returns the font object of the currently active font.removeFont(fontFamily: string): Removes the specified font from the font list.addFont(fontFamily: string, index?: number): Adds the specified font to the font list (at the given index).getFonts(): Returns a map of all font names/objects.The FontPicker class exposes the following functions: ![]()
0 Comments
Leave a Reply. |