1 #!/usr/bin/env fontforge
4 # script file for FontForge for font narrowing after merge
5 # usage: fontforge -script narrowmerge.pe scale sfd glyph_codes*
6 # created file has suffix .narrow
8 # DejaVu Condensed have scale 90
10 if ($version < "20050209")
11 Error("Your version of FontForge transforms glyphs w/o content");
14 Error("usage: scale sfd glyph_codes...")
16 scale = Strtol($argv[1])
19 Print("Nothing to do for ", file)
25 Select(Strtol($argv[i]))
26 ref_count = GlyphInfo("RefCount")
28 Scale(scale, 100, 0, 0)
30 Print(GlyphInfo("Name"), " contains references: not scaled")
34 Save(file + ".narrow")