Skip to content

ojsc/font2jscad

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

font2jscad

Converts truetype fonts or woff fonts to jscad files. These files can than be included in OpenJSCad. This is a temporal solution, to include fonts for @ojsc/opentype.jscad. When OpenJSCad V2 is available this package becomes abolete.

To be clear: The generated myfont.jscad must be used with @ojsc/opentype.jscad.

Usage

cloned from git

example:
font2jscad.js -f font.ttf

Options:
  --font, -f                                                          [required]
  --out, -o         name outputfile,
                    default it is the same name as the input filename with the
                    extension changed to .jscad
  --standalone, -s  This will be the name in the "global" scope,
                    default will be "lowercasefontname_ttf_data" (or
                    lowercasefontname_woff_data)
  --version         Show version number                                [boolean]

using npm

npm i -D @ojsc/font2jscad to get script installed. Use npx font2jscad -f fontname.ttf to convert a font.

or install global: sudo npm i -g @ojsc/font2jscad

About

Converts truetype fonts or woff fonts to jscad files. These files can than be included in OpenJSCad.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published