Commit ca76c91e authored by Rajeesh K V's avatar Rajeesh K V

Tidy up the build with kerning feature

Signed-off-by: Rajeesh K V's avatarRajeesh K V <[email protected]>
parent dbc52df8
......@@ -3,17 +3,16 @@
fontpath=/usr/share/fonts/truetype/malayalam
fonts=Meera
feature=features/features.fea
kerningfeature=features/kerning.fea
PY=python2.7
buildscript=tools/build.py
version=7.0
default: compile
all: compile webfonts
compile:
compile: clean
@for font in `echo ${fonts}`;do \
echo "Generating $$font.ttf";\
$(PY) $(buildscript) $$font.sfd $(feature) $(kerningfeature) $(version);\
$(PY) $(buildscript) $$font.sfd $(feature) $(version);\
done;
webfonts:compile
......@@ -38,4 +37,4 @@ test: compile
clean:
@echo "Removing ttf files";
@rm -f *.ttf;
@rm -f *.ttf *.woff *.eot;
......@@ -4,6 +4,7 @@ languagesystem mlym dflt;
include (tables.fea)
include (lookups.fea)
include (kerning.fea)
# -------------------
# BASIC SHAPING FORMS
......@@ -124,4 +125,4 @@ feature abvm {
# script latn;
# language dflt ;
# lookup kern_latin;
#} kern;
\ No newline at end of file
#} kern;
......@@ -12,9 +12,7 @@ for lookup in font.gpos_lookups:
# Merge the new featurefile
font.mergeFeature(sys.argv[2])
if sys.argv[3]:
font.mergeFeature(sys.argv[3])
font.appendSFNTName('English (US)', 'Version', sys.argv[4] + '+' + time.strftime('%Y%m%d'))
font.appendSFNTName('English (US)', 'Version', sys.argv[3] + '+' + time.strftime('%Y%m%d'))
font.simplify()
font.autoInstr()
font.generate(sys.argv[1].replace(".sfd",".ttf"), flags=("omit-instructions", "round", "opentype"))
......
No preview for this file type
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment