mirror of
https://github.com/sayyadirfanali/Myna.git
synced 2026-01-11 14:30:26 +01:00
19 lines
325 B
Python
19 lines
325 B
Python
import fontforge
|
|
import math
|
|
import psMat
|
|
|
|
def mkFont(name, weight):
|
|
font = fontforge.open(name + ".sfd")
|
|
|
|
font.selection.select("alt_l")
|
|
font.copy()
|
|
font.selection.select("l")
|
|
font.paste()
|
|
|
|
font.generate(name + ".otf")
|
|
|
|
font.close()
|
|
|
|
mkFont("Myna-Regular", "Regular")
|
|
mkFont("Myna-Bold", "Bold")
|