-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile-mac
43 lines (32 loc) · 1021 Bytes
/
Makefile-mac
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
NAME = ${HCRTTF}
SUFF = LVT
FEA = $(NAME)-mac.fea
FONT = $(NAME)-$(SUFF)
VHEA = $(FONT)-vhea
VMTX = $(FONT)-vmtx
all: sfd glyphs ttf ttx
sfd:
fontforge -script 00savesfd.pe $(NAME).ttf
perl 01jamoglyphnames.pl $(NAME).sfd > $(FONT).sfd
glyphs:
fontforge -script 03tweakglyphs.py $(FONT).sfd $(FEA)
ttf:
fontforge -script 04mergefeature.py $(FONT).sfd $(FEA)
ttx:
ttx -o $(VMTX).ttx -t vmtx $(FONT).ttf
perl fix-vmtx.pl $(VMTX).ttx > $(VMTX)-fix.ttx
ttx -o $(FONT)-tmp.ttf -m $(FONT).ttf $(VMTX)-fix.ttx
mv -f $(FONT)-tmp.ttf $(FONT).ttf
ttx -o $(VHEA).ttx -t vhea $(FONT).ttf
perl fix-vhea.pl $(VHEA).ttx > $(VHEA)-fix.ttx
ttx -o $(FONT)-tmp.ttf -m $(FONT).ttf $(VHEA)-fix.ttx
mv -f $(FONT)-tmp.ttf $(FONT).ttf
test:
xetex '\def\testfontname{$(FONT)}\input oldhangulcomposed-test.tex'
xetex '\def\testfontname{$(FONT)}\input newhangultest.tex'
clean:
rm -f $(NAME).sfd *.log *.pdf *.ttx
clean-all:
rm -f *.sfd *.log *.pdf *.ttx
dist-font:
cd .. && zip hcr-lvt-mac.zip hcr-lvt/HAN*-LVT.ttf