1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
|
#!/usr/bin/fontforge
Open("mplus-1m-regular-new.ttf")
Select(32,12292,12294,19967,64256,65518)
ScaleToEm(4096)
Move(0,-50)
Copy()
Open("ume-tgo4.ttf")
Select(32,12292,12294,19967,64256,65518)
Paste()
# remove unnecessary characters
# (fix for vertical writing in OpenOffice)
Select(65511,66135)
Clear()
SetOS2Value("HHeadAscent",3940)
SetOS2Value("HHeadDescent",-1010)
SetFontNames("UmePlus-Gothic","UmePlus Gothic","UmePlus Gothic")
SetTTFName(0x409,1,"UmePlus Gothic")
SetTTFName(0x409,3,"UmePlus Gothic")
SetTTFName(0x409,4,"UmePlus Gothic")
SetTTFName(0x411,1,"UmePlus Gothic")
SetTTFName(0x411,3,"UmePlus Gothic")
SetTTFName(0x411,4,"UmePlus Gothic")
Generate("umeplus-gothic.ttf")
|