ref: 9793b7f9e60d8dac0d044c4eedc46628496cb3e4
parent: 744d1b6b4e6b1f04bdcad77af14771d7e2f3b8ce
author: Ali Gholami Rudi <ali@rudi.ir>
date: Fri Aug 15 06:09:31 EDT 2014
font: simplify font_featlg()
--- a/font.c
+++ b/font.c
@@ -112,10 +112,8 @@
static int font_featlg(struct font *fn, int val)
{
int ret = 0;
- if (val & 1)
- ret |= font_feat(fn, "liga", val);
- if (val & 2)
- ret |= font_feat(fn, "rlig", val) << 1;
+ ret |= font_feat(fn, "liga", val & 1);
+ ret |= font_feat(fn, "rlig", val & 2) << 1;
return ret;
}