#!/usr/bin/fontforge Open("./mplus-1m-regular-new.ttf") Select(32,12287,65281,65510) ScaleToEm(1024) Move(0,-24) Copy() Open("./KonatuTohaba.ttf") Select(32,12287,65281,65510) Paste() Generate("./komatuna.ttf") Open("./mplus-2m-regular-new.ttf") Select(12288,12292,12294,12542) ScaleToEm(1024) Move(0,-24) Copy() Open("./komatuna.ttf") Select(12288,12292,12294,12542) Paste() SelectAll() SetOS2Value("HHeadDescent",80) SetOS2Value("HHeadAscent",-86) SetFontNames("Komatuna","Komatuna","Komatuna") SetTTFName(0x409,1,"Komatuna") SetTTFName(0x409,3,"Komatuna") SetTTFName(0x409,4,"Komatuna") SetTTFName(0x411,1,"Komatuna") SetTTFName(0x411,3,"Komatuna") SetTTFName(0x411,4,"Komatuna") Generate("./komatuna.ttf")