diff --git a/Makefile b/Makefile index fb8d1bc2..4d06e97f 100644 --- a/Makefile +++ b/Makefile @@ -17,6 +17,7 @@ TTF=$(FONTS:%=$(BLDDIR)/$(NAME)-%.ttf) WOFF2=$(FONTS:%=$(BLDDIR)/$(NAME)-%.woff2) PDFS=$(FONTS:%=$(BLDDIR)/$(NAME)-%-ligatures.pdf) \ $(FONTS:%=$(BLDDIR)/$(NAME)-%-content.pdf) \ + $(FONTS:%=$(BLDDIR)/$(NAME)-%-kerning.pdf) \ $(FONTS:%=$(BLDDIR)/$(NAME)-%-table.pdf) $(BLDDIR)/%.otf: $(SRCDIR)/%.ufo @@ -45,6 +46,12 @@ $(BLDDIR)/%-ligatures.pdf: $(BLDDIR)/%.ttf --foreground=333333 --text-file $(tests)/ligatures.txt \ --output-file $(BLDDIR)/$(@F); +$(BLDDIR)/%-kerning.pdf: $(BLDDIR)/%.ttf + @echo " TEST $(@F)" + @hb-view $< --font-size 14 --margin 100 --line-space 1.5 \ + --foreground=333333 --text-file $(tests)/kerning.txt \ + --output-file $(BLDDIR)/$(@F); + $(BLDDIR)/%-content.pdf: $(BLDDIR)/%.ttf @echo " TEST $(@F)" @hb-view $< --font-size 14 --margin 100 --line-space 1.5 \ diff --git a/sources/features/kerning.fea b/sources/features/kerning.fea index 98eed191..424c1725 100644 --- a/sources/features/kerning.fea +++ b/sources/features/kerning.fea @@ -14,9 +14,12 @@ lookup viramaPos { @lc_left_slant = [v w]; @lc_left_round = [e c a d o q g]; @lc_right_round = [a e b c o p g]; +@lc_postive_space = [r f y v w ]; +@lc_above_base = [a b c d e f h i k l m n o r s t u v w x z]; +@lc_negative_space = [j]; @uc_left_slant = [V Y W T]; -@uc_right_slant = [V Y W T]; +@uc_right_slant = [V Y W T F]; @uc_left_round = [O Q]; @uc_right_round = [O Q D P]; @@ -24,13 +27,15 @@ lookup latinPos { lookupflag 0; pos @lc_right_slant @lc_left_round -50; pos @lc_right_round @lc_left_slant -50; + pos @lc_postive_space @lc_negative_space -350; + pos @lc_above_base @lc_negative_space -300; pos @uc_right_slant @lc_left_round -160; pos @uc_right_slant @uc_left_slant -160; - pos A @uc_left_slant -160; + pos A @uc_left_slant -200; pos A @lc_left_slant -80; - pos @uc_right_slant A -160; + pos @uc_right_slant A -200; pos @uc_right_slant @uc_left_round -160; pos @uc_right_round @uc_left_slant -160; diff --git a/tests/content.txt b/tests/content.txt index 90b7d543..aa504434 100644 --- a/tests/content.txt +++ b/tests/content.txt @@ -284,9 +284,3 @@ Le droit au respect de la vie privée figure à l'article 12 de Déclaration universelle des droits de l'homme de 19481, à l'article 8 de la Convention européenne des droits de l'homme et à l'article 17 du Pacte -PJ GAYATHRI SANTHOSH BINOY KAVYA DOMINIC ADHESION OFFER YOURS APPLE TV YAVYLT -Va Ve We Ya Ye ve -we ye te tv fv vo ovowa -Tv Ao AO To TO Lo La LV LW LO WJ VJ - -ന്റ് അത്" "()" അത്) ന്റി ന്റീ diff --git a/tests/kerning.txt b/tests/kerning.txt new file mode 100644 index 00000000..2dff4016 --- /dev/null +++ b/tests/kerning.txt @@ -0,0 +1,555 @@ + +ന്റ് അത്" "()" അത്) ന്റി ന്റീ + +ab +af +ag +aj +au +av +aw +ax +ay +ba +bc +bd +be +bf +bj +bs +bv +bw +bx +by +bz +cc +cd +ce +cg +co +cq +cu +eu +ev +ew +ex +ey +ez +fa +fe +ff +fg +fi +fj +fl +fo +fp +fs +ft +fu +fv +fx +fz +ga +ge +gg +go +gs +gt +gu +gv +ij +iu +iv +ja +jg +jo +js +ka +kc +kd +ke +kg +ko +kp +ks +kt +ku +kv +ky +ls +lu +nj +nv +nw +ny +og +ou +ov +ow +ox +oy +oz +pg +pu +pv +pw +px +py +pz +qu +ra +rc +re +rg +rj +ro +ru +su +sv +sw +sx +sy +sz +ta +tc +td +te +tg +to +tq +ts +tu +va +vc +vd +ve +vg +vo +vq +vs +vu +wc +wd +we +wg +wo +wq +ws +wu +xc +xd +xe +xg +xo +xq +zo +zu +zv +zw +zy + +AC +AG +AJ +AO +AQ +AS +AT +AU +AV +AW +AX +AY +AZ +BA +BT +BU +BV +BW +BX +BY +CC +CG +DA +DJ +DT +DV +DW +DX +DY +DZ +EJ +EV +EW +EX +EY +FA +FC +FG +FJ +FO +FQ +FU +FV +FW +FY +GV +GW +GX +GY +JA +JC +JG +JM +JO +JQ +JS +JU +JY +JZ +KA +KC +KG +KO +KQ +KS +KT +KU +KV +KW +KX +KY +LC +LG +LJ +LO +LQ +LT +LV +LW +LX +LY +LZ +OA +OJ +OS +OT +OU +OV +OW +OX +OY +OZ +PA +PÆ +PJ +PS +PU +PV +PW +PX +PY +PZ +QA +QJ +RA +RC +RG +RJ +RO +RQ +RT +RU +RV +RW +RX +RY +SA +SM +ST +SU +SV +SW +SY +SZ +TA +TÆ +TC +TG +TJ +TO +TQ +TS +TU +TV +TW +TY +UA +UC +UG +UO +UQ +UT +VA +VÆ +VC +VG +VJ +VM +VO +VQ +VS +VT +VU +VV +VW +VX +VY +WA +WC +WG +WJ +WM +WO +WQ +WS +WT +WU +WV +WW +WX +WY +XA +XC +XG +XO +XQ +XU +YA +YC +YG +YJ +YM +YO +YQ +YS +YX +YZ +ZA +ZC +ZG +ZO +ZQ + +Ac +Ad +Ae +Ag +Ao +Aq +As +At +Au +Av +Aw +Ay +Bv +Bw +Bx +By +Bz +Ca +Cc +Cd +Ce +Co +Cv +Cw +Cy +Ev +Ew +Ex +Ey +Ez +Fa +Fc +Fd +Fe +Ff +Fg +Fm +Fn +Fo +Fq +Fs +Ft +Fu +Fv +Fw +Fx +Fy +Fz +Ja +Jc +Jd +Je +Jg +Jo +Jq +Ka +Kc +Kd +Ke +Kg +Ko +Kq +Ks +Kt +Ku +Kv +Kw +Ky +Lc +Ld +Le +Lg +Lf +Lo +Lq +Lt +Lu +Lv +Lw +Lx +Pa +Pc +Pd +Pe +Pg +Po +Pq +Ps +Pt +Pu +Pv +Pw +Px +Py +Pz +Qj +Ra +Rc +Rd +Re +Rg +Ro +Rq +Rt +Ru +Rv +Rw +Rx +Ry +Sv +Sw +Sx +Sy +Ta +Tc +Td +Te +Tg +Tn +To +Tq +Ts +Tu +Tv +Tw +Tx +Ty +Tz +Ua +Uc +Ud +Ue +Ug +Uo +Uq +Uv +Uw +Ux +Uy +Uz +Va +Vc +Vd +Ve +Vg +Vn +Vo +Vp +Vq +Vr +Vs +Vu +Vv +Vw +Vx +Vy +Vz +Wa +Wc +Wd +We +Wg +Wn +Wo +Wp +Wq +Wr +Ws +Wu +Wv +Ww +Wx +Wy +Wz +Xc +Xd +Xe +Xg +Xo +Xq +Xu +Xv +Xw +Xy +Ya +Yc +Yd +Ye +Yg +Yn +Yo +Yq +Ys +Yt +Yu +Yv +Yw +Yx +Yy +Yz +Zv +Zw +Zy + +PJ GAYATHRI SANTHOSH BINOY KAVYA DOMINIC ADHESION +OFFER YOURS APPLE TV YAVYLT +Va Ve We Ya Ye ve +we ye te tv fv vo ovowa +Tv Ao AO To TO Lo La LV LW LO WJ VJ Hijiki rj +AWARD HOHOHO WAV VAV WAW VAW YATE VAYAN +PAN OVOIDE FAINT FORTUNE Fortune Peasant \ No newline at end of file