Debian Codegraph @

script-komatuna-p/import-mplus.pe

raw
1 #!/usr/bin/fontforge
2
3 Open("./mplus-1c-medium-new.ttf")
4 Select(32,12287,65281,65510)
5 ScaleToEm(940)
6 Move(0,-18)
7 Copy()
8
9 Open("./Konatu.ttf")
10 Select(32,12287,65281,65510)
11 Paste()
12
13 Generate("./komatuna-p.ttf")
14
15 Open("./mplus-2c-medium-new.ttf")
16 Select(12288,12292,12294,12542)
17 ScaleToEm(1000)
18 Move(0,-20)
19 Copy()
20
21 Open("./komatuna-p.ttf")
22 Select(12288,12292,12294,12542)
23 Paste()
24
25 SelectAll()
26 SetOS2Value("HHeadAscent",-90)
27 SetOS2Value("HHeadDescent",780)
28
29 SetFontNames("Komatuna-P","Komatuna P","Komatuna P")
30 SetTTFName(0x409,1,"Komatuna P")
31 SetTTFName(0x409,3,"Komatuna P")
32 SetTTFName(0x409,4,"Komatuna P")
33 SetTTFName(0x411,1,"Komatuna P")
34 SetTTFName(0x411,3,"Komatuna P")
35 SetTTFName(0x411,4,"Komatuna P")
36
37 Generate("./komatuna-p.ttf")