File: ocra-no.pe

package info (click to toggle)
fonts-ocr-b 0.2~dfsg1-5
  • links: PTS, VCS
  • area: main
  • in suites: buster, sid, stretch
  • size: 628 kB
  • ctags: 34
  • sloc: sh: 625; perl: 356; makefile: 232
file content (29 lines) | stat: -rw-r--r-- 776 bytes parent folder | download
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/local/bin/fontforge

#
# Fontforge script for OCR A
#

# This file is released to the public domain by its author, Matthew Skala.

Open("msk-ocra10.pfb");
SetFontNames("OCRA","OCRA","OCR A","Regular","Matthew Skala (2011-12); based on code by Richard B. Wales (1988-89) and Tor Lillqvist","2");
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);