#!/usr/local/bin/fontforge # # Fontforge script for OCR A # # This file is released to the public domain by its author, Matthew Skala. Open("msk-ocra10-rmo.pfb"); SetFontNames("OCRA","OCRA","OCR A","Regular","Matthew Skala (2011-12); based on code by Richard B. Wales (1988-89) and Tor Lillqvist","2"); SetTTFName(0x409,0,"Matthew Skala (2011-12, 2021); based on code by Richard B. Wales (1988-89) and Tor Lillqvist"); SetTTFName(0x409,1,"OCR A"); SetTTFName(0x409,2,"Regular"); SetTTFName(0x409,4,"OCR A"); SetTTFName(0x409,11,"https://tsukurimashou.osdn.jp/"); SetTTFName(0x409,16,"OCR A"); Reencode("unicode"); Select("circumflex");Copy();Select(0u5E);Paste(); Select("tilde");Copy();Select(0u7E);Paste(); Select("quotesingle");Copy();Select(0x2018);Paste();Select(0x2019);Paste(); Select("quotedbl");Copy();Select(0x201C);Paste();Select(0x201D);Paste(); Reencode("compacted"); SelectAll();SetWidth(723); SelectAll();RoundToCluster(2,2); SelectAll();RoundToInt(); SelectAll();Simplify(212,3); SelectAll();AddExtrema(); SelectAll();RoundToInt(); SelectAll();CorrectDirection(); SelectAll();CanonicalStart(); SelectAll();CanonicalContours(); SelectAll();AutoHint(); SelectAll();AutoCounter(); MergeFeature($1); Generate("OCRA.pfb"); Generate("OCRA.otf"); SetFontOrder(2); SelectAll();AutoHint(); SelectAll();AutoCounter(); Generate("OCRA.ttf"); Quit(0);