mirror of
https://github.com/sayyadirfanali/Myna.git
synced 2026-04-22 08:18:34 +02: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")
|