-
Notifications
You must be signed in to change notification settings - Fork 0
/
menusubset-ubuntumono.ff
46 lines (45 loc) · 1.38 KB
/
menusubset-ubuntumono.ff
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#!/usr/local/bin/fontforge
# A simple script to generate a menu subset. It outputs all unicode characters
# in "Ubuntu Mono Каилрц Εάεηικλν()", and also the ligatures needed
#
# fontforge -lang=ff -script menusubset-ubuntumono.ff UbuntuMono-Regular.ttf;
# mv UbuntuMono-Regular.{ttf.menu.ttf,menu};
Open($1)
Select(0u0000) # null
SelectMore(0u000D) # nonmarkingreturn
SelectMore(0u0020) # space
SelectMore(0u0028) # parenleft
SelectMore(0u0029) # parenright
SelectMore(0u0045) # E
SelectMore(0u004B) # K
SelectMore(0u0055) # U
SelectMore(0u004D) # M
SelectMore(0u0061) # a
SelectMore(0u0062) # b
SelectMore(0u006E) # n
SelectMore(0u006F) # o
SelectMore(0u0070) # p
SelectMore(0u0074) # t
SelectMore(0u0075) # u
SelectMore(0u0076) # v
SelectMore(0u0138) # kgreenlandic
SelectMore(0u041A) # afii10028 cyrillic
SelectMore(0u0430) # afii10065 cyrillic
SelectMore(0u0438) # afii10074 cyrillic
SelectMore(0u043B) # afii10077 cyrillic
SelectMore(0u0440) # afii10082 cyrillic
SelectMore(0u0446) # afii10088 cyrillic
SelectMore(0u0384) # tonos
SelectMore(0u0395) # Epsilon
SelectMore(0u03B1) # alpha
SelectMore(0u03AC) # alphatonos
SelectMore(0u03B5) # epsilon
SelectMore(0u03B7) # eta
SelectMore(0u03B9) # iota
SelectMore(0u03BA) # kappa
SelectMore(0u03BB) # lambda
SelectMore(0u03BD) # nu
SelectInvert()
Clear()
# This has to end in .ttf or it will not include all the needed glyphs
Generate($1 + ".menu.ttf")