DEV Community

Cover image for Convert Font Using FontForge
anasrin
anasrin

Posted on • Originally published at anasrin.vercel.app

Convert Font Using FontForge

Requirement

FontForge was installed and can be access in terminal.

Simple command to convert font or just to regenerate font.

fontforge -lang=ff -c 'Open($1); Generate($2); Close();' in.otf out.ttf
Enter fullscreen mode Exit fullscreen mode

Or using absolute path.

fontforge -lang=ff -c 'Open($1); Generate($2); Close();' "$PWD/in.otf" "$PWD/out.ttf"
Enter fullscreen mode Exit fullscreen mode

Top comments (0)