Skip to content

Instantly share code, notes, and snippets.

View futuremotiondev's full-sized avatar
:octocat:
Coding Zen

Jay futuremotiondev

:octocat:
Coding Zen
View GitHub Profile
@futuremotiondev
futuremotiondev / converting_otf_font_to_svg_font.txt
Last active June 11, 2025 00:05
Converting OTF and TTF Fonts to SVG Fonts
Required:
https://www.npmjs.com/package/otf2svg
https://github.com/marmooo/ttf2svg
npm install otf2svg -g
npm install @marmooo/ttf2svg -g
otf2svg /path/to/input.otf /path/to/output.svg
ttf2svg font.ttf --font > font.svg
@futuremotiondev
futuremotiondev / ff_convert_ttf_to_svg.py
Created June 10, 2025 23:02
Convert TTF to SVG Font with FontForge
import fontforge
import sys
from os import path
if len(sys.argv) < 2:
print("Usage : {0} file.ttf".format(sys.argv[0]))
exit(1)
ttf_file = sys.argv[1]
svg_file = "{0}.svg".format(ttf_file.split(".")[0])