fontconf
TypeScript icon, indicating that this package has built-in type declarations

0.1.0 • Public • Published

fontconf

This is an alpha release! More may come :)

Generate fallback fonts with modified metrics using @capsizecss. Comes with both a CLI and a Vite plugin (for use with SvelteKit, but may work elsewhere too!).

Usage

CLI

fontconf .fontconf.json output.css

With Vite

export default defineConfig({
	// looks for a config at .fontconf.json by default, but you can put it here directly if you'd prefer!
	plugins: [fontconf()]
})

.fontconf.json format

{
	"fonts": {
		"dm-sans": ["DM Sans", "Arial", "Helvetica"]
	},
	"outputFile": "fonts.css"
}

/fontconf/

    Package Sidebar

    Install

    npm i fontconf

    Weekly Downloads

    0

    Version

    0.1.0

    License

    OQL

    Unpacked Size

    28.1 kB

    Total Files

    27

    Last publish

    Collaborators

    • hazycora