File: menusubset-khmer.ff

package info (click to toggle)
googlefontdirectory-tools 20120309.1-1.1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 340 kB
  • ctags: 73
  • sloc: python: 821; sh: 34; makefile: 30
file content (26 lines) | stat: -rwxr-xr-x 680 bytes parent folder | download | duplicates (2)
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
#!/usr/bin/fontforge
# A simple script to generate a menu subset. It outputs all unicode characters
# for Khmer glyphs and ligatures needed for correct rendering.
# 
# fontforge -lang=ff -script menusubset-khmer.ff Font-Regular.ttf;
# mv Font-Regular.{ttf.menu.ttf,menu};
# ENSURE THAT THE SPACE CHAR IS THERE

Open($1)
Select(0u1797)
SelectMore(0u17b6)
SelectMore(0u179f)
SelectMore(0u17b6)
SelectMore(0u1781)
SelectMore(0u17d2)
SelectMore(0u1798)
SelectMore(0u17c2)
SelectMore(0u179a)
SelectMore(65694)
SelectMore(65902)
SelectMore(65564)
SelectMore(65894)
SelectInvert()
Clear()
# This has to end in .ttf or it will not include all the needed glyphs
Generate($1 + ".menu.ttf")