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)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay