Skip to content

FontForge wrapper that allows conversion between different font formats (TTF, WOFF, OTF)

Notifications You must be signed in to change notification settings

zgec/node-js-font-converter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Font Converter

FontForge wrapper that allows conversion between different font formats (TTF, WOFF, OTF)

Setup

Install FontForge (debian-based distro)

sh sudo add-apt-repository ppa:fontforge/fontforge; sudo apt-get update; sudo apt-get install fontforge

Install font-converter

npm install font-converter

Example Usage

var fontConverter = require('font-converter');
fontConverter("path/to/sourceFontFile.ttf", "path/to/destinationFontFile.woff", function (err) {
	if(err) {
		// There was an error
	} else {
		// All good, path/to/destinationFontFile.woff contains the transformed font file
	}
})

License

http://www.gnu.org/licenses/gpl-2.0.html

About

FontForge wrapper that allows conversion between different font formats (TTF, WOFF, OTF)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published