File: menusubset-korean.ff

package info (click to toggle)
googlefontdirectory-tools 20120309.1-1.1
  • links: PTS, VCS
  • area: main
  • in suites: buster, sid, stretch
  • size: 340 kB
  • ctags: 73
  • sloc: python: 821; sh: 34; makefile: 30
file content (22 lines) | stat: -rw-r--r-- 738 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
#!/usr/bin/fontforge
# A simple script to generate a menu subset. It outputs all unicode characters
# in the word for อักษรไทย "Thai script", and also the ligatures needed for correct
# shaping. After running "fontforge -lang=ff -script menusubset-korean.ff", do "mv
# Font.menu.ttf Font.menu".
Open($1)
Select(0uAD6D)     # korean
SelectMore(0uC5B4) # korean
SelectMore(0uD55C) # korean
SelectMore(0u0028) # ()
SelectMore(0u0029) # )
SelectMore(0u004E) # N
SelectMore(0u0061) # a
SelectMore(0u006E) # n
SelectMore(0u0075) # u
SelectMore(0u006D) # m
SelectMore(0u0050) # P
SelectMore(0u0065) # e
SelectInvert()
Clear()
# This has to end in .ttf or it will not include all the needed glyphs
Generate($1 + ".menu.ttf") #  #