Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env python
#
# Usage:
# fontforge -script generate_comic_font.py gothic.ttf mincho.ttf
import fontforge
import os
import sys
gothic_font_path = sys.argv[1]
@fdiary
fdiary / generate_vertical_font.py
Last active December 16, 2023 18:18
Fontforge script to generate a vertical font : all glyphs are rotated 90 degrees anticlockwise
#!/usr/bin/env python
#
# Usage:
# fontforge -script generate_vertical_font.py original_font.ttf
import fontforge
import math
import os
import psMat
import sys
@fdiary
fdiary / generate_vertical_font.pe
Last active July 29, 2019 14:51
Fontforge script to generate a vertical font : all glyphs are rotated 90 degrees anticlockwise
#!/usr/bin/fontforge
#
# Original source code by nixeneko
# https://nixeneko.hatenadiary.org/entry/20100724/1279982449
#
# Usage:
# fontforge -script generate_vertical_font.pe original_font.ttf
Open($1)
SelectWorthOutputting()